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

Classify the Hashing Functions based on the various methods by which the key value is found.

Answer

Direct method,


 Subtraction method,


 Modulo-Division method,


 Digit-Extraction method,


 Mid-Square method,


 Folding method,


Pseudo-random method

Report Error

View answer Workspace Report Error Discuss

Subject: Technology

5 3898
Q:

Which international organization has declared 2017 as the “International Year of Sustainable Tourism for Development”?

A) Asian Development Bank (ADB) B) World Trade Organisation (WTO)
C) United Nations (UN) D) International Monetary Fund (IMF)
 
Answer & Explanation Answer: C) United Nations (UN)

Explanation:

The United Nations (UN) has declared 2017 as the "International Year of Sustainable Tourism for Development" to celebrate and advance the commitment of the tourism division to building a superior world.The International Year aims to support a change in policies, business practices and consumer behavior towards a more sustainable tourism sector that can contribute effectively to the Sustainable Development Goals (SDGs).

Report Error

View Answer Report Error Discuss

Filed Under: General Awareness
Exam Prep: Bank Exams , CAT , GATE , GRE
Job Role: Bank Clerk , Bank PO

4 3898
Q:

The Latin American revolutions from 1804 to 1821 were

The_Latin_American_revolutions_from_1804_to_1821_were1538654813.jpg image

A) successful and had different styles of government in the various countries. B) successful and had similar styles of government in the various countries.
C) unsuccessful and left strong liberal governments in place. D) unsuccessful and left strong conservative governments in place.
 
Answer & Explanation Answer: D) unsuccessful and left strong conservative governments in place.

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: World History
Exam Prep: AIEEE , Bank Exams , CAT , GATE
Job Role: Analyst , Bank Clerk , Bank PO

1 3896
Q:

Who has been sworn in as union Railway Minister after the resignation of Dinesh Trivedi

A) Muket Rai B) Prasano Dev Barua
C) Mukul Roy D) Harihar Banerji
 
Answer & Explanation Answer: C) Mukul Roy

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Famous Personalities

3 3895
Q:

 The expression FOR XML RAW tells SQL Server to:

A) place the values of the columns as attributes in the resulting XML document. B) place the values of the columns into elements rather than attributes.
C) place some columns into elements and others into attributes. D) None of the above is correct.
 
Answer & Explanation Answer: A) place the values of the columns as attributes in the resulting XML document.

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Database

0 3895
Q:

Using OQL, you may do which of the following?

A) Return an entire collection of elements including duplicates. B) Return a collection of elements without duplicates.
C) Return a specific subset of elements using a given criteria. D) All of the above.
 
Answer & Explanation Answer: D) All of the above.

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Database

0 3894
Q:

Who among the following is a winner of the Indira Gandhi Award for National Integration

A) M.G.K.Menon B) V.K.Gokak
C) Raghupati Sahai 'Firaq' D) M.F.Hussain
 
Answer & Explanation Answer: D) M.F.Hussain

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Honours and Awards

1 3894