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

What is the difference between microkernel and macro kernel?

Answer

Micro-kernal : A micro-kernel is a minimal operating system that performs only the essential functions of an operating system. All other operating system functions are performed by system processes.


Monolithic : A monolithic operating system is one where all operating system code is in a single executable image and all operating system code runs in system mode.

Report Error

View answer Workspace Report Error Discuss

0 3240
Q:

Who is Dr. Kasturirangan

A) Chairman, ISRO B) Finance Secretary,Govt. of TamilNadu
C) Vice Chancellor,Anna University D) Director,DRDO
 
Answer & Explanation Answer: A) Chairman, ISRO

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Famous Personalities

3 3240
Q:

FTP is File Transmission Protocol

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

Explanation:

FTP-File Transfer Protocol

Report Error

View Answer Workspace Report Error Discuss

Subject: Networking
Job Role: Network Engineer

0 3240
Q:

The crop that has the highest photosynthetic activity -

A) Sugarcane B) Wheat
C) Cotton D) Rice
 
Answer & Explanation Answer: A) Sugarcane

Explanation:

Corn, sugar cane, and sorghum are C4 plants. These plants are economically important in part because of their relatively high photosynthetic efficiencies compared to many other crops.

Report Error

View Answer Report Error Discuss

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

15 3238
Q:

Which of the following monuments was not constructed by Shajahan?

A) Red fort, Delhi B) Tajmahal, Delhi
C) Kuthubminar, Delhi D) Jama Masjid, Delhi
 
Answer & Explanation Answer: C) Kuthubminar, Delhi

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Indian History

5 3238
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 3238
Q:

What is the Lithosphere made of?

A) Soil B) Rocks
C) Dirt D) Water
 
Answer & Explanation Answer: B) Rocks

Explanation:

Lithoshpere are composed of rocks in the crust and upper mantle that behave as brittle solids. The lithosphere is Earth's outermost layer.

Report Error

View Answer Report Error Discuss

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

7 3235