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

_______________has launched Digital Education Programme for media agency professionals in Asia Pacific Region.

A) Facebook B) Google
C) Yahoo D) Twitter
 
Answer & Explanation Answer: D) Twitter

Explanation:
Report Error

View Answer Report Error Discuss

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

6 3458
Q:

Radio waves sent out by a radio stations are reflected by

A) troposphere B) stratosphere
C) mesosphere D) ionosphere
 
Answer & Explanation Answer: D) ionosphere

Explanation:

This is a layer of atmosphere about 60 to 70 km above the earth and extends to about 400km. It contains ionised particles which can reflect radio waves making radio communication round the world possible.

Report Error

View Answer Report Error Discuss

Filed Under: Physics

2 3458
Q:

The shortest book in number of words?

A) John B) Jude
C) Obadiah D) Philemon
 
Answer & Explanation Answer: A) John

Explanation:
Report Error

View Answer Report Error Discuss

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

3 3457
Q:

An animal zygote divides to form

A) an egg B) sperm
C) flagella D) blastula
 
Answer & Explanation Answer: D) blastula

Explanation:

Fertilization is the process in which a single haploid sperm fuses with a single haploid egg fuse to form a zygote.  

An animal zygote under go mitosis and divides to form a hallow ball of cells called blastula.

Report Error

View Answer Report Error Discuss

Filed Under: Animals and Birds
Exam Prep: AIEEE , Bank Exams
Job Role: Analyst , Bank Clerk , Bank PO

3 3457
Q:

Who was the first Musilm invader to enter India?

A) Mohammed Ghauri B) Mohammed - bin - Qasim
C) Mohammed Ghazni D) Qutab-ud-din Aibak
 
Answer & Explanation Answer: B) Mohammed - bin - Qasim

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Indian History

3 3457
Q:

Lady Ratan Tata Trophy' is related to which game?

A) Basketball B) Hockey
C) Kho-Kho D) Cricket
 
Answer & Explanation Answer: B) Hockey

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Sports
Exam Prep: Bank Exams

3 3457
Q:

What are the sub-components of I/O manager in Windows NT?

Answer

- Network redirector/ Server


- Cache manager.


- File systems


- Network driver


- Device driver

Report Error

View answer Workspace Report Error Discuss

0 3455