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

In ancient Greek city states the central district would be built on a hilltop and it would contain the chief municipal and religious buildings . What was this place called?

Answer

Acropolis

Report Error

View answer Workspace Report Error Discuss

1 3308
Q:

The food and drug administration sets standards for

A) product labeling B) traffic safety
C) advertising D) the environment
 
Answer & Explanation Answer: A) product labeling

Explanation:

The FDA is responsible for protecting and promoting public health through the control and supervision of food safety, tobacco products, dietary supplements, prescription and over-the-counter pharmaceutical drugs (medications), vaccines, biopharmaceuticals, blood transfusions, medical devices, electromagnetic radiation emitting devices (ERED), cosmetics, animal foods & feed and veterinary products.

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

Amino acids can be distinguished from one another by

A) type of bond between the R group and the rest of the molecule B) the number of R groups found on the amino acid molecules
C) the chemical properties of their R groups D) the chemical properties of the amino and carboxyl groups
 
Answer & Explanation Answer: C) the chemical properties of their R groups

Explanation:

Amino acids are organic compounds containing amine (-NH2) and carboxyl (-COOH) functional groups, along with a side chain (R group) specific to each amino acid.

 

Depending on the nature of the side chain groups, three classes of aminoacids can e distinguished:

1. Amino acids with H ond donor and acceptor groups.

Histidine, lysine, aspartic acid, threonine,...

2. Amino acids with donor grups only.

Arginine, tryptophan and cysteine.

3. Amino acids with acceptor groups only.

Asparagine and glutamine.

Report Error

View Answer Report Error Discuss

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

1 3307
Q:

Consider the following statements relating to Coal India Limited:1. It is designated as a 'Maha Ratna'company under the Ministry of Coal.2. It is the single largest coal producing company in the world.3. The Headquarters of Coal India Limited is located at Ranchi Jharkhand.
Which of the statements given above is/are correct?

A) 1 only B) 1 and 2only
C) 2 and 3 only D) 1, 2 and 3
 
Answer & Explanation Answer: B) 1 and 2only

Explanation:

Headquarters Kolkata, West Bengal, IndiaCoal India Limited (CIL) is an Indian state-controlled coal mining company headquartered in Kolkata, West Bengal, India and the largest coal-producing company in the world and a Maharatna company.

Report Error

View Answer Report Error Discuss

Filed Under: Indian Geography
Exam Prep: Bank Exams

2 3307
Q:

Genes are situated on _________

A) Chromosome B) Mitochondria
C) Plastids D) Ribosomes
 
Answer & Explanation Answer: A) Chromosome

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Biology

7 3306