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

Gases in the atmosphere and their percentages?

Answer

The air around us is a mixture of gases, mainly nitrogen and oxygen, but containing much smaller amounts of water and other gases.


Earth's atmosphere is composed of many gases. Their percentages by volume is given by::


 
78% Nitrogen,


21% Oxygen,


0.9% Argon, and


0.03% Carbon dioxide 


And very small percentages of other elements.


 

Report Error

View answer Workspace Report Error Discuss

Subject: General Science Exam Prep: AIEEE , Bank Exams , GATE
Job Role: Analyst , Bank Clerk , Bank PO

1 2223
Q:

A passage is given with 5 questions following it. Read the passage carefully and choose the best answer to each question out of the four alternatives.

Due to poor rainfall over the past few months, the vadu mangai season is expected to be short this year. There are two distinct varieties available in the vicinity of Coimbatore. The closest to Coimbatore, and the one that appears in the markets first, is the Thadagam variety. The second and more popular variety is the one from the Thirumoorthy Hills, near Udumalpet. Representatives from commercial pickle brands whisk these mangais away in big lots directly from the wholesalers. Only a small portion of the year's harvest trickles down to the local markets. Small vendors bring sacks full of these tiny tender mangoes to one particular street corner in Ram Nagar during the season. The corner of Rajaji Road and Sathyamurthy Road plays host to these vendors from as early as 7.00 am every day. Depending on the quantity they have, the mangais are available until around 11.00 am. If the vendors have a good day and their produce is sold quickly, they pack up and leave even as early as 9.00 am.

What do you think 'Thadagam' is from the passage?

A) A Festival celebrated in Coimbatore. B) A variety of vadu mangai mangoes.
C) A word for 'monsoon' in the local language. D) A variety of mango pickle.
 
Answer & Explanation Answer: B) A variety of vadu mangai mangoes.

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: English
Exam Prep: Bank Exams

0 2223
Q:

Read the passage carefully and select the best answer to each question out of the given four alternatives.


The Amazon basin has been continuously inhabited for at least 10, 000 years, possibly more. Its earliest inhabitants were stone-age peoples, living in hundreds of far-flung tribes, some tiny, others numbering in the tens of thousands. It was from the west that Europeans explorers first arrived. In 1541 a Spanish expedition from Quito, led by Gonzalo Pizarro, ran short of supplies while exploring east of the Andes in what is today Peru. Pizarro’s cousin Francisco de Orellana offered to take 60 men along with the boats from the expedition and forage for supplies. De Orellana floated down the Rio Napo to its confluence with the Amazon, near Iquitos (Peru), and then to the mouth of the Amazon. Along the way his expedition suffered numerous attacks by Indians; some of the Indian warriors, they reported, were female, like the Amazons of Greek mythology, and thus the world’s greatest river got its name. No one made a serious effort to claim this sweaty territory, however, until the Portuguese built a fort near the mouth of the river at Belém in 1616, and sent Pedro Teixeira up the river to Quito and back between 1637 and 1639. During the 17th and 18th centuries, Portuguese bandeirantes (groups of roaming adventurers) penetrated ever further into the rain forest in pursuit of gold and Indian slaves, exploring as far as present-day Rondônia, and the Guaporé and Madeira river valleys. Amazonian Indians had long used the sap from rubber trees to make waterproof bags and other items. European explorers recognized the potential value of natural latex, but were unable to market it because it tended to grow soft in the heat, or brittle in the cold, and thus had limited appeal outside the rain forest. However, in 1842 American Charles Goodyear developed vulcanization (made natural rubber durable) and in 1890 Ireland’s John Dunlop patented pneumatic rubber tires. Soon there was an unquenchable demand for rubber in the recently industrialized USA and Europe, and the price of rubber on international markets soared. As profits skyrocketed, so did exploitation of the seringueiros, or rubber tappers, who were lured into the Amazon, mostly from the drought-stricken northeast, by the promise of prosperity only to be locked into a cruel system of virtual slavery dominated by seringalistas (owners of rubber-bearing forests). Rigged scales, hired guns, widespread illiteracy among the rubber tappers, and monopoly of sales and purchases all combined to perpetuate the workers’ debt and misery. In addition, seringueiros had to contend with jungle fevers, Indian attacks and all manner of deprivation.


In which year did the fort was built by Portuguese near the river Belem?

A) 1541 B) 1637
C) 1616 D) 1639
 
Answer & Explanation Answer: C) 1616

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: English
Exam Prep: Bank Exams

0 2222
Q:

Mortar is a mixture of

A) cement B) water
C) sand D) All of the above
 
Answer & Explanation Answer: D) All of the above

Explanation:

Mortar is a mixture of cement or lime as a binder, sand and water.

Report Error

View Answer Report Error Discuss

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

2 2222
Q:

Laterite soils contain high amounts of

A) Calcium carbonate B) Silicates
C) Calcites D) Iron oxide
 
Answer & Explanation Answer: D) Iron oxide

Explanation:

Laterite soils are a tropical soil and possess a great amount of iron and aluminum. Due to its high iron oxide content they look like rusty-red coloration.

Report Error

View Answer Report Error Discuss

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

5 2222
Q:

After removing two electrons from helium atom it become?

A) UV rays B) Alpha particle
C) Gama particle D) X rays
 
Answer & Explanation Answer: B) Alpha particle

Explanation:
Report Error

View Answer Report Error Discuss

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

1 2222
Q:

ISRO has unveiled a Human Space Flight Centre at?

A) Bengaluru B) Hyderabad
C) Kolkata D) Pune
 
Answer & Explanation Answer: A) Bengaluru

Explanation:
Report Error

View Answer Report Error Discuss

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

0 2222