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

Water which is suitable for drinking is called _______________ water.

 

A) hygienic B) sparkling
C) potable D) sanitary
 
Answer & Explanation Answer: C) potable

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Chemistry
Exam Prep: Bank Exams

0 3245
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 3245
Q:

Which, among the following industries , consumes the maximum power?

A) aluminium B) coal
C) steel D) petroleum refining
 
Answer & Explanation Answer: A) aluminium

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: General Awareness

2 3244
Q:

Which of the following elements has the lowest electronegativity

A) Bromine B) Fluorine
C) Carbon D) Lithium
 
Answer & Explanation Answer: D) Lithium

Explanation:

Electronegativity is the tendency for an atom to attract electrons. There are general trends on the periodic table which you can use to determine the relative electronegativity for different elements, but otherwise you can also look at their valence shell and effective nuclear charge to determine their relative electronegativity.

 

Here from the given options, Lithium has least tendency to attract electrons and thus has a lower electronegativity.

Report Error

View Answer Report Error Discuss

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

1 3244
Q:

Santhal, a folk dance of India, belongs to which state?

 

A) Karnataka B) Odisha
C) West Bengal D) Maharashtra
 
Answer & Explanation Answer: C) West Bengal

Explanation:

Santhal, one of the best tribal folk dances of India, belongs to the state of West Bengal.

 

Report Error

View Answer Report Error Discuss

Filed Under: Indian Culture
Exam Prep: Bank Exams

9 3244
Q:

The Busiest Metro Station in the world _________

Answer

Shinjuku Station in Tokyo, Japan, has an average of 3.64 million passengers pass through it each day. It has more than 200 exits.

Report Error

View answer Workspace Report Error Discuss

1 3243
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 3243