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

You are a project manager for the redevelopment of the Hoover Dam. Your team has been provided with the scope statement, but it lacks many description details. Your team is concerned because the project is in the initiation phase and it wants to postpone it until it has more information. As the project manager, you recommend that

A) The team should go forward, but be caution about the lack of details and the impact upon the timeline for the project B) The project should not go forward until the stakeholders agree about the scope and purpose of the project
C) The team should verify the scope and realize that more details will be available as more project characteristics are progressively elaborated. D) The team should review the project selection criteria for the Hoover Dam project
 
Answer & Explanation Answer: C) The team should verify the scope and realize that more details will be available as more project characteristics are progressively elaborated.

Explanation:

The project details and description will usually have less detail at the beginning of the project and will increase as the characteristics are progressively elaborated. Answer A is incorrect because the team should confirm that they understand the esence of the scope of the project, even if the details might be ambiguous at the beginning of the project. Answer B is incorrect because the project should go forward; however, the team should request further clarification of what the project scope entails. Answer D is incorrect because the project selection criteria should be established before the project begins.

Report Error

View Answer Report Error Discuss

Filed Under: PMP Certification

0 2903
Q:

Who is the new Chairman of ISRO in 2018?

A) K. Sivan B) S. Manish Arya
C) A.S. Kiran Kumar D) Bibeth Roy
 
Answer & Explanation Answer: A) K. Sivan

Explanation:

Rocket specialist K. Sivan has been appointed as new Chairman of India's space agency ISRO for a three-year term. He replaces current ISRO Chairman A.S. Kiran Kumar, whose term ends January 14, 2018.

 

  • He is currently Director of Vikram Sarabhai Space Centre in Trivandrum.

 

  • His expertise gave ISRO ability to send 104 satellites in a single mission.
Report Error

View Answer Report Error Discuss

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

10 2903
Q:

The term 'Progeria' refers to which of the following ?

A) A natural satellite of planet jupiter B) A widely used Tuberculosis(TB) drug
C) A genetic disorder with symptoms of pre-mature aging D) None
 
Answer & Explanation Answer: C) A genetic disorder with symptoms of pre-mature aging

Explanation:

Progeria is a rare genetic disordr which involves symptoms resembloing aspects of aging, manifested at a very early age.
The term is often used in reference to Hutchinson - gilford progeria syndrome(HGPS).

Report Error

View Answer Report Error Discuss

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

1 2903
Q:

Conversion of Glycogen to Glucose is stimulated by

A) Insulin B) Cortisol
C) Glucagon D) Progesterone
 
Answer & Explanation Answer: C) Glucagon

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Biology

2 2903
Q:

Damage to hearing is caused by sounds which exceed

A) 70 decibles B) 80 decibles
C) 100 decibles D) 120 decibles
 
Answer & Explanation Answer: D) 120 decibles

Explanation:

High frequency sound attacks the tympanic memberane and makes it defective. 120 decibles is too high a pitch to be heard and therefore it impairs the hearing ability.

Report Error

View Answer Report Error Discuss

Filed Under: Biology

3 2903
Q:

Which of the following is a Heterogeneous Mixture?

A) Air B) Table salt
C) Soda D) Brass
 
Answer & Explanation Answer: C) Soda

Explanation:

Here Soda is a Heterogenous Mixture.

 

A Heterogeneous Mixture is a mixture having a non-uniform composition i.e, the mixture contains components in different phases. Using various means, the parts in the mixture can be separated from one another.

Report Error

View Answer Report Error Discuss

Filed Under: Physics
Exam Prep: AIEEE , Bank Exams , CAT , GATE , GRE
Job Role: Analyst , Bank PO

9 2902
Q:

Who was the contemporary ruler of Emperor Asoka in Sri Lanka?

 

A) Mahasen B) Kasyapa
C) Tissa D) Vijayabahu I
 
Answer & Explanation Answer: C) Tissa

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Indian History
Exam Prep: Bank Exams

1 2901