Questions

Q:

What value does read() return when it has reached the end of a file?

A) 1 B) -1
C) 0 D) None
 
Answer & Explanation Answer: B) -1

Explanation:

It returns -1

Report Error

View Answer Report Error Discuss

Filed Under: Programming

1 2905
Q:

Which film won the Oscar Awards 2017 for the best picture category?

 

A) La La Land   B) The Sales Man  
C) Manchester by the sea D) Moon Light
 
Answer & Explanation Answer: D) Moon Light

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Honours and Awards
Exam Prep: Bank Exams

0 2905
Q:

Which of the following year is considered as the first year of the Muslim calender ? 

A) AD 622 B) AD 671
C) AD 571 D) AD 651
 
Answer & Explanation Answer: A) AD 622

Explanation:

Muhammad had to leave Mecca his birth place where he started preaching and take refuse in Medina, where he was given a warm welcome. This event took place in AD 622 and is known as the year of the Hijira, or migration, which became the first year of the Muslim Calendar.

Report Error

View Answer Report Error Discuss

Filed Under: World History

2 2905
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 2904
Q:

Who has become the first batsman to score three double tons in One Day Internationals?

A) Virat Kohli B) AB de Villiers
C) Chris Gayle D) Rohith Sharma
 
Answer & Explanation Answer: D) Rohith Sharma

Explanation:
Report Error

View Answer Report Error Discuss

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

23 2904
Q:

Pearl Harbour is located in

Answer

Hawai

Report Error

View answer Workspace Report Error Discuss

Subject: World History

4 2902
Q:

Which of the following country has re-elected as the member of the UNESCO's executive board?

A) Pakistan B) India
C) Myanmar D) Nepal
 
Answer & Explanation Answer: B) India

Explanation:

India was re-elected as member of executive board of United Nations Educational, Scientific and Cultural Organization (UNESCO). Executive board is UNESCO's top decision-making body. The election was held at 39th session of General Conference of UNESCO in Paris, France

 

UNESCO is UN association that helps safeguard historical and cultural sites around the world. It is special multi-nation organization, framed in 1945 and situated in France. It promotes literacy and sex education as well as improving gender equality in countries around world. The General Conference determines policies and main lines of work of organisation. Its duty is to set programmes and budget of UNESCO. It also elects members of executive board and appoints, every four years, director-general.

Report Error

View Answer Report Error Discuss

Filed Under: World Organisations
Exam Prep: CAT , Bank Exams , AIEEE
Job Role: Bank Clerk

7 2902
Q:

Who among the following economists gave the concept of "economies of scale". Which says "many goods and  services can be produced more cheaply in long series"?

A) Edward C.Prescott B) Amartya Sen
C) Gray S.Becker D) Paul Krugman
 
Answer & Explanation Answer: D) Paul Krugman

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Verbal Reasoning - Mental Ability
Exam Prep: Bank Exams
Job Role: Bank PO

4 2902