Questions

Q:

Application layer protocol defines

A) message format, syntax and semantics B) rules for when and how processes send and respond to messages
C) types of messages exchanged D) All of the above
 
Answer & Explanation Answer: D) All of the above

Explanation:

Application layer protocol defines types of messages exchanged, message format, syntax and semantics and rules for when and how processes send and respond to messages.

Report Error

View Answer Report Error Discuss

Filed Under: Networking
Exam Prep: AIEEE
Job Role: Network Engineer

8 4301
Q:

Write a c program to find out sum of diagonal element of a matrix.

Answer

#include<stdio.h>

int main(){

  int a[10][10],i,j,sum=0,m,n;

  printf("\nEnter the row and column of matrix: ");
  scanf("%d %d",&m,&n);

  printf("\nEnter the elements of matrix: ");
  for(i=0;i<m;i++)
      for(j=0;j<n;j++)
           scanf("%d",&a[i][j]);
  printf("\nThe matrix is\n");

  for(i=0;i<m;i++){
      printf("\n");
      for(j=0;j<m;j++){
      printf("%d\t",a[i][j]);
      }
 }
 for(i=0;i<m;i++){
     for(j=0;j<n;j++){
          if(i==j)
              sum=sum+a[i][j];
     }
 }
 printf("\n\nSum of the diagonal elements of a matrix is: %d",sum);

 return 0;
}

Sample output:

Enter the row and column of matrix: 3 3
Enter the elements of matrix:
2
3
5
6
7
9
2
6
7
The matrix is
2       3       5
6       7       9
2       6       7
Sum of the diagonal elements of a matrix is: 16

Report Error

View answer Workspace Report Error Discuss

Subject: Programming

1 4300
Q:

The First Special Economic Zone (SEZ) in NorthEastern States will be set up in the State of :

A) Manipur B) Arunachal Pradesh
C) Nagaland D) Mizoram
 
Answer & Explanation Answer: D) Mizoram

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: General Awareness
Exam Prep: Bank Exams
Job Role: Bank PO

6 4300
Q:

The term Upari refers to which one of the following?

A) A category of proprietary tenure under the Mughal rule B) A category of tenancy tenure under the Maratha rule
C) A soldier in the Maratha army D) A village headman in the Mughal period.
 
Answer & Explanation Answer: B) A category of tenancy tenure under the Maratha rule

Explanation:

Upari refers to a category of tenancy tenure held under the Maratha Regime.The Government used to assign land to various cultivators for cultivation and getting maximum revenue. The land allotted to original settlers of villages came to be known as Mirasi land whereas the land assigned to the migrant settlers was known as the Upari land.

 

Report Error

View Answer Report Error Discuss

Filed Under: General Awareness
Exam Prep: Bank Exams

0 4299
Q:

The fireworks exhibition had awesome

A) affects B) defects
C) effects D) show
 
Answer & Explanation Answer: C) effects

Explanation:

The fireworks exhibition had awesome effects.

Report Error

View Answer Report Error Discuss

Filed Under: English
Exam Prep: AIEEE , Bank Exams , CAT , GATE
Job Role: Analyst , Bank Clerk , Bank PO

0 4299
Q:

Milk is a 

A) mixture B) element
C) metal D) None of these
 
Answer & Explanation Answer: A) mixture

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Chemistry

5 4299
Q:

Modem is used mostly for ?

A) A modern empty memory modules B) Connecting to internet
C) Mostly for file system D) All the above
 
Answer & Explanation Answer: B) Connecting to internet

Explanation:

A modem is nothing but short for Modulator and Demodulator. It is used mostly for connecting to the internet.

A modem is a device or program that enables a computer to transmit data over, for example, telephone or cable lines. Computer information is stored digitally, whereas information transmitted over telephone lines is transmitted in the form of analog waves.

 

Report Error

View Answer Report Error Discuss

Filed Under: Physics
Exam Prep: AIEEE , Bank Exams , GATE
Job Role: Analyst , Bank Clerk , Bank PO

4 4298
Q:

Nobel Prize is established in  ?

A) 1931 B) 1911
C) 1901 D) 1951
 
Answer & Explanation Answer: C) 1901

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: General Science
Exam Prep: CAT , Bank Exams

8 4298