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:

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

What George Westinghouse invented?

A) Electric razor B) Light bulb
C) Railway air brakes D) Refrigerator
 
Answer & Explanation Answer: C) Railway air brakes

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Inventions

1 3244
Q:

I am a 6 letter word. 2,5,6 used by people to move from one place to another. 4,3,2 is also used by people to move from one place to another. 4,5,2 is the young one of carnivorous animal. If u remve my 1st, 2nd, 3rd and 4th letters its everybody. What am I?

Answer

It is ABACUS.


Words formed are as below 


BUS
CAB
CUB
US

Report Error

View answer Workspace Report Error Discuss

Subject: Logic Puzzles Exam Prep: Bank Exams

17 3244
Q:

How much time for the total distance?

time_and_distance1561111256.jpg image

A) 85 min B) 1 hr 15 min
C) 90 min D) 1 hr 08 min
 
Answer & Explanation Answer: B) 1 hr 15 min

Explanation:

From the given data, 

if 60% = 45 minutes


100% =  ?

=> 45 × 100/60

= 75 min


i.e, = 1hr 15 min.

Report Error

View Answer Report Error Discuss

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

17 3243
Q:

Which country won the World cup in 1999

A) Australia B) South Africa
C) Pakistan D) England
 
Answer & Explanation Answer: A) Australia

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Sports

2 3242
Q:

RADAR is used for

A) detecting and locating the position of objects such as Aeroplanes B) locating submerged submarines
C) locating geostationary satellites D) receiving a signals in a radio receiver
 
Answer & Explanation Answer: A) detecting and locating the position of objects such as Aeroplanes

Explanation:

RADAR - RAdio Detection And Ranging.

A radar system consists of a transmitter producing electromagnetic waves in the radio or microwaves domain, a transmitting antenna, a receiving antenna (often the same antenna is used for transmitting and receiving) and a receiver and processor to determine properties of the objects. 

 

Radar is an object-detection system that uses radio waves to determine the range, angle, or velocity of objects. It can be used to detect aircraft, ships, spacecraft, guided missiles, motor vehicles, weather formations, and terrain.

 

Radio waves from the transmitter reflect off the object and return to the receiver, giving information about the object's location and speed.

Report Error

View Answer Report Error Discuss

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

5 3242
Q:

What is the national flower of Bangladesh?

 

A) Red Rose   B) White Jasmine  
C) Shapla D) Lotus
 
Answer & Explanation Answer: C) Shapla

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: General Awareness
Exam Prep: Bank Exams

1 3242