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

Which day is observed as Rashtriya Ekta Diwas every year in India?

A) 31st July B) 31st March
C) 31st January D) 31st October
 
Answer & Explanation Answer: D) 31st October

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Important Days and Years
Exam Prep: AIEEE , Bank Exams , CAT
Job Role: Bank Clerk , Bank PO

8 3478
Q:

Magnetic field lines about a current-carrying wire

A) circle the wire in closed loops B) extend radially from the wire
C) both of these D) None of the above
 
Answer & Explanation Answer: A) circle the wire in closed loops

Explanation:

Electric current produces a magnetic field. This magnetic field can be visualized as a pattern of circular field lines surrounding a wire.

Report Error

View Answer Report Error Discuss

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

3 3478
Q:

The 'P' in DPT stands for

A) Pulmonary B) Pneumonia
C) Pneumothorax D) Pertussis
 
Answer & Explanation Answer: D) Pertussis

Explanation:

DPT refers to a class of combination vaccines against three infectious diseases in humans: diphtheria, pertussis, and tetanus.

 

Pertussis refers to whooping cough.

Report Error

View Answer Report Error Discuss

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

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

At what temperature do pathogenic bacteria grow best in food?

A) 5 to 15 degrees Celsius B) 15 to 25 degrees Celsius
C) 20 to 45 degrees Celsius D) 40 to 65 degrees Celsius
 
Answer & Explanation Answer: C) 20 to 45 degrees Celsius

Explanation:

The Bacteria that causes Food Borne illness are called Food Borne Pathogens. Most of the pathogens are mesophilic in nature, optimum temperature may be around 20-45 degree celsius. This range of temperatures is often called the "Danger Zone." Dry foods do not support the growth of bacteria.

 

In order to kill pathogenic bacteria you need temperatures above 74ºC. Temperature is the easiest factor to control in order to prevent bacterial growth.

Report Error

View Answer Report Error Discuss

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

6 3476
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:

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 3475