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

What happens when HLT instruction is executed in processor?

Answer

The Micro Processor enters into Halt-State and the buses are tri-stated. 

Report Error

View answer Workspace Report Error Discuss

Subject: Hardware

0 3970
Q:

Galileo was an Italian Astronomer who

A) Discovered 4 satellites of Mars B) Developed the Telescope
C) Discovered that the movement of pendulum produces a regular time measurement D) Both B & C
 
Answer & Explanation Answer: D) Both B & C

Explanation:

Galileo Galilei (1564-1642) was an Italian Astronomer who

1) Discovered 4 satellites of Jupiter

2) Developed Telescope

3) Discovered that the movement of pendulum produces a regular time measurement

 

Galileo_was_an_Italian_Astronomer_who1559023780.png image

 

He is Physicist, Mathematician, inventor, and philosopher Too.

Report Error

View Answer Report Error Discuss

Filed Under: General Awareness
Exam Prep: TOEFL , GRE , GATE , CAT , Bank Exams , AIEEE
Job Role: IT Trainer , Bank PO , Analyst

6 3970
Q:

When the simmon commission visited India the Viceroy was

A) Lloyd George B) Lord lrwin
C) Lord Reading D) Lord Ripon
 
Answer & Explanation Answer: B) Lord lrwin

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Indian History

4 3969
Q:

Name the person who has become the first visually impaired Indian runner to complete the historic Boston Marathon.

A) Shankar Alam B) Sagar Baheti
C) Saumya Vashishtha D) Naval Kulkarni
 
Answer & Explanation Answer: B) Sagar Baheti

Explanation:

Bangalore-based Sagar Baheti has become the first visually impaired Indian runner to complete the historic Boston Marathon, the world's oldest and the hardest marathon to qualify for.

Report Error

View Answer Report Error Discuss

Filed Under: General Awareness
Exam Prep: CAT

6 3967
Q:

Which country is separated from India by the McMohan line ?

A) Bangladesh B) Afghanistan
C) China D) Pakistan
 
Answer & Explanation Answer: C) China

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: General Awareness

1 3967
Q:

______ Tribunal has banned the use of Chinese 'Kite' strings made of nylon or any other synthetic material in India from July 2017 ?

A) National Green Tribunal B) National Consumer Dispute Redressal Commission
C) Industrial Tribunals D) Central Administrative Tribunal
 
Answer & Explanation Answer: A) National Green Tribunal

Explanation:

1. The National Green Tribunal banned the use of ‘Chinese’ kite strings, made of nylon or any synthetic material on the grounds that it poses threat to life and environment.

2. The Tribunal directed all state governments to prohibit the “manufacture, sale, storage, purchase and use” of synthetic manja or nylon threads and all other synthetic strings used for flying kites with immediate effect.

3. A bench headed by NGT Chairperson Justice Swatanter Kumar ordered the authorities to ban import of any synthetic manja.

Report Error

View Answer Report Error Discuss

Filed Under: General Awareness
Exam Prep: Bank Exams , CAT

4 3966
Q:

People buy me to eat but never eat me?

Answer

I ama PLATE.


People used me to eat their food but cannot eat me.

Report Error

View answer Workspace Report Error Discuss

Subject: Logic Puzzles Exam Prep: GRE , CAT , Bank Exams

79 3966