Questions

Q:

Which of the following is true?

A) It is appropriate to use assertions to validate arguments to methods marked public B) It is appropriate to catch and handle assertion errors
C) It is NOT appropriate to use assertions to validate command-line arguments D) None
 
Answer & Explanation Answer: C) It is NOT appropriate to use assertions to validate command-line arguments

Explanation:

A is incorrect. It is acceptable to use assertions to test the arguments of private methods.

 

B is incorrect. While assertion errors can be caught, Sun discourages you from doing so.

Report Error

View Answer Report Error Discuss

Filed Under: Programming

0 3760
Q:

3rd Sunday of June is observed as ______

A) World Freedom Day B) United Nations Day for South-South Cooperation
C) International Father's Day D) World Alzheimer's Day
 
Answer & Explanation Answer: C) International Father's Day

Explanation:
Report Error

View Answer Report Error Discuss

5 3760
Q:

Which of the following monuments was not constructed by Shajahan?

A) Red fort, Delhi B) Tajmahal, Delhi
C) Kuthubminar, Delhi D) Jama Masjid, Delhi
 
Answer & Explanation Answer: C) Kuthubminar, Delhi

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Indian History

5 3760
Q:

Which city has been designated as the UNESCO World Book Capital 2019  ?

A) Warsaw B) Sharjah
C) Pune D) Kochi
 
Answer & Explanation Answer: B) Sharjah

Explanation:

Sharjah, the city of United Arab Emirates (UAE), has been designated as the UNESCO World Book Capital 2019 by Irina Bokova, the Director-General of UNESCO, at the Headquarters of the International Federation of Library Associations (IFLA) at La Haye. The honour is in recognition of the Emirate’s pioneering role in supporting and expanding the local and regional publishing industries, promoting reading to become an intrinsic cultural practice, as well as embracing inter-cultural, knowledge-based dialogue. Sharjah was the first emirate in UAE to establish a formal school and a library. It was also the first emirate to house many cultural institutions like the Emirates Publishers Association and the Emirates’ writers Union. Sharjah is the 19th city to become World Book Capital. It is preceded by Conakry in 2017 and Athens in 2018.

Report Error

View Answer Report Error Discuss

Filed Under: General Awareness

8 3759
Q:

Ethernet uses which topology

A) Star B) Bus
C) Twisted pair D) Both B & C
 
Answer & Explanation Answer: B) Bus

Explanation:

Ethernet uses Bus topology.

Report Error

View Answer Report Error Discuss

7 3758
Q:

Who was awarded the first Rajiv Gandhi National Sadhavana Award

A) Archarya Tulsi B) J.R.D.Tata
C) Mother Teresa D) R.A.Mashelkar
 
Answer & Explanation Answer: C) Mother Teresa

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Honours and Awards

1 3757
Q:

How many times the following program would print 'Jamboree'?

main()

{

     printf ( "\nJamboree");

     main ();

}

Answer

Till the stack doesn't overflow

Report Error

View answer Workspace Report Error Discuss

Subject: Programming

2 3757
Q:

In 1926, Which of the following universties was founded by Madan Mohan Malaviya alond with Anne Besant ?

A) Punjab university B) Delhi University
C) Benaras Hindu University D) University of Madras
 
Answer & Explanation Answer: C) Benaras Hindu University

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: General Awareness

1 3756