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

Who was the first captain of Indian Test Team

A) Vijay Hazare B) C K Nayudu
C) Lala Amarnath D) Vijay Merchant
 
Answer & Explanation Answer: B) C K Nayudu

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Sports

4 4141
Q:

Who wanted economic freedom with political freedom?

A) Swami Sahajanand Saraswati B) Swami Vivekanand
C) Swami Ramanand D) Swami Dayanand saraswati
 
Answer & Explanation Answer: A) Swami Sahajanand Saraswati

Explanation:
Report Error

View Answer Report Error Discuss

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

7 4140
Q:

Tata Steel's Wholly owned indirect subsidiary, Tata Steel Global Minerals Holdings Pvt Limited, Singapore, on October 1, 2008, entered into a binding agreement  with new Millennium Capital Corporation, _______(NML) whereby Tata Steel will become a strategic investor in NML

A) Canada B) Taiwan
C) Mexico D) South Africa
 
Answer & Explanation Answer: A) Canada

Explanation:
Report Error

View Answer Report Error Discuss

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

3 4140
Q:

The 112-feet tall bust of ‘Adiyogi’ Lord Shiva at the Isha Yoga Foundation in ___________ has been declared the world’s largest bust by the Guinness Book of World Records.

A) Telangana B) Andhra Pradesh
C) Haryana D) Tamil Nadu
 
Answer & Explanation Answer: D) Tamil Nadu

Explanation:

The 112-feet tall bust of ‘Adiyogi’ Lord Shiva at the Isha Yoga Foundation has been declared the world’s largest bust by the Guinness Book of World Records. The Guinness had announced this on its website. The bust at the Isha Yoga Foundation on the outskirts of Coimbatore, Tamil Nadu was unveiled by Prime Minister Narendra Modi on 24 February.

Report Error

View Answer Report Error Discuss

Filed Under: General Awareness
Exam Prep: Bank Exams , CAT
Job Role: Bank Clerk

2 4140
Q:

In December 2017, which Ministry launched a pilot project ‘Blue Flag’?

 

A) Ministry of Home Affairs B) Ministry of Health and Family Welfare
C) Ministry of Environment, Forest and Climate change D) Ministry of Tourism
 
Answer & Explanation Answer: C) Ministry of Environment, Forest and Climate change

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: General Awareness
Exam Prep: Bank Exams

0 4138
Q:

Which country has built the world's largest amphibian aircraft ?

A) Japan B) Russia
C) China D) India
 
Answer & Explanation Answer: C) China

Explanation:

China's amphibian aircraft, which is stated to be the world's largest, has successfully passed engine tests and is expected to make its maiden flight in the first half of the year 2017.

Report Error

View Answer Report Error Discuss

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

6 4136