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

Kargil Fight held in

A) 1979 B) 1989
C) 1999 D) 1969
 
Answer & Explanation Answer: C) 1999

Explanation:

The Kargil War, also known as the Kargil conflict, was an armed conflict between India and Pakistan that took place between May and July 1999 in the Kargil district of Kashmir and elsewhere along the Line of Control (LOC). In India, the conflict is also referred to as Operation Vijay.

Report Error

View Answer Report Error Discuss

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

3 3145
Q:

What is seismic zone extending at an angle of about 45o from the base of an ocean trench, down through lithosphere to the asthenosphere known as?

A) Appleton layer B) Benioff zone
C) Conard discontinuity D) Convergence zone
 
Answer & Explanation Answer: B) Benioff zone

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: World Geography

1 3145
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 3145
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 3145
Q:

Which warship has become the India’s first warship to install solar panels on board ?

A) INS Sindhudurg B) INS Sarvekshak
C) NS Vindhyagiri D) INS Godavari
 
Answer & Explanation Answer: B) INS Sarvekshak

Explanation:

Indian Navy’s survey vessel INS Sarvekshak has become the India’s first warship to install solar power system on board. The solar power system works on sunlight and hence is 100% per cent reliable for power source that can be used for communication equipment, battery charging and general lightings onboard round the clock with battery outputs during night. The system is maintenance free.

Report Error

View Answer Report Error Discuss

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

1 3144
Q:

A place where bees are kept

A) Sanctuary B) Hive
C) Mile D) Apiary
 
Answer & Explanation Answer: D) Apiary

Explanation:

A place where bees are kept is called as an apiary.

Report Error

View Answer Report Error Discuss

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

1 3143
Q:

How long does a basketball game last?

A) 35 min B) 55 min
C) 1 hr 15 min D) 48 min
 
Answer & Explanation Answer: D) 48 min

Explanation:

A basketball game last for a total of 48 minutes which has 4 quarters of 12 minutes each excluding all timeouts, 15 min half time, fouls,...

Report Error

View Answer Report Error Discuss

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

9 3141