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

Bright light is found to emit from photographer’s flashgun. This brightness is due to the presence of which one of the following noble gases?

A) Argon B) Xenon
C) Neon D) Helium
 
Answer & Explanation Answer: B) Xenon

Explanation:

Electronic Flash differs from the consumable bulb flash in important aspects. Instead of creating light by burning up in an atmosphere containing oxygen, a consumable material (each bulb being used therefore only once), it produces a brilliant incandescent by discharging a current for a brief instant through a rarified gas, usually xenon. The gas glows every time the discharge is made through it but it is not consumed, so that many thousands of flashes are obtainable from a single tube, which helps to offset the much higher cost of the initial apparatus.

Report Error

View Answer Report Error Discuss

Filed Under: General Science
Exam Prep: Bank Exams

2 2156
Q:

What separates Europe from Asia?

A) Caspian mountains B) Ural mountains
C) Himalayan mountains D) Carpathian mountains
 
Answer & Explanation Answer: B) Ural mountains

Explanation:

what_separates_europe_from_asia1555495995.jpg image

Europe from Asia are separated by Ural mountains.

Report Error

View Answer Report Error Discuss

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

2 2155
Q:

4 years ago, the respective ratio between 1/2 of A’s age at that time and four times of B’s age at that time was 5 : 12. Eight years hence 1/2 of A’s age at that time will be less than B’s age at that time by 2 years. What is B’s present age ?

A) 10 years B) 12 years
C) 14 years D) 8 years
 
Answer & Explanation Answer: A) 10 years

Explanation:
Report Error

View Answer Report Error Discuss

3 2154
Q:

Which statement best defines a communist government?

A) A communist government is an autocracy. B) A communist government is led by one political party.
C) A communist government gives power to the party leader. D) A communist government allows for limited voting.
 
Answer & Explanation Answer: B) A communist government is led by one political party.

Explanation:

The statement "A communist government is led by one political party" is what best defiines a communist government. Here in this type of government, the power is in the hands of the one political party and it only controls the political and economic systems of the country/state.

Report Error

View Answer Report Error Discuss

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

4 2154
Q:

All phosphorus atoms have the same

A) Mass number B) Number of neutrons plus the number of electrons
C) Atomic number D) Number of neutrons plus the number of protons
 
Answer & Explanation Answer: C) Atomic number

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Chemistry
Exam Prep: Bank Exams

3 2154
Q:

Chang Lo is a folk dance of _______.

A) Arunachal Pradesh B) Punjab
C) Assam D) Nagaland
 
Answer & Explanation Answer: D) Nagaland

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Indian Geography
Exam Prep: AIEEE , Bank Exams , CAT

2 2154
Q:

Which of the following country is known as Kalaallit Nunaat, meaning "Land of the people"?

A) Estonia B) Iceland
C) Panama D) Greenland
 
Answer & Explanation Answer: D) Greenland

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 2153