Questions

Q:

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

# include "stdio.h"

main()

{

     FILE *fp;

     char str[80];

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

     while (!feof (fp))

    {

           fgets (str, 80, fp);

           puts (str);

     }

     fclose (fp);

}

Answer

The last line from the file "trial" would be read twice. To avoid this, ues:


       While ( fgets (str, 80, fp) ! = NULL)


               puts (str);

Report Error

View answer Workspace Report Error Discuss

Subject: Programming

0 3229
Q:

Technically, tempera is paint in which the vehicle is in

A) an emulsion B) a pigment
C) an impasto D) a ground
 
Answer & Explanation Answer: A) an emulsion

Explanation:
Report Error

View Answer Report Error Discuss

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

0 3228
Q:

Foods that allow micro organisms to grow are called Parasites.

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

Explanation:

No, the given statement is False.


Parasites are organisms that feed on other organisms causing harm to them.


Foods that allow micro organisms to grow are called Growth Mediums.

Report Error

View Answer Workspace Report Error Discuss

Subject: Biology
Exam Prep: AIEEE , Bank Exams , CAT
Job Role: Analyst , Bank Clerk , Bank PO

5 3228
Q:

Clarence Pine Top Smith played what style of piano?

A) Mozart B) Boogie - Woogie
C) Beethoven D) Liszt
 
Answer & Explanation Answer: B) Boogie - Woogie

Explanation:

Pine Top Smith (1899-1929) Considered to be the originator of the Boogie -Woogie style of piano playing.

Report Error

View Answer Report Error Discuss

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

1 3227
Q:

Cretinism is due to the disorder of the glands

A) Thymus B) Parathyroid
C) Thyroid D) Adrenal
 
Answer & Explanation Answer: C) Thyroid

Explanation:

Cretinism is a disease caused by hypothyroidism(less thyroxine formation).The symptoms of the disease are retardation  of mental, physical and sexual developments. Potbellt, protruding tongue, dry skin etc are also indicative of this disease.

Report Error

View Answer Report Error Discuss

Filed Under: Biology

7 3226
Q:

______ is a particular area from which all the voters living there choose their representatives.

A) Constituency B) Voting Area
C) Election Area D) Legislative Area
 
Answer & Explanation Answer: A) Constituency

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Indian Politics
Exam Prep: Bank Exams

6 3225
Q:

Where does protein synthesis take place in a cell?

A) Ribosomes B) Mitochondria
C) Cytoplasm D) Nucleus
 
Answer & Explanation Answer: A) Ribosomes

Explanation:

The protein synthesis take place in a cell outside the nucleus in the structures called ribosomes. Ribosomes link amino acids together in the order specified by messenger RNA molecules.

Where_does_protein_synthesis_take_place_in_a_cell1563603813.png image

Report Error

View Answer Report Error Discuss

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

8 3223
Q:

The dwarf camels, known as Alpacas , Vicunas and llamas are found in 

A) Tibet B) Afghanistan
C) Burma D) Cyprus
 
Answer & Explanation Answer: A) Tibet

Explanation:

The llama, its wild cousin , the Vicuna and hump-less Alpaca are also found in the high pasture lands of the Andes region of Bolivia and peru, where they are useful as beasts of burden and for the production of fleece and meat.

Report Error

View Answer Report Error Discuss

Filed Under: World Geography

1 3223