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

What color is Lobster blood?

A) Blue B) White
C) Red D) Colourless
 
Answer & Explanation Answer: A) Blue

Explanation:

Lobsters, like snails and spiders, have blue blood due to the presence of hemocyanin, which contains copper. In contrast, vertebrates and many other animals have red blood from iron-rich hemoglobin.

Report Error

View Answer Report Error Discuss

Filed Under: Biology
Exam Prep: AIEEE , Bank Exams
Job Role: Analyst , Bank PO

2 3891
Q:

The most electronegative element among the following is

A) Oxygen B) Chlorine
C) Nitrogen D) Sodium
 
Answer & Explanation Answer: A) Oxygen

Explanation:

Electronegativity measures an element's ability to form chemical bonds. Helium is the most electronegative element followed by Fluorine.

 

Here in the given options, Oxygen is the most electronegative element. Fluorine is followed by Oxygen, Chlorine and Nitrogen is the most electronegative elements list.

Report Error

View Answer Report Error Discuss

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

4 3891
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 3890
Q:

How many valence electrons are in carbon?

A) 2 B) 4
C) 6 D) 3
 
Answer & Explanation Answer: B) 4

Explanation:

The main group number for an element can be found from its column on the periodic table. For example, carbon is in group 4 and has 4 valence electrons. Oxygen is in group 6 and has 6 valence electrons.

Report Error

View Answer Report Error Discuss

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

2 3890
Q:

Which is the closest star to Earth

A) Sirius B) Sun
C) Rigel D) Deneb
 
Answer & Explanation Answer: B) Sun

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: World Geography

0 3890
Q:

A cowboy rides into town on Friday, stays for three days and leaves on Friday. How did he do it?

Answer

If we read the question clearly twice, we can understand that the name of the horse on which the cowboy rides into town is FRIDAY.

Report Error

View answer Workspace Report Error Discuss

Subject: Logic Puzzles Exam Prep: TOEFL , GRE , Bank Exams , AIEEE
Job Role: Bank PO , Bank Clerk , Analyst

7 3890