Questions

Q:

Point out the error, if any, in the following program.

#include "stdio.h"

main()

{

      unsigned char;

       FILE *fp;

       fp = fopen ("trail", "r");

       while (( ch = getc (fp)) ! = EOF)

               printf ("%c", ch);

       fclose (fp);

}  

Answer

EOF has been defined as #define EOF -1 n the file "stdio.h" and an unsigned char ranges from 0 to 255 hence when EOF is read from the file it cannot be accommodated in ch. Solution is to declare ch as an int.

Report Error

View answer Workspace Report Error Discuss

Subject: Programming

1 3315
Q:

Is MS Word an operating system?

A) TRUE B) FALSE
Answer & Explanation Answer: B) FALSE

Explanation:

False. MS-Word is not an Operating system.


 


Microsoft Word or MS-Word is an Application software developed by the company Microsoft. It allows users to Type and Save documents.

Report Error

View Answer Workspace Report Error Discuss

2 3315
Q:

Second and third class levers are differentiated by

A) the location of the load B) the location of the fulcrum
C) the presence of multiple loads D) the type of fulcrum present
 
Answer & Explanation Answer: A) the location of the load

Explanation:
Report Error

View Answer Report Error Discuss

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

3 3315
Q:

 Who amongst the following received last telegram in India ?

A) Manmohan Singh B) Pranab Mukherjee
C) Rahul Gandhi D) Sonia Gandhi
 
Answer & Explanation Answer: C) Rahul Gandhi

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: General Awareness

2 3314
Q:

What is the currency of Mexico ?

A) Krones B) Lira
C) Peso D) Mexican dollars
 
Answer & Explanation Answer: C) Peso

Explanation:
Report Error

View Answer Report Error Discuss

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

9 3313
Q:

Who did the historian K M Pannikar call "India's new Manu, the spirit of modern law incarnate"?

Answer

Thomas Babington Macaulay

Report Error

View answer Workspace Report Error Discuss

Subject: World History

7 3312
Q:

Explain the concept of Reentrancy?

Answer

It is a useful, memory-saving technique for multiprogrammed timesharing systems. A Reentrant Procedure is one in which multiple users can share a single copy of a program during the same period. Reentrancy has 2 key aspects: The program code cannot modify itself, and the local data for each user process must be stored separately. Thus, the permanent part is the code, and the temporary part is the pointer back to the calling program and local variables used by that program. Each execution instance is called activation. It executes the code in the permanent part, but has its own copy of local variables/parameters. The temporary part associated with each activation is the activation record. Generally, the activation record is kept on the stack.


Note: A reentrant procedure can be interrupted and called by an interrupting program, and still execute correctly on returning to the procedure.

Report Error

View answer Workspace Report Error Discuss

0 3312
Q:

A Transparent DBMS

A) Keep its logical structure hidden from users B) Can access control
C) Keeps its physical structure hidden from users D) Can not hide sensitive information from users
 
Answer & Explanation Answer: C) Keeps its physical structure hidden from users

Explanation:

DBMS :: Database Managemet System.

A DBMS which keeps its physical structure hidden from the user is known as a transparent DBMS.

Report Error

View Answer Report Error Discuss

2 3312