Questions

Q:

Indus Valley Civilization is called the protohistoric civilization because its people knew 

A) art B) writing
C) copper D) pottery
 
Answer & Explanation Answer: B) writing

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: General Awareness

1 4419
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 4419
Q:

The study of the weather is known as

A) Weatherology B) Siesmology
C) Meteorology D) Pulmology
 
Answer & Explanation Answer: C) Meteorology

Explanation:

Meteorology is the study of weather and Earth's atmosphere. Climatology is another term used to describe the study of weather.

 

Studying the weather is not only useful for determining if you'll need an umbrella for the day. While forecasting is an important aspect of studying weather, understanding weather patterns provides valuable information about the status of the planet.

Report Error

View Answer Report Error Discuss

Filed Under: General Awareness
Exam Prep: AIEEE , Bank Exams , CAT
Job Role: Analyst , Bank Clerk , Bank PO

1 4418
Q:

What is amodem connected to?

A) processor B) mother board
C) printer D) phone line
 
Answer & Explanation Answer: D) phone line

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Computer
Exam Prep: Bank Exams
Job Role: Bank Clerk

14 4417
Q:

Which of the following terms follows the trend of the given list?

YXXXXXXY, YXXXXXYX, YXXXXYXX, YXXXYXXX, YXXYXXXX, _______________

A) YYXXXXXX B) YXXXXXXY
C) YXXXXXYX D) YXYXXXXX
 
Answer & Explanation Answer: D) YXYXXXXX

Explanation:
Report Error

View Answer Report Error Discuss

1 4416
Q:

When is the ' World AIDS Day ' observed all over the world

A) 1st october B) 12th December
C) 1st December D) 13th November
 
Answer & Explanation Answer: C) 1st December

Explanation:
Report Error

View Answer Report Error Discuss

5 4416
Q:

Which newspaper has acquired 67 per cent stake in Kolkata-based daily The Asian Age?

A) Hindustan Times B) Times of India
C) Deccan Chronicle D) The Hindu
 
Answer & Explanation Answer: C) Deccan Chronicle

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Business Awareness

11 4415
Q:

In Which Indian state is the world's highest cricket ground located ?

A) Himachal Pradesh B) Uttarakhand
C) West Bengal D) Jammu Kashmir
 
Answer & Explanation Answer: A) Himachal Pradesh

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Books and Authors

11 4413