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

Cholesterol belongs to which class of molecules?

A) Lipids B) Carbohydrates
C) Nucleic acids D) Proteins
 
Answer & Explanation Answer: A) Lipids

Explanation:

Cholesterol belongs to lipids class of molecules. Lipids are sometimes called as fats which act as storing energy and structural components of cell membranes.

Report Error

View Answer Report Error Discuss

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

5 3159
Q:

What is the highest number of satellites that have been launched by the ISRO in 2017 on a single rocket ?

A) 22 B) 37
C) 83 D) 104
 
Answer & Explanation Answer: D) 104

Explanation:

India’s space agency on Feb 15th, 2017 launched a record 104 satellites from a single rocket as it crossed another milestone in its low-cost space-exploration program. The satellites from seven countries were carried by the Indian Space Research Organization’s Polar Satellite Launch Vehicle on its 38th consecutive successful flight. On board was a 714kg satellite for earth observation and more than 100 smaller satellites weighing less than 10kg each. Three were Indian-owned, 96 were from US companies, and the rest belonged to companies based in Israel, Kazakhstan, the Netherlands, Switzerland and the United Arab Emirates. Most were owned by Planet Labs Inc, a US-based Earth-imaging company. 

Report Error

View Answer Report Error Discuss

Filed Under: General Awareness
Exam Prep: Bank Exams , CAT , GATE , GRE
Job Role: Bank Clerk , Bank PO

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

Who has been elected as the first woman chairman of Indian Bank's Association (IBA)?

A) Usha Ananthasubramanian B) Shikha Sharma
C) Kaku Nakhate D) Chanda Kochhar
 
Answer & Explanation Answer: A) Usha Ananthasubramanian

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: General Awareness
Exam Prep: Bank Exams , CAT
Job Role: Analyst , Bank Clerk , Bank PO

6 3157
Q:

Which property classification would include tools?

Report Error

View answer Workspace Report Error Discuss

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

2 3157
Q:

Who has won the Hero Indian Golf Open 2017 ?

A) Gavin Green B) S.S.P. Chawrasia
C) Anirban Lahiri D) Scott Jamieson
 
Answer & Explanation Answer: B) S.S.P. Chawrasia

Explanation:

Chawrasia, became the first Indian to successfully defend a European Tour title and the first player to win their first four events in their home country.

Report Error

View Answer Report Error Discuss

Filed Under: Sports
Exam Prep: Bank Exams , CAT
Job Role: Bank PO

8 3156
Q:

"Go Back to Vedas" Who gave this motto?

A) Swami Dayananda Saraswati B) Ramkrishna Paramahamsa
C) Swami Vivekananda D) None of the above
 
Answer & Explanation Answer: A) Swami Dayananda Saraswati

Explanation:

The founder of Arya Samaj, Swami Dayananda Saraswati gave the motto "Go Back to Vedas" to propagate the true knowledge of Vedas.

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 3156