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:

Which shows a correctly paired DNA molecule?

A) AT B) TC
C) AC D) TG
 
Answer & Explanation Answer: A) AT

Explanation:

The nucleotides that are present in DNA molecule are 4. They are Thymine (T), Guanine (G), Adenine (A) and Cytosine (C).

 

Here in this Adenine pairs with Thymine (A - T) and Cytosine pairs with Guanine (C - G).

Report Error

View Answer Report Error Discuss

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

2 3314
Q:

Which of the following statements about GDP is correct?

A) Nominal GDP values production at constant prices, whereas real GDP values production at current prices. B) Nominal GDP values production at market prices, whereas real GDP values production at the cost of the resources used in the production process.
C) Nominal GDP consistently underestimates the value of production, whereas real GDP consistently overestimates the value of production. D) Nominal GDP values production at current prices, whereas real GDP values production at constant prices.
 
Answer & Explanation Answer: D) Nominal GDP values production at current prices, whereas real GDP values production at constant prices.

Explanation:
Report Error

View Answer Report Error Discuss

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

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

When data in a spreadsheet program is changed what occurs?

A) All calculations are recalculated B) Once entered, the data cannot be changed
C) Nothing D) None of the above
 
Answer & Explanation Answer: A) All calculations are recalculated

Explanation:

In a spreadsheet program, when a data is changed all calculations are recalculated.

Report Error

View Answer Report Error Discuss

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

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

Per Captain Income of a country derived from

A) National Income B) Population
C) National Income and Population both D) none of these
 
Answer & Explanation Answer: C) National Income and Population both

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Indian Economy

1 3311