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

" One Earth ” is the name of the corporate headquarters of which firm ?

A) Tata Consultancy Services B) Suzlon Energy
C) Power grid Corporation of India Ltd D) Wipro
 
Answer & Explanation Answer: B) Suzlon Energy

Explanation:

Suzlon energy has its corporate headquarter in Pune, Maharashtra with the name of “One Earth”. Spread over 10 acres of land, the structure is completely powered by renewable energy. One Earth has been certified as the LEED (Leadership in Energy and Environment Design) Platinum building. Suzlon is largest wind turbine manufacturer in India and third largest in world.

Report Error

View Answer Report Error Discuss

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

2 3138
Q:

A man stands on the pan of a balance holding a fish in his right hand and bucket of water in his left hand. If he transfers the fish into the bucket, the total weight on the pan

A) increases B) decreases
C) remains the same D) first increases and then decreases
 
Answer & Explanation Answer: C) remains the same

Explanation:

Before transferring the fish, the position is the man with the fish and the bucket of water. After transferring the position is : the man without the fish, but the fish inside the water in the bucket. Thus to know whether there is any change in weight, it is enough to consider whether there is any change in weight when the fish in air is transferred into the water. The answer is there is no change as when in water though it loses weight due to upthrust of water on it, the level of water increases and exerts an equal force at the bottom

Report Error

View Answer Report Error Discuss

Filed Under: Physics

5 3138
Q:

Voice in literary nonfiction refers to

A) description that appeals to the five senses B) the overall presence of a personality behind the text
C) the attitude that the author or narrator has toward the subject or reader D) nonfiction that uses elements and devices common in fictional stories
 
Answer & Explanation Answer: A) description that appeals to the five senses

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: English
Exam Prep: AIEEE , Bank Exams , CAT , GRE , TOEFL
Job Role: Analyst , Bank Clerk , Bank PO

3 3137
Q:

The technique of DNA fingerprinting in human was developed for first time by _________

A) Lalji Singh B) Alec Jeffreys
C) R. Ericson D) J. Black
 
Answer & Explanation Answer: B) Alec Jeffreys

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Biology

6 3136
Q:

The functional unit of the nervous system is the

A) Nephrons B) Axons
C) Neurons D) All of the above
 
Answer & Explanation Answer: C) Neurons

Explanation:

Neurons are the functional units of the nervous system in the body.

the_functional_unit_of_the_nervous_system_is_the1535026518.png image

Report Error

View Answer Report Error Discuss

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

3 3136
Q:

Makaibari is the costliest variety of what?

A) Coffee B) Pepper
C) Tea D) Water
 
Answer & Explanation Answer: C) Tea

Explanation:

Makaibari is the world's first tea factory and was established in 1859 in Darjeeling, West Bengal. 

 

It is most expensive tea in India which costs around 1.12 lakhs for 1 kg of tea.

 

Hence, Makaibari is the costliest variety of Tea.

Report Error

View Answer Report Error Discuss

6 3136
Q:

A remedy for all diseases

A) Antiseptic B) Lyric
C) Narcotics D) Panacea
 
Answer & Explanation Answer: D) Panacea

Explanation:

Panacea, also known as panchrest, is a medicine supposed remedy that is claimed to cure all diseases and prolong life indefinitely. It is named after the Greek goddess of universal remedy Panakeia.

Report Error

View Answer Report Error Discuss

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

2 3135