Questions

Q:

Point out the error, if any, in the following program.

#include "stdio.h"

main()

{

      unsigned char;

       FILE *fp;

       fp = fopen ("trail", "r");

       while (( ch = getc (fp)) ! = EOF)

               printf ("%c", ch);

       fclose (fp);

}  

Answer

EOF has been defined as #define EOF -1 n the file "stdio.h" and an unsigned char ranges from 0 to 255 hence when EOF is read from the file it cannot be accommodated in ch. Solution is to declare ch as an int.

Report Error

View answer Workspace Report Error Discuss

Subject: Programming

1 3324
Q:

Name the player who became the first Indian javelin thrower to claim a gold medal at the Commonwealth Games 2018.

A) Neeraj Chopra B) Ankur Mittal
C) Seema Antil D) Annu Rani
 
Answer & Explanation Answer: A) Neeraj Chopra

Explanation:

Neeraj Chopra became the first Indian javelin thrower to claim a gold medal at the Commonwealth Games, with a season’s best effort of 86.47m in the final. The 20-year-old junior world champion had made the final after achieving the qualifying mark in his very first throw.

Report Error

View Answer Report Error Discuss

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

1 3324
Q:

Who is the author of book ' Arctic Summer'.

Answer

Dammon Galgut

Report Error

View answer Workspace Report Error Discuss

2 3323
Q:

Which team advanced to the Coap America Finals 2011 without winning any of its five matches in open play?

A) Brazil B) Paraguay
C) Venezuela D) Peru
 
Answer & Explanation Answer: B) Paraguay

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Sports

2 3323
Q:

Management by projects views aspects of ongoing operations as projects in order to apply Project Management techniques to them. This can be used to describe an oranizational approach to the management of ongoing operations. Why would a company want to utilize this methodology on nonprojects?

A) To keep project managers employed B) To provide better estimates about durations
C) To allow the utilization of PM tools, such as earned value, to calculate ROI D) To specify the different phases within the operations
 
Answer & Explanation Answer: C) To allow the utilization of PM tools, such as earned value, to calculate ROI

Explanation:

Answer A is incorrect because project managers are not effectively utilized if they are always scheduling and coordinating resources for daily operations. Answer B is incorrect because project managers are not the best resource for providing estimates on daily operations and time allocations;people doing the actual work are the best resources. Answer D is incorrect because you do not specify different phases of ongoing operations.

Report Error

View Answer Report Error Discuss

Filed Under: PMP Certification

0 3323
Q:

Stars are held together by

A) Gravitational forces B) Electrical forces
C) Ionic forces D) Magnetic forces
 
Answer & Explanation Answer: A) Gravitational forces

Explanation:

A star is a self luminous astronomical object and shines due to internal radiation from the enrgy sources. All stars are held together by their own gravity called Gravitational force.

Stars_are_held_together_by1560151249.jpg image

Report Error

View Answer Report Error Discuss

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

5 3323
Q:

Who did the historian K M Pannikar call "India's new Manu, the spirit of modern law incarnate"?

Answer

Thomas Babington Macaulay

Report Error

View answer Workspace Report Error Discuss

Subject: World History

7 3322
Q:

Who amongst the following won a Nobel Prize for literature when he was the head of the Government

A) Shimon peres B) Henry Kissinger
C) Sir Winston Churchill D) James earl carter
 
Answer & Explanation Answer: C) Sir Winston Churchill

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Honours and Awards

1 3321