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

India has donated what amount for a peacekeeping initiative at the UN?

A) $ 3 lakh B) $ 5 lakh
C) $ 10 lakh D) $ 1 lakh
 
Answer & Explanation Answer: A) $ 3 lakh

Explanation:

India has donated $ 3 lakh for a peacekeeping initiative at the United Nations pipeline for peacekeeping initiative at the UN.

Report Error

View Answer Report Error Discuss

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

2 2205
Q:

A supply curve slopes upward because

A) an increase in price gives producers an incentive to supply a larger quantity. B) the quantity supplied of most goods and services increases over time.
C) an increase in input prices increases supply. D) as more is produced, total cost of production falls.
 
Answer & Explanation Answer: A) an increase in price gives producers an incentive to supply a larger quantity.

Explanation:

The supply curve slopes upward because for reflecting the higher price needed to cover the higher marginal cost of production. 

Report Error

View Answer Report Error Discuss

Filed Under: Marketing and Sales
Exam Prep: AIEEE , Bank Exams , CAT
Job Role: Analyst , Bank Clerk , Bank PO

0 2205
Q:

Which one of the following places did Mahatma Gandhi first start his Satyagraha in India?

A) Bardoli B) Ahmedabad
C) Kheda D) Champaran
 
Answer & Explanation Answer: D) Champaran

Explanation:

Mahatma Gandhi first start his Satyagraha from Champaran in India.

Report Error

View Answer Report Error Discuss

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

3 2204
Q:

The former cricketer/cricketers who was/were inducted into the ICC Cricket Hall of Fame 2018 in Dublin, Ireland

A) Claire Taylor B) Ricky Ponting
C) Rahul Dravid D) All of the above
 
Answer & Explanation Answer: D) All of the above

Explanation:

Former captains Rahul Dravid of India, Ricky Ponting of Australia and retired England Women wicketkeeper-batter Claire Taylor were inducted into the ICC Cricket Hall of Fame 2018 during a glittering ceremony in Dublin, Ireland.

 

Former Team India captain Rahul Dravid has become the fifth Indian cricketer after Anil Kumble, Sunil Gavaskar, Bishan Singh Bedi and Kapil Dev to be inducted into the ICC Hall of Fame.

Report Error

View Answer Report Error Discuss

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

5 2204
Q:

In Frankenstein, Victor changes from an optimistic, eager young man to one who is anxious and

A) Remorseful B) Confident
C) Honest D) Coward
 
Answer & Explanation Answer: A) Remorseful

Explanation:

Frankenstein is an English Novel by Mary Shelley. In Frankenstein, Victor is a character who changes from an optimistic, eager young man to one who is anxious and Remorseful.

Report Error

View Answer Report Error Discuss

Filed Under: Books and Authors
Exam Prep: AIEEE , Bank Exams , CAT
Job Role: Analyst , Bank Clerk , Bank PO

2 2204
Q:

Which country’s President has been elected as the chairman of the African Union (AU)?

A) Egypt B) Ethiopia
C) South Africa D) Israel
 
Answer & Explanation Answer: A) Egypt

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

Process of gaining electrons is known as _____.

A) oxidation B) reduction
C) radiation D) both oxidation and reduction
 
Answer & Explanation Answer: B) reduction

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Chemistry
Exam Prep: Bank Exams

0 2204