Questions

Q:

What is the name of the writer of indian origin whose novel, "The Inheritance of Loss" has bagged Man Booker Prize?

A) Vikram Seth B) Kiran Desai
C) Salman Rushdie D) V.S Naipaul
 
Answer & Explanation Answer: B) Kiran Desai

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Books and Authors

2 3775
Q:

Ram Kumar Ramanathan belongs to which sports ?

A) Tennis B) Chess
C) Golf D) Cricket
 
Answer & Explanation Answer: D) Cricket

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Sports
Exam Prep: Bank Exams , CAT
Job Role: Bank Clerk , Bank PO

14 3773
Q:

All of the following are constituents of RNA molecule except _____

A) Thymine B) Adenine
C) Uracil D) Guanine
 
Answer & Explanation Answer: A) Thymine

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Chemistry
Exam Prep: AIEEE

16 3773
Q:

Govind Talwalkar,recipient of the recently announced B.D.Goenka Award for excellence in Journalism, was the editor of which of the following newspapers

A) LokSatta B) The Maharastra Times
C) The Tribune D) Nay Bharat Times
 
Answer & Explanation Answer: B) The Maharastra Times

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Famous Personalities

4 3772
Q:

Water which is suitable for drinking is called _______________ water.

 

A) hygienic B) sparkling
C) potable D) sanitary
 
Answer & Explanation Answer: C) potable

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Chemistry
Exam Prep: Bank Exams

0 3771
Q:

Seagate is manufacturer of

A) harddisk B) earth moving equipment
C) picture tube D) banking software
 
Answer & Explanation Answer: A) harddisk

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Business Awareness

14 3770
Q:

The office of  the UN general Assembly is in

A) Vienna B) Paris
C) Newyork D) Zurich
 
Answer & Explanation Answer: C) Newyork

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: World Organisations

4 3769
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 3769