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

Gasoline is useful in cars because it has

A) chemical potential energy B) electrical potential energy
C) gravitational potential energy D) kinetic energy
 
Answer & Explanation Answer: A) chemical potential energy

Explanation:

Gasoline is a colorless petroleum-derived flammable liquid that is used primarily as a fuel in spark-ignited internal combustion engines. It consists mostly of organic compounds obtained by the fractional distillation of petroleum, enhanced with a variety of additives. It is also called as Petrol. It has chemical potential energy, in combustion it is turned into light, sound, heat and kinetic energy.

Report Error

View Answer Report Error Discuss

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

2 4038
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 4038
Q:

The term of a non – permanent member of the U.N. Security Council is

A) 2 years B) 3 years
C) 1 year D) 6 months
 
Answer & Explanation Answer: A) 2 years

Explanation:
Report Error

View Answer Report Error Discuss

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

12 4038
Q:

When was World Bank set up?

A) 1944 B) 1945
C) 1947 D) 1948
 
Answer & Explanation Answer: A) 1944

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: World Organisations

7 4037
Q:

Activities done repeatedly over time will become more efficient, increase in quality and will be found to be less demanding by the performing people. This is known as the

A) Learning Curve Theory. B) Continuous Improvement Theory.
C) Six-sigma Theory. D) Homeostasis Theory.
 
Answer & Explanation Answer: A) Learning Curve Theory.

Explanation:

Answers B and C belong to quality management, and answer D was formulated by Elizabeth Duffy and suggested that we all try to adjust our lives so that we have a dynamic balance (homeostasis) between challenge and relaxation. Kerstner, Chapter 18

Report Error

View Answer Report Error Discuss

Filed Under: PMP Certification

0 4037
Q:

Concatenation of text can be done using

A) Ampersand (&) B) Hash (#)
C) Apostrophe (') D) Exclamation (!)
 
Answer & Explanation Answer: A) Ampersand (&)

Explanation:

Concatenation of text means adding a word with other word. It can be done using Ampersand (&).

For example :

'Amper' & 'sand' = Ampersand 

Report Error

View Answer Report Error Discuss

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

2 4036