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

March 21 is observed as.......

A) World Environment Day B) World Forestry Day
C) World Greenary Day D) None of these
 
Answer & Explanation Answer: B) World Forestry Day

Explanation:
Report Error

View Answer Report Error Discuss

1 3242
Q:

President Pranab Mukherjee inaugurated the biggest river festival of India in 2017, Namami Brahmaputra, in which of the following states ?

A) Arunachal Pradesh B) Assam
C) Orissa D) Tripura
 
Answer & Explanation Answer: B) Assam

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: General Awareness

3 3242
Q:

The Special officer for Scheduled Castes and Scheduled Tribes is appointed by the 

A) Prime Minister B) President
C) Law Minister D) Vice-President
 
Answer & Explanation Answer: B) President

Explanation:

Act 338 enjoins this. Appointed in November 1950, this official has now been redesignated Commissioner for Scheduled Castes and Tribes. He submits annual reports to the president.

Report Error

View Answer Report Error Discuss

Filed Under: Indian Politics

5 3242
Q:

Which term best describes how the solar system formed?

A) Electrically B) Gradually
C) Chemically D) Rapidly
 
Answer & Explanation Answer: B) Gradually

Explanation:

All of us, believe that the Solar System evolved from a giant cloud of dust and gas. They believe that this dust and gas began to collapse under the weight of its own gravity. As it did so, the matter contained within this could begin moving in a giant circle, much like the water in a drain moves around the center of the drain in a circle.

solar_system_formation1532070182.jpg image

At the center of this spinning cloud, a small star began to form. This star grew larger and larger as it collected more and more of the dust and gas that collapsed into it.

Further away from the center of this mass where the star was forming, there were smaller clumps of dust and gas that were also collapsing. The star in the center eventually ignited forming our Sun, while the smaller clumps became the planets, minor planets, moons, comets, and asteroids.

 

Report Error

View Answer Report Error Discuss

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

5 3241
Q:

Which of the following would cause gene flow?

A) Individuals moving into population B) Genetic drift
C) Mutation D) Artificial selection
 
Answer & Explanation Answer: A) Individuals moving into population

Explanation:

Gene flow means migration of genes from one to another. This gene flow is caused by individuals moving into population.

Report Error

View Answer Report Error Discuss

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

3 3241
Q:

Both food and air travel through the

A) pharynx B) trachea
C) larynx D) alveolus
 
Answer & Explanation Answer: A) pharynx

Explanation:

The pharynx is a passageway shared by both food and air.

 

Both_food_and_air_travel_through_the1562568925.png image

Report Error

View Answer Report Error Discuss

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

5 3241
Q:

Lens is made up of which glass

A) Ordinary glass B) Pyrex glass
C) Flint glass D) Cobalt glass
 
Answer & Explanation Answer: C) Flint glass

Explanation:
Report Error

View Answer Report Error Discuss

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

9 3240