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 4443
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 4442
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 4441
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 4441
Q:

 A distributed database can use which of the following strategies?

A) Totally centralized one location and accessed by many sites B) Partially or totally replicated across sites
C) Partitioned into segments at different sites D) All of the above
 
Answer & Explanation Answer: D) All of the above

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Database

0 4440
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 4437
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 DBA can set the registry variable DB2_HASH_JOIN on or off because:

A) hash joins may require more resources to run. B) hash joins are not used unless outer joins are requested.
C) If hash joins are enabled, no other join method can be used. D) Hash joins are only needed when the tables are portioned using hash keys.
 
Answer & Explanation Answer: A) hash joins may require more resources to run.

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: IBM Certification

8 4434