Questions

Q:

Write a program for matrix multiplication in c

Answer

#include <stdio.h>


int main() {


  int a[5][5], b[5][5], c[5][5], i, j, k, sum = 0, m, n, o, p;


  printf( "\nEnter the row and column of first matrix" );


  scanf( "%d %d", &m, &n );


  printf( "\nEnter the row and column of second matrix" );


  scanf( "%d %d", &o, &p );


  if(n!=o) {


      printf( "Matrix mutiplication is not possible" );


      printf( "\nColumn of first matrix must be same as row of second matrix" );


  }


  else {


      printf( "\nEnter the First matrix" );


      for( i=0; i<m; i++ )


      for( j=0; j<n; j++ )


           scanf( "%d", &a[i][j] );


      printf( "\nEnter the Second matrix" );


      for( i=0; i<o; i++ )


      for( j=0; j<p; j++ )


           scanf( "%d", &b[i][j] );


      printf( "\nThe First matrix is\n" );


      for( i=0; i<m; i++ ) {


      printf("\n");


      for( j=0; j<n; j++ ) {


           printf( "%d\t", a[i][j] );


      }


      }


      printf( "\nThe Second matrix is\n" );


      for( i=0; i<o; i++ ) {


      printf("\n");


      for( j=0; j<p; j++ ) {


           printf( "%d\t", b[i][j] );


      }       


      }


      for( i=0; i<m; i++ )


      for( j=0; j<p;j++ )


           c[i][j] = 0;


      for( i=0; i<m; i++ ) { //row of first matrix


      for( j=0; j<p; j++ )  {  //column of second matrix


           sum = 0;


           for( k=0; k<n; k++ )


               sum = sum + a[i][k]*b[k][j];


           c[i][j] = sum;


      }


      }


  }


  printf( "\nThe multiplication of two matrix is\n" );


  for( i=0; i<m; i++ ) {


      printf("\n");


      for( j=0; j<p; j++ ) {


           printf( "%d\t", c[i][j] );


      }


  }


  return 0;


}

Report Error

View answer Workspace Report Error Discuss

Subject: Programming

0 2334
Q:

In India, country's 1st Owl Festival held in

A) Hyderabad B) Pune
C) Kolkata D) Bangalore
 
Answer & Explanation Answer: B) Pune

Explanation:

In India, country's 1st Owl Festival held in Pune, for two days i.e, on Nov 29 and Nov 30. It is a first-of-its-kind festival in the country that is being organised with the intention of creating awareness about owl as a bird and debunking numerous superstitions associated with it.

Report Error

View Answer Report Error Discuss

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

3 2334
Q:

The Nobel Literature Prize 2018 has been awarded to

A) Bob Dylan B) Shashi Tharoor
C) George Saunders D) No one
 
Answer & Explanation Answer: D) No one

Explanation:

This is for the first time that no Literature Prize will be given in 70 years because of a #MeToo scandal.

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 2333
Q:

The playback singer who is certified as the 'Most Recorded Artist' in the world (2009) by the World Records Academy is ________

Answer

Asha Bhosle . She  is the sister of Latha Mangeshkar

Report Error

View answer Workspace Report Error Discuss

0 2333
Q:

By monitoring ad campaign performance, an advertiser may obtain the information needed to

A) determine if campaigns are meeting overall marketing and conversion goals B) create additional AdWords accounts for low-performing keywords
C) compare campaign performance to that of individual competitors D) create duplicate ad groups with identical keywords and different ad variations
 
Answer & Explanation Answer: A) determine if campaigns are meeting overall marketing and conversion goals

Explanation:

By monitoring ad campaign performance an advertiser may obtain the information needed to determine if campaigns are meeting overall marketing and conversion goals compare campaign performance to that of other advertisers create separate adwords accounts for low-performing keywords create duplicate ad groups with identical keywords and different ad variations.

Report Error

View Answer Report Error Discuss

Filed Under: Advertising and Media

4 2333
Q:

Where is the headquaters of the Universal postal Union

A) Switzerland B) UK
C) Iran D) India
 
Answer & Explanation Answer: A) Switzerland

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: World Organisations

2 2332
Q:

The highest cricket ground in world is at

A) London B) India
C) New Zealand D) Australia
 
Answer & Explanation Answer: B) India

Explanation:

The highest cricket ground in world is in India at Himachal Pradesh. Himachal Pradesh Cricket Association Stadium, Dharamshala, is situated at 4780 feet above the sea level and is one of the most beautiful stadium in the world.

the_highest_cricket_ground_in_the_world_is1550034159.jpg image

Report Error

View Answer Report Error Discuss

Filed Under: Indian Geography
Exam Prep: AIEEE , Bank Exams , CAT
Job Role: Analyst , Bank Clerk , Bank PO

3 2332
Q:

Stress is a factor that contributes to heart disease risk.

A) TRUE B) FALSE
Answer & Explanation Answer: A) TRUE

Explanation:

True, poorly controlled stress and anger can lead to heart attacks and strokes.

Report Error

View Answer Workspace Report Error Discuss

Subject: Biology
Exam Prep: AIEEE , Bank Exams
Job Role: Analyst , Bank Clerk , Bank PO

2 2331