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

The continents of Africa and Europe, at their closest point are seperated from each other by the strait of 

A) Messina B) Bonifacio
C) Gibraltar D) Otranto
 
Answer & Explanation Answer: C) Gibraltar

Explanation:

Strait of Messina seperates Italy and Sicily , while Strait of Bonifacio is located between Corsica  and Sardinia and Strait of Otranto  is found between Italy and Albania.

Report Error

View Answer Report Error Discuss

Filed Under: World Geography

2 2220
Q:

What does the EU do?

Answer

Execution Unit receives program instruction codes and data from BIU, executes these instructions and store the result in general registers.

Report Error

View answer Workspace Report Error Discuss

Subject: Hardware

0 2220
Q:

What is program counter in 8085?

Answer

Program counter holds the address of either the first byte of the next instruction to be fetched for exectuion or the address of the next byte of a multi byte instruction, which has not beeb completely fetched. in both the cases it gets increnented automatically one by one as the instruction bytes get fetched. Also Program register keeps the address of the next instruction.

Report Error

View answer Workspace Report Error Discuss

Subject: Hardware

0 2220
Q:

Who among the following is the first woman lawyer to be directly appointed as a judge of the Supreme Court?

A) Vrinda Grover B) Menaka Guniswamy
C) Meenakshi Arora D) Indu Malhotra
 
Answer & Explanation Answer: D) Indu Malhotra

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: General Awareness
Exam Prep: Bank Exams , CAT

0 2220
Q:

Related to computers, what is 'Wetware' ?

A) Computer programs B) Circuitory
C) Human brain D) Chemical storage devices
 
Answer & Explanation Answer: C) Human brain

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Computer

3 2220
Q:

Which vehicle was used for ISRO's successfully launch of 104 satellites?

A) PSLV - C37 B) PSLV - C36
C) PSLV - C39 D) PSLV - C38
 
Answer & Explanation Answer: A) PSLV - C37

Explanation:

PSLV - C37 vehicle was used for ISRO's successfully launch of 104 satellites.

Report Error

View Answer Report Error Discuss

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

3 2219
Q:

If velocity is constant then acceleration is what?

A) constant B) increasing
C) 0 D) infinite
 
Answer & Explanation Answer: C) 0

Explanation:

If an object moves with some velocity that means the magnitude and direction of the object changes i.e, the object moves with some acceleration. Hence, if the object moves with constant velocity, no change in direction and magnitude of speed i.e, no acceleration = 0 acceleration.

Report Error

View Answer Report Error Discuss

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

6 2219