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

Which of the following describes loyalists?

A) They thought Patriots were too radical B) They decided to fight against the British
C) They wanted to return to Britain D) They supported British taxation
 
Answer & Explanation Answer: A) They thought Patriots were too radical

Explanation:

They thought Patriots were too radical is the statement which describes loyalists correctly.

Report Error

View Answer Report Error Discuss

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

3 3477
Q:

The following groups of alphabets form a certain pattern with regard to their position in the English alphabetical series. Based upon the pattern, which of the following five alternatives shall replace the question mark?

A) OOP B) PPP
C) SNO D) QLM
 
Answer & Explanation Answer: B) PPP

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Verbal Reasoning - Mental Ability
Exam Prep: Bank Exams
Job Role: Bank PO

6 3475
Q:

Which of the following harmone is called the emergency harmone ?

A) Insulin B) Adrenaline
C) Estrogen D) Oxytocin
 
Answer & Explanation Answer: B) Adrenaline

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Biology

5 3475
Q:

Antonym of 'Humble'?

A) Bold B) Down-to-Earth
C) Lowly D) Modest
 
Answer & Explanation Answer: A) Bold

Explanation:

Humble means not having or showing any feelings of superiority, self-assertiveness, or showiness.

Humble means in a modest, lowly and down-to-earth manner. Not in a aggressive, bold, self confident manner.

 

Hence, in the given options Bold is an antonym of Humble.

Report Error

View Answer Report Error Discuss

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

1 3474
Q:

Consider the following statements relating to Coal India Limited:1. It is designated as a 'Maha Ratna'company under the Ministry of Coal.2. It is the single largest coal producing company in the world.3. The Headquarters of Coal India Limited is located at Ranchi Jharkhand.
Which of the statements given above is/are correct?

A) 1 only B) 1 and 2only
C) 2 and 3 only D) 1, 2 and 3
 
Answer & Explanation Answer: B) 1 and 2only

Explanation:

Headquarters Kolkata, West Bengal, IndiaCoal India Limited (CIL) is an Indian state-controlled coal mining company headquartered in Kolkata, West Bengal, India and the largest coal-producing company in the world and a Maharatna company.

Report Error

View Answer Report Error Discuss

Filed Under: Indian Geography
Exam Prep: Bank Exams

2 3474
Q:

What is the capital of Philippines?

A) Warsaw B) Manila
C) Lisbon D) Doha
 
Answer & Explanation Answer: B) Manila

Explanation:

Manila is the capital of Philippines

Report Error

View Answer Report Error Discuss

Filed Under: Country Capitals

13 3474
Q:

What can run but never walks, has a mouth but never talks, has a head but never weeps, has a bed but never sleeps?

What_can_run_but_never_walks1533298429.jpg image

Answer

A river which can run but never walks, has a mouth but never talks, has a head but never weeps, has a bed but never sleeps.

Report Error

View answer Workspace Report Error Discuss

Subject: Word Puzzles Exam Prep: GATE , CAT , Bank Exams , AIEEE
Job Role: Bank PO , Bank Clerk , Analyst

6 3474