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

A is shorter than B but taller than C. D is shorter than A but taller than C and E is shorter than B but taller than A. The shortest person is ?

A) B B) C
C) A D) D
 
Answer & Explanation Answer: B) C

Explanation:
Report Error

View Answer Report Error Discuss

3 3474
Q:

Plants that make their own food are called

A) Autotrophs B) Hydrophylls
C) Decomposers D) Heterotrophs
 
Answer & Explanation Answer: A) Autotrophs

Explanation:

Plants make their own food through the process of photosynthesis. Plants are self-sufficient. Green plants have the ability to prepare their own food and this is the reason why they are called autotrophs.

                                        Autotrophs1530267836.jpg image


They make their own food through the process of photosynthesis using light energy to make sugars from carbon dioxide (C02) and water (H20). The chlorophyll which is present in the leaves is the main reason for the production of food in the plants and it is the reason for the greenery of the leaves too.

Report Error

View Answer Report Error Discuss

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

4 3474
Q:

Emotional intelligence is a critical component of

A) analytical intelligence B) creativity
C) convergent thinking D) social intelligence
 
Answer & Explanation Answer: D) social intelligence

Explanation:

Emotional intelligence is a critical component of social intelligence.

Report Error

View Answer Report Error Discuss

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

1 3474
Q:

In which year was the State of Jharkhand formed

A) 1998 B) 1999
C) 2000 D) 2001
 
Answer & Explanation Answer: C) 2000

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Indian Politics

2 3474
Q:

Memory is made up of

A) Large number of cells B) Set of wires
C) Set of circuits D) None of the above
 
Answer & Explanation Answer: A) Large number of cells

Explanation:

In computing, memory refers to the computer hardware integrated circuits that store information for immediate use in a computer.

Most semiconductor memory is organized into memory cells or bistable flip-flops, each storing one bit (0 or 1).

Report Error

View Answer Report Error Discuss

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

2 3474
Q:

Desertification refers to

A) forest degrading to dense taiga B) forest improving to tundras
C) forest improving to deserts D) forest degrading to sparse vegetation
 
Answer & Explanation Answer: C) forest improving to deserts

Explanation:

Desertification is a type of land degradation in which a relatively dry area of land becomes increasingly arid, typically losing its bodies of water as well as vegetation and wildlife.

 

Conversion of a grassland or an already arid land into a desert through indiscriminate human actions magnified by droughts.

 

Hence, forest improving to deserts is refers to desertification.

Report Error

View Answer Report Error Discuss

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

13 3473
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 3472