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:

The clipboard

A) is a Cache memory B) is a feature that stores user information
C) is used to temporarily store, items that has been cut or copied D) is a feature that saves file temporarily
 
Answer & Explanation Answer: C) is used to temporarily store, items that has been cut or copied

Explanation:

A clipboard is a temporary storage area for items that the user wants to cut or copy from one place to another.

 

For example, in a word processor application, the user might want to cut text from one part of a document and paste it in another part of the document or somewhere else, it is temporarily stored in clipboard.

Report Error

View Answer Report Error Discuss

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

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

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 3241
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 3240
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 3239
Q:

Which sector of Indian Economy has shown remarkable expansion during the last decade

A) Primary sector B) Secondary sector
C) Terrrtiary sector D) Mining sector
 
Answer & Explanation Answer: C) Terrrtiary sector

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Indian Economy

2 3238
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 3238