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

World’s longest 3D printed concrete bridge opened in?

A) China B) Japan
C) Dubai D) India
 
Answer & Explanation Answer: A) China

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Longest, Shortest, Deepest
Exam Prep: AIEEE , Bank Exams , CAT
Job Role: Analyst , Bank Clerk , Bank PO

3 3186
Q:

Who invented the battery?

A) John Wilkinson B) Alessandro Volta
C) James Hargreaves D) Thomas Edison
 
Answer & Explanation Answer: B) Alessandro Volta

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Inventions

0 3186
Q:

Yoga city in India?

A) Varanasi B) Allahabad
C) Rishikesh D) Amritsar
 
Answer & Explanation Answer: C) Rishikesh

Explanation:

Rishikesh is a city in India’s northern state of Uttarakhand. As the city is renowned as a center for studying yoga and meditation it is called as Yoga city in India.

 

Yoga_city_in_india_-_Rishikesh1561462362.jpg image

Report Error

View Answer Report Error Discuss

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

16 3186
Q:

Is vitamin B12 fat soluble?

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

Explanation:

Vitamin B12 is the only water-soluble vitamin that can be stored in the liver for many years. There are 9 water soluble vitamins.

Report Error

View Answer Workspace Report Error Discuss

Subject: General Science
Exam Prep: AIEEE , Bank Exams
Job Role: Analyst , Bank Clerk , Bank PO

1 3186
Q:

One of the main issues discussed in the 40th Ministrial Meeting of the ASEAN held in August, 2007 was 

A) America's overstay in Iraq B) Presidential Election in Pakistan
C) Draft blueprint of the ASEAN Charter D) The 123 Agreement between India and USA
 
Answer & Explanation Answer: C) Draft blueprint of the ASEAN Charter

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: General Awareness
Exam Prep: Bank Exams
Job Role: Bank PO

1 3186
Q:

Which of the following carbohydrates is a polysaccharide?

A) Fructose B) Cellulose
C) Glucose D) Sucrose
 
Answer & Explanation Answer: B) Cellulose

Explanation:

Carbohydrates are also called as saccharides are molecular compounds made from just three elements:

carbon, hydrogen and oxygen.

 

Carbohydrates are:

* a source of energy for the body e.g. glucose and a store of energy, e.g. starch in plants

* building blocks for polysaccharides (giant carbohydrates), e.g. cellulose in plants and glycogen in the human body

* components of other molecules eg DNA, RNA, glycolipids, glycoproteins, ATP

 

Types:

1. Monosaccharides (e.g. glucose) and

2. Disaccharides (e.g. sucrose) are relatively small molecules. They are often called sugars.

3. Other carbohydrate molecules are very large called Polysaccharides such as starch and cellulose.

Report Error

View Answer Report Error Discuss

Filed Under: Chemistry
Exam Prep: AIEEE , Bank Exams , GATE
Job Role: Analyst , Bank Clerk , Bank PO , IT Trainer

3 3185
Q:

Who wrote the line: ' A thing of beauty is a joy for ever '

A) P.B.Shelley B) William Wordsworth
C) John Keats D) Robert Browning
 
Answer & Explanation Answer: C) John Keats

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Books and Authors

1 3185