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

' Ashoka Chakra' is awarded for 

A) Outstanding contribution to literature B) Gallantry by children
C) Acts of gallantry in the presence of the enemy D) The most conspicuous bravery or self-sacrifice an land, air or sea but not in the presence of the enemy
 
Answer & Explanation Answer: D) The most conspicuous bravery or self-sacrifice an land, air or sea but not in the presence of the enemy

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Honours and Awards

14 4439
Q:

Which of the following is not an Output device?

A) Scanner B) Moniter
C) Printer D) Speakers
 
Answer & Explanation Answer: A) Scanner

Explanation:
Report Error

View Answer Report Error Discuss

9 4438
Q:

Patanjali and Reliance Jio has ranked _____ respectively, in Top 10 influencial Brands of India ?

A) 4 & 9 B) 3 & 10
C) 2 & 1 D) 5 & 6
 
Answer & Explanation Answer: A) 4 & 9

Explanation:

Ramdev promoted Patanjali Ayurveda and Reliance Jio have featured among the top 10 most influential brand in India, according to a study by the global research firm Ipsos.

Home grown Patanjali and Mukesh Ambani’s controlled Reliance Jio have bagged the fourth and ninth position, respectively. Interestingly, Patanjali and Reliance Jio made an impressive entry as they did not figure in the previous edition of the study.

Besides, Google has been ranked at the top slot while Microsoft and Facebook were ranked at number two and three, respectively. State Bank of India (SBI) being the only financial institution that made to the list, moved up four ranks to take the fifth position. E-commerce player Flipkart dropped three spots to take the tenth place while Amazon climbed couple of steps to take the sixth place. Other companies that made to the list include Samsung (7th) and Airtel (8th).

Report Error

View Answer Report Error Discuss

Filed Under: Indian Economy
Exam Prep: Bank Exams , CAT
Job Role: Bank Clerk , Bank PO

13 4436
Q:

The US President who was forced to resign due to the Watergate scandal was

Answer

Nixon

Report Error

View answer Workspace Report Error Discuss

Subject: World History

13 4436
Q:

The Manu Smirit Mainly deals with

A) Social order Laws B) laws
C) Economics D) State craft
 
Answer & Explanation Answer: B) laws

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Indian History

4 4434
Q:

It is 3 in the morning, you’re sleeping and you hear the doorbell. It’s your parents who show up for a surprise visit for breakfast. You’ve got the strawberry jam, honey, bread and cheese.
What do you open first?

A) open your door B) open your mouth
C) open the fridge D) open your eyes
 
Answer & Explanation Answer: D) open your eyes

Explanation:

As you were asleep, none of the things could have happened without doing "open your eyes" first.

Report Error

View Answer Report Error Discuss

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

7 4432
Q:

First team in history to win 100  T-20 matches

Cricket1498883561.jpg image

A) A B) B
C) C D) D
 
Answer & Explanation Answer: C) C

Explanation:

Mumbai Indians

Report Error

View Answer Report Error Discuss

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

13 4431