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

The system board is also known as the

A) Mother board B) Main circuit board
C) Baseboard D) All of the above
 
Answer & Explanation Answer: D) All of the above

Explanation:

The system board is also known as the Mother board, Main circuit board, Baseboard or logic board.

Report Error

View Answer Report Error Discuss

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

4 2292
Q:

Which of the following describes computer animation?

A) a sequential art, which emerged in the late nineteenth century to attract more readers to newspapers B) the art of using 2-D and 3-D computer graphics to create moving images and special effects in films
C) a sister art of video games, which involves interaction with a user interface to generate visual feedback D) None of the above
 
Answer & Explanation Answer: B) the art of using 2-D and 3-D computer graphics to create moving images and special effects in films

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Computer
Exam Prep: Bank Exams

1 2292
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 2292
Q:

AV= constant, where A= area of cross-section and V= velocity of fluid. This equation is called _____.

A) Equation of discontinuity B) Equation of continuity
C) Equation of sustenance D) Equation of parallelism
 
Answer & Explanation Answer: B) Equation of continuity

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Physics
Exam Prep: Bank Exams

1 2291
Q:

The study of brain is called

A) Neurology B) Nephrology
C) Phrenology D) Pathology
 
Answer & Explanation Answer: C) Phrenology

Explanation:

The study of brain is called Phrenology.

Report Error

View Answer Report Error Discuss

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

1 2291
Q:

In the following question, out of the four alternatives, select the word opposite in meaning to the word given.
Vexatious

A) Calamitous B) Treachery
C) Soothing D) Pliable
 
Answer & Explanation Answer: C) Soothing

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: English
Exam Prep: Bank Exams

0 2291