Questions

Q:

What is the difference between malloc() and calloc() functions?

Answer

As against malloc(), calloc() needs two arguments, the number of elements  to be allocated and the size of each element. For example,


 p = (int *) calloc (10, sizeof (int));


would allocate space for a 10- integer array. Additionally, calloc() would also set each of this element with a value 0.


Thus the above call to calloc() is equivalent to:


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


memset (p, 0, 10 * sizeof( int ));

Report Error

View answer Workspace Report Error Discuss

Subject: Programming

0 4143
Q:

Hydroplaning is usually caused by

A) Excessive speed B) Sudden stops
C) Sudden turns D) All of the above
 
Answer & Explanation Answer: A) Excessive speed

Explanation:

Hydroplaning is caused by a combination of standing water on the road, car speed, and under-inflated or worn-out tires.

Hydroplaning_is_usually_caused_by1558074712.jpg image

Report Error

View Answer Report Error Discuss

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

0 4142
Q:

A colour blind person has difficulty in distinguishing which of the two colours ?

A) Green & Red B) White & Red
C) Blue & Red D) Red & Black
 
Answer & Explanation Answer: A) Green & Red

Explanation:
Report Error

View Answer Report Error Discuss

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

20 4141
Q:

The Periyar Game Sanctuary at Thekkady is in 

A) Karnataka B) Kerala
C) Tamil Nadu D) Goa
 
Answer & Explanation Answer: B) Kerala

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: General Awareness

1 4140
Q:

Which of the following is the highest active volcano in the world

A) Etna B) Fujiyoma
C) Mount tai D) Catopaxi
 
Answer & Explanation Answer: D) Catopaxi

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: World Geography

3 4140
Q:

As per the policies of the Government of India any proposal for FDI in single brand retail should not be above line of ___

A) 33% B) 43%
C) 48% D) 51%
 
Answer & Explanation Answer: D) 51%

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: General Awareness
Exam Prep: Bank Exams
Job Role: Bank PO

13 4137
Q:

Who was the contemporary ruler of Emperor Asoka in Sri Lanka?

 

A) Mahasen B) Kasyapa
C) Tissa D) Vijayabahu I
 
Answer & Explanation Answer: C) Tissa

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Indian History
Exam Prep: Bank Exams

1 4136
Q:

Bao dhaan is a variety of rice cultivated in which Indian state?

 

A) Assam B) Haryana
C) Telangana D) Odisha
 
Answer & Explanation Answer: A) Assam

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Indian Geography
Exam Prep: Bank Exams

0 4136