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

Which of the following is not an aerobic outdoor sport?

A) Hiking B) Swimming
C) Skydiving D) Cycling
 
Answer & Explanation Answer: C) Skydiving

Explanation:

Except skydiving all other given options swimming, hiking and cycling are aerobic outdoor sports.

Report Error

View Answer Report Error Discuss

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

3 3197
Q:

Name the mountain that seperates France and Spain

A) Alps B) Pyrenees
C) Jura D) Vosges
 
Answer & Explanation Answer: B) Pyrenees

Explanation:

Pyrenees, a chief mountain in Europe, forms a part of the great mountain across Europe and Asia.

Report Error

View Answer Report Error Discuss

Filed Under: World Geography

0 3197
Q:

Which Greek statesman is called 'the father of democracy'?

Answer

Pericles

Report Error

View answer Workspace Report Error Discuss

0 3196
Q:

War is peace; Freedom is slavery; Ignorance is strength; meaning

Answer

In the novel entitled 1984 by George Orwell's, "War is Peace; Freedom is Slavery; Ignorance is Strength;" is one of the three slogans of the entity known only as “The Party,” English Socialist Party ("INGSOC" for short) of Oceania.


 


It means "describes the act of simultaneously accepting two mutually contradictory beliefs as correct, often in distinct social contexts."

Report Error

View answer Workspace Report Error Discuss

Subject: English Exam Prep: Bank Exams , GRE , TOEFL
Job Role: Analyst , Bank Clerk , Bank PO

2 3196
Q:

In ovaries, the final products of meiosis are

A) haploid gametes B) diploid gametes
C) Both A & B D) None of the above
 
Answer & Explanation Answer: A) haploid gametes

Explanation:
Report Error

View Answer Report Error Discuss

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

3 3195
Q:

Air temperatures are effected by slope and orientation as slopes facing into the Sun will be 

A) Warmer than those facing away B) Colder than those facing away
C) Neither warmer nor colder than those facing away D) None of these
 
Answer & Explanation Answer: A) Warmer than those facing away

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: World Geography

3 3195
Q:

The Savannas of Orinoco Basin are termed as 

A) pampas B) steppes
C) prairies D) llanos
 
Answer & Explanation Answer: D) llanos

Explanation:

llanos is a tropical grassland while the remaining three are temperature grasslands

Report Error

View Answer Report Error Discuss

Filed Under: World Geography

1 3194