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

What kind of pet always stays on the floor?

A) Cat B) Dog
C) Carpet D) All of the above
 
Answer & Explanation Answer: C) Carpet

Explanation:

A Carpet is the pet which always stays on the floor.

Carpet_on_floor1531810151.jpg image

Report Error

View Answer Report Error Discuss

Filed Under: Word Puzzles
Exam Prep: AIEEE , Bank Exams , GRE , TOEFL
Job Role: Analyst , Bank Clerk , Bank PO

2 4557
Q:

Hepatitis virus destroys the cells and may cause the disease

A) Jaundice B) Malaria
C) Typhoid D) Elephantiasis
 
Answer & Explanation Answer: A) Jaundice

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Biology

7 4557
Q:

What cannot be performed from the windows task manager?

A) Open a program B) Check recent CPU usage
C) Delete a program from the hard drive D) View what applications are running in the background
 
Answer & Explanation Answer: C) Delete a program from the hard drive

Explanation:

The task manager enables you to monitor processes, applications and services currently running on your computer. You can use it to start and stop programs and processes. In addition, you can use the task manager to show informative stats about your PC’s performance and network.

 


Hence, to delete a program from the hard drive, you have to go to the control panel to uninstall an application properly.

 

Report Error

View Answer Report Error Discuss

6 4557
Q:

what is the source of energy for the water cycle?

A) Rain water B) Sun
C) Clouds D) Animals
 
Answer & Explanation Answer: B) Sun

Explanation:

The water cycle is a term for the movement of water between the Earth's surface, the sky and underground. Water evaporates due to heat from the sun. Hence, the water cycle is driven primarily by the energy from the sun.

watercycle1531808968.gif image

This solar energy drives the cycle by evaporating water from the oceans, lakes, rivers, and even the soil. Other water moves from plants to the atmosphere through the process of transpiration.

Report Error

View Answer Report Error Discuss

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

4 4555
Q:

A column defined as UNIQUE can contain Nulls while a column defined as PRIMARY KEY can't contain Nulls

A) TRUE B) FALSE
Answer & Explanation Answer: A) TRUE

Explanation:

Because a table can have only one primary key

Report Error

View Answer Workspace Report Error Discuss

1 4553
Q:

The Jigme Dorji National Park is located in which country  ?

A) Myanmar B) Bhutan
C) India D) Nepal
 
Answer & Explanation Answer: B) Bhutan

Explanation:

The Jigme Dorji National Park is the second-largest National Park of Bhutan. The park provides sanctuary for 37 known species of mammals including several endangered, threatened or vulnerable species, such as the takin, snow leopard, clouded leopard, Bengal tiger, bharal or Himalayan blue sheep, etc. It is also home to the Indian leopard, serow, sambar, barking deer, goral, marmot, pika and more than 300 species of birds. It is also the only park in Bhutan where the national animal (takin), flower (blue poppy), bird (raven) and tree (cypress) exist together.

Report Error

View Answer Report Error Discuss

Filed Under: World Geography
Exam Prep: AIEEE , Bank Exams , CAT
Job Role: Bank Clerk

5 4550
Q:

India has ranked _____ rank in World Bank's 'Ease of doing business' index.

A) 100 B) 101
C) 99 D) 102
 
Answer & Explanation Answer: A) 100

Explanation:
Report Error

View Answer Report Error Discuss

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

14 4550