Questions

Q:

How would you dynamically allocate a 2-D array of integers?

Answer

#include "alloc.h"


#define MAXROW 3


#define MAXcol 4


main()


{


        int *p, i, J;


        p = (int *) malloc (MAXROW * MAXCOL * sizeof (int));


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


         {


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


                { 


                      p [ i * MAXCOL + j] = i;


                       printf ( "%d", p [i * MAXCOL + j] );


                 }


                  printf ("\n");


          }


}

Report Error

View answer Workspace Report Error Discuss

Subject: Programming

0 3458
Q:

The number of members nominated by the president to the Rajya Sabha is Constitutionally limited to

A) 12 B) 15
C) 10 D) 20
 
Answer & Explanation Answer: A) 12

Explanation:

The Council of States (Rajya Sabha) is composed of not more than 250 members, of whom 12 are nominated by the President. The twelve members are chosen by him from among persons having special knowledge or practical experience in literature, science, art, and social service. The Constitution thus adopts the principle of nomination, for according distinguished Indians a place in the Upper Chamber (Rajya Sabha) of Parliament.

Report Error

View Answer Report Error Discuss

Filed Under: Indian Politics

5 3458
Q:

Borobudur Temple in Magelang is located in which country? 

A) Indonesia B) Iran
C) Bangladesh D) Laos
 
Answer & Explanation Answer: A) Indonesia

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Famous Places

5 3457
Q:

what is the gram formula mass of NH43PO4?

A) 139.54 B) 140.70
C) 149.08 D) 153.24
 
Answer & Explanation Answer: C) 149.08

Explanation:

The gram formula mass is nothing but molar mass.

 

Composition :

 

Symbol      Element       Atomic weight       Atoms
   

     P         Phosphorus       30.973762               1       = 30.973
   

     O         Oxygen             15.9994                  4       =  63.998
   

     N         Nitrogen            14.0067                  3       =  42.020
   

     H         Hydrogen          1.00794                  12      =  12.096

   

Total   =  30.973+63.998+42.020+12.096 = 149.087

Report Error

View Answer Report Error Discuss

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

1 3457
Q:

The external oblique muscle is named due to its

A) Action B) Fiber detection
C) Location D) Attachment points
 
Answer & Explanation Answer: B) Fiber detection

Explanation:
Report Error

View Answer Report Error Discuss

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

5 3456
Q:

Who among the following was the religious guru of Shivaji?

A) Ram Das B) Tukaram
C) Jnaneshwar D) Eknath
 
Answer & Explanation Answer: A) Ram Das

Explanation:

The religious guru of Shivaji was Ram Das.

who_was_the_religious_guru_of_Shivaji1547630263.jpg image

Report Error

View Answer Report Error Discuss

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

5 3456
Q:

The United Nation declared 2005-2015 as the International Decade for

A) Water for Life Decade B) Bone and Joint Decade
C) Second International Decade for the Eradication of colonialism D) International Decade for Natural Disaster Rreduction
 
Answer & Explanation Answer: A) Water for Life Decade

Explanation:
Report Error

View Answer Report Error Discuss

0 3456
Q:

When is International Talk Like a Pirate Day is observed?

A) December 11 B) September 16
C) March 8 D) September 19
 
Answer & Explanation Answer: D) September 19

Explanation:
Report Error

View Answer Report Error Discuss

37 3455