Questions

Q:

How would you free the memory allocated by the following program?

#include "alloc.h"

#define MAXROW 3

#define MAXCOL 4

main()

{

     int **p, i;

     p = (int **) malloc (MAXROW * sizeof (int *));

      for ( i = 0; i < MAXROW ; i++)

            p[i] = (int *) malloc (MAXCOL * sizeof (int ));

}

Answer

for ( i=0; i < MAXROW ; i++)


free (p[i]);


free (p);

Report Error

View answer Workspace Report Error Discuss

Subject: Programming

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

Who wrote The Great Indian Middle Class?

A) Pawan verma B) Arundhati Roy
C) Vikram Chandra D) Jayprakash Sharma
 
Answer & Explanation Answer: A) Pawan verma

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: General Awareness

8 4032
Q:

Who amongst the following is the author of the book ' Freedom from Fear '

A) Nelson Mandela B) Aung San Suukyi
C) Taslima Nasreen D) Benazir Bhutto
 
Answer & Explanation Answer: B) Aung San Suukyi

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Books and Authors

10 4031
Q:

A linear-shaped lowland between highlands or mountain ranges created by the action of a geologic rift or fault is called?

Answer

rift valley

Report Error

View answer Workspace Report Error Discuss

Subject: World Geography

0 4031
Q:

Which planet experiences the volcano with the name of "Arsia Mon"  ?

A) Earth B) Mars
C) Jupiter D) None
 
Answer & Explanation Answer: B) Mars

Explanation:

Arsia Mons is among the three volcanos of the planet Mars. Arsia Mons is a shield volcano with a slow slope. Arsia Mons is thirty times in volumes of Mauna Loa in Hawaii, the largest volcano on Earth.

Report Error

View Answer Report Error Discuss

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

9 4030
Q:

What are the basic components in a Microprocessor?

Answer

1. Address lines to refer to the address of a block


2. Data lines for data transfer


3. IC chips


4. Processing data

Report Error

View answer Workspace Report Error Discuss

Subject: Hardware

5 4029
Q:

The abundance of which type of mangrove tree has lent its name to the saltwater swamp which forms in the lower part of the Ganges delta?

Answer

Sundari

Report Error

View answer Workspace Report Error Discuss

2 4029