Questions

Q:

Point out the error, if any, in the following program.

main()

{

    int ( *p )() = fun;

    ( *P ) ();

}

fun ()

{

    Printf ( "\nLoud and clear" );

Answer

Here we are initalising the function pointer p to the address of the function fun(). But during this initialisation the function has not been defined. Hence an error.


To eliminate this error add the prototype of the fun() before declaration of p, as shown below:


extern int fun();    or simply  int fun();

Report Error

View answer Workspace Report Error Discuss

Subject: Programming

0 2285
Q:

In the following question, a sentence has been given in Direct/Indirect speech. Out of the four alternatives suggested, select the one which best expresses the same sentence in Indirect/Direct speech.

 

The host asked, "Did you come by train?"

A) The host asked whether I have come by train. B) The host asked whether I had come by train.
C) The host asked in case I have come on train. D) The host asked in case I have come by train.
 
Answer & Explanation Answer: B) The host asked whether I had come by train.

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: English
Exam Prep: Bank Exams

0 2285
Q:

Read the passage carefully and choose the best answer to each question out of the four alternatives and click the button corresponding to it.


Crude mineral oil comes out of the earth as a thick brown or black liquid with a strong smell. It is a complex mixture of many different substances, each with its own individual qualities. Most of them are combinations of hydrogen and carbon in varying proportions. Such hydrocarbons are also found in other forms such as bitumen, asphalt and natural gas. Mineral oil originates from the carcasses of tiny animals and from plants that live in the sea. Over million of years, these dead creatures form large deposits under sea­bed and ocean currents cover them with a blanket of sand and silt. As this material hardens, it becomes sedimentary rock and effectively shuts out the oxygen, thus preventing the complete decomposition of the marine deposits underneath. The layers of sedimentary rocks become thicker, and heavier. Their pressure produces heat, which transforms the tiny carcasses into crude oil in a process that is still going on today.


Sedimentary rocks leads to the formation of oil deposits because

A) their pressure produces heat and turns deposits of animal carcasses and plants into oil. B) it turns heavy and shuts out the oxygen
C) it becomes hard and forms into rocks to squeeze oil D) it becomes light and soft and applies pressure to produce oil
 
Answer & Explanation Answer: A) their pressure produces heat and turns deposits of animal carcasses and plants into oil.

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: English
Exam Prep: Bank Exams

0 2285
Q:

Read the passage carefully and choose the best answer to each question out of the four alternatives and click the button corresponding to it.


Without breakfast, all of us ­ irrespective of age ­ are likely to experience the late morning slump; tiredness, sleepiness and the urge to sit back. Our efficiency goes down further as the day progresses.Moreover, skipping the first meal of the day leads to intense hunger pangs by late morning and we end up eating chips, samosas, burgers or other high­ fat unhealthy foods. Break fast­skippers are more likely to be overweight. A good breakfast leads to a more active, productive day. Research has found a definite connection between skipping breakfast and memory impairment in both young and older adults. Moreover, breakfast is directly linked with performance in school and college. Breakfast should contribute at least one ­fourth of our daily requirement of nutrients. An ideal breakfast should contain adequate amounts of carbohydrates, proteins and fats in addition to minerals and vitamins. Essentially this means including most of our food groups in the morning meal. Whole grain cereals ­ like atta in parathas and puris, dalia, suji, etc. are an integral part of the traditional Indian breakfast. Their high fibre and protein content provides a feeling of satisfaction, which lowers the urge to snack before lunch. On the other hand, high­ sugar foods actually make people sleepier, not active.

Milk, cheese, eggs or dals (as sprouts in idli or dosas or as sambhar) are other protein sources. A serving of milk (one cup) provides B­ complex vitamins and also minerals like zinc, magnesium and calcium. Fruits or vegetables provide valuable vitamin C and keep constipation away.

 

We eat unhealthy food when

A) we suffer from hunger B) we have become overweight
C) we have skipped the first meal D) we love chips, burgers etc.
 
Answer & Explanation Answer: C) we have skipped the first meal

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: English
Exam Prep: Bank Exams

0 2285
Q:

If a person moves a trolley for a distance of 10 m with a force of 50 N, then the work done is

A) 0.2 J B) 5 J
C) 20 J D) 500 J
 
Answer & Explanation Answer: D) 500 J

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Physics
Exam Prep: Bank Exams

3 2285
Q:

Who making the anthem for upcoming Hockey World Cup 2018's prime video?

A) A. R. Rahman B) Pritam Chakraborty
C) Anu Malik D) Bappi Lahiri
 
Answer & Explanation Answer: A) A. R. Rahman

Explanation:

A.R. Rahman making the anthem for upcoming Hockey World Cup 2018's prime video.

Report Error

View Answer Report Error Discuss

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

1 2285
Q:

An ideal gas cannot be

A) liquified B) solidified
C) Both A & B D) None of the above
 
Answer & Explanation Answer: A) liquified

Explanation:

An ideal gas cannot be liquified because forces between the molecules are negligible.

Report Error

View Answer Report Error Discuss

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

2 2285
Q:

Blood plasma is filtered in 

A) the renal capsule B) the renal column
C) the renal tubule D) the renal corpuscle
 
Answer & Explanation Answer: A) the renal capsule

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Biology
Exam Prep: AIEEE , Bank Exams
Job Role: Analyst , Bank Clerk , Bank PO

1 2285