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

Which option is an example of expository writing?

A) A novel about a young girl caught up in the Civil War B) A nonfiction book about the history of the Civil War
C) A poem written about the soldiers who fought in the Civil War D) A movie review of a dramatic film about the Civil War
 
Answer & Explanation Answer: B) A nonfiction book about the history of the Civil War

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

0 3175
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 3174
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 3174
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 3174
Q:

Dry ice is an example of which process

A) Condensation B) Evaporation
C) Sublimation D) Freezing
 
Answer & Explanation Answer: C) Sublimation

Explanation:

Sublimation is a process when a solid changes directly into gas instead changing into liquid first. Dry ice is an example of Sublimation process because it doesn't change into liquid CO2 and directly change into gaseous CO2 when heated.

 

Hence, Dry ice is an example of Sublimation process. 

Report Error

View Answer Report Error Discuss

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

4 3173
Q:

Integration is primarily concerned with

A) ensuring that the time, scope and cost baselines are consistent with an acceptable quality standard and with the customer’s expectations. B) getting people working together effectively toward common project goals through appropriate training, management and leadership.
C) effectively integrating the processes among the project management process groups that are required to accomplish project objectives with an organization’s defined procedures. D) ensuring that all the tools and techniques of the various planning processes are appropriately scaled to the complexity and risk exposure of the project.
 
Answer & Explanation Answer: C) effectively integrating the processes among the project management process groups that are required to accomplish project objectives with an organization’s defined procedures.

Explanation:

Answers A, B and D all result from effectively integrating the work of the project management process groups. PMBOK [4.0]

Report Error

View Answer Report Error Discuss

Filed Under: PMP Certification

0 3173
Q:

"International Day for Disaster Reduction" was observed across the world on _____ ?

A) 16 October B) 15 October
C) 14 October D) 13 October
 
Answer & Explanation Answer: D) 13 October

Explanation:

International Day for Disaster Reduction, held every 13 October, celebrates how people and communities around the world are reducing their exposure to disasters.

The year 2017 focus is : Reducing the number of affected people by disasters by 2030.

Report Error

View Answer Report Error Discuss

Filed Under: Important Days and Years
Exam Prep: AIEEE , Bank Exams , CAT
Job Role: Bank Clerk , Bank PO

7 3172