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

' Crime and Punishment ' was written by

A) Alexander Solzhenitysn B) Lewis Carroll
C) Fyodor Dostoevsky D) Valdimir Nabakov
 
Answer & Explanation Answer: C) Fyodor Dostoevsky

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Books and Authors

2 3780
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 3780
Q:

I am an English word which starts with 'T' and ends with 'T' and has 'T' in it.

Answer

The English word that starts & ends with T and has T (Tea) in it is " TEAPOT ".


teapot1586508959.jpg image


 

Report Error

View answer Workspace Report Error Discuss

Subject: Word Puzzles Exam Prep: CAT , Bank Exams

4 3779
Q:

In economics,"capital" refers to

A) mineral resources B) the money in one's pocket
C) consumer goods D) buildings and equipment
 
Answer & Explanation Answer: D) buildings and equipment

Explanation:

Capital refers to buildings and equipment i.e, goods which are used by workers to produce other goods such as machinery, land, ...

Capital has a number of related meanings in economics, finance, and accounting.

In economics, Capital comprises one of the four major factors of production, the others being land, labor, and entrepreneurship.

In finance and accounting, capital generally refers to financial wealth, especially that used to start or maintain a business.

Report Error

View Answer Report Error Discuss

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

5 3778
Q:

It cannot be seen, it cannot be felt, Cannot be heard, cannot be smelt, Lies behind stars and under hills, and empty holes it fills. Comes first follows after, Ends life kills laughter.

Answer

Darkness.

Report Error

View answer Workspace Report Error Discuss

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

5 3777
Q:

I am always infront of you, but you will never see me. Who am I?

A) Mirror B) Shadow
C) Future D) None of the above
 
Answer & Explanation Answer: C) Future

Explanation:

Yes, future is always infront of us, but no one can see it.

Report Error

View Answer Report Error Discuss

3 3776