Questions

Q:

What will be output of following program ?

#include
int main()

{

int a = 10;
void *p = &a;
int *ptr = p;
printf("%u",*ptr);
return 0;

}

A) 10 B) Address
C) 2 D) Compilation error
 
Answer & Explanation Answer: A) 10

Explanation:

Void pointer can hold address of any data type without type casting. Any pointer can hold void pointer without type casting.

Report Error

View Answer Report Error Discuss

Filed Under: Programming

1 29569
Q:

Explain Belady's Anomaly?

Answer

Also called FIFO anomaly. Usually, on increasing the number of frames allocated to a process virtual memory, the process execution is faster, because fewer page faults occur. Sometimes, the reverse happens, i.e., the execution time increases even when more frames are allocated to the process. This is Belady's Anomaly. This is true for certain page reference patterns.

Report Error

View answer Workspace Report Error Discuss

59 29560
Q:

Capital budgeting decisions are generally based on:

 

A) Tentative predictions of future outcomes. B) Perfect predictions of future outcomes.
C) Speculation of interest rates and economic performance only. D) Results from past outcomes only.
 
Answer & Explanation Answer: A) Tentative predictions of future outcomes.

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Indian Economy
Exam Prep: Bank Exams

0 29518
Q:

Where is the Nandi hills located?

 

 

A) Bihar B) Gujarat  
C) Karnataka D) Rajasthan  
 
Answer & Explanation Answer: C) Karnataka

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Indian Geography
Exam Prep: Bank Exams

1 29511
Q:

Two Fathers and Two Sons Riddle

Two fathers and two sons sat down to eat eggs for breakfast. They ate exactly three eggs, each person had an egg. The riddle is for you to explain how

Answer

one of the 'fathers' is also a grandfather. Therefore the other father is both a son and a father to the grandson. In other words, the one father is both a son and a father.

Report Error

View answer Workspace Report Error Discuss

Subject: Math Puzzles

310 29464
Q:

National Rural Development Institute is situated at

 

A) Assam B) Patna
C) Shimla D) Hyderabad
 
Answer & Explanation Answer: D) Hyderabad

Explanation:

National Institute of Rural Development is situated in Hyderabad. It is an organization involved in rural research and training in rural development.

 

Report Error

View Answer Report Error Discuss

Filed Under: Indian Geography
Exam Prep: Bank Exams

1 29430
Q:

What is the structure of IF7 ?

A) Triagonal bipyramid B) Pentagonal bipyramid
C) Square pyramid D) tetrahedral
 
Answer & Explanation Answer: B) Pentagonal bipyramid

Explanation:

In IF7 out of 7 Flourine atoms 5 of them are placed on a plane in Pentagon shape .In remaining 2 flourines one is placed above the plane and other below the plane each at 90 degrees

Report Error

View Answer Report Error Discuss

Filed Under: Chemistry

197 29408
Q:

Leverage enables currency traders to do which of the following?

 

A) Reduce the risk of losing money   B) Force foreign governments to print more money
C) Make large currency trades using small amounts of money D)  Buy currencies before they are available to the public
 
Answer & Explanation Answer: C) Make large currency trades using small amounts of money

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Indian Economy
Exam Prep: Bank Exams

0 29401