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

Extrusive volcanoes are not found in which one of the following mountains?

A) Alaska B) Rocky
C) Andes D) Himalayas
 
Answer & Explanation Answer: D) Himalayas

Explanation:

Volcanic mountains are very common along the destructive plate boundaries i.e. Oceanic-continental plate boundaries which are yet uncovered in the rock folded mountains formed due to continental –to continental plate collision.The Himalayas are also a plate-to-plate collision tectonic boundary. In this case, the Indian Plate [of the Indian Subcontinent] is colliding head-on with the Eurasian Plate. Both plates are comprised of continental lithospheric crust, so there is no appreciable distinction in density.

Report Error

View Answer Report Error Discuss

Filed Under: General Awareness
Exam Prep: Bank Exams

2 3431
Q:

Nissil granules occur in

A) Eosinophil B) Glial cell
C) Neuron D) Lymphocyte
 
Answer & Explanation Answer: C) Neuron

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Biology

6 3431
Q:

The instrument of instructions contained in the Government of India Act, 1935 has been incorporated in the Constitution of India in the year 1950 as ______ 

A) Fundamental Rights B) Directive Principles of the State Policy
C) Fundamental Duities D) Emergency Provisions
 
Answer & Explanation Answer: D) Emergency Provisions

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Indian Politics

5 3430
Q:

Which of the following is regarded by historians as a crucial stage in describing the progress of civilization?

A) Writing B) The discovery of fire
C) Agriculture D) The use of internet
 
Answer & Explanation Answer: C) Agriculture

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Indian History

3 3430
Q:

Who has won the Nobel prize in "Physics" for the year 2017 ?

A) Barry Barish B) Kip Thorne
C) Rainer Weiss D) All of the above
 
Answer & Explanation Answer: D) All of the above

Explanation:

Rainer Weiss, a professor at the Massachusetts Institute of Technology, and Kip Thorne and Barry Barish, both of the California Institute of Technology, were awarded the Nobel Prize in Physics for the discovery of ripples in space-time known as gravitational waves, which were predicted by Albert Einstein a century ago but had never been directly seen.

Report Error

View Answer Report Error Discuss

Filed Under: Honours and Awards
Exam Prep: AIEEE , Bank Exams , CAT
Job Role: Bank Clerk , Bank PO

19 3430
Q:

The headquarters of World Anti-Doping Agency are located at _____.

A) Montreal B) Belgium
C) Newyork D) Geneva
 
Answer & Explanation Answer: A) Montreal

Explanation:

The World Anti-Doping Agency (WADA) is a foundation created through a collective initiative led by the International Olympic Committee (IOC). It was set up on 10 November 1999 in Lausanne, Switzerland, as a result of what was called the "Declaration of Lausanne", to promote, coordinate and monitor the fight against drugs in sports. Since 2002, the organization's headquarters have been located in Montreal, Quebec, Canada.

Report Error

View Answer Report Error Discuss

Filed Under: World Organisations
Exam Prep: AIEEE , Bank Exams , CAT
Job Role: Bank Clerk , Bank PO

13 3429
Q:

What state of matter is Jello?

A) Liquid B) Solid
C) Colloid D) Gas
 
Answer & Explanation Answer: C) Colloid

Explanation:

Jello is a colloid, a semi-rigid structure i.e, semi-solid suspended in a liquid. When you Heat it up a bit and you'll break the protein bonds of the gelatin and it will liquefy completely and if you freeze, it becomes solid.

Report Error

View Answer Report Error Discuss

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

2 3429