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

Name the movie that voted 2016’s Best Film by Indian film critics’ poll?

A) Pink B) Sultan
C) Mohenjadaro D) Dangal
 
Answer & Explanation Answer: D) Dangal

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Honours and Awards
Exam Prep: CAT , GATE
Job Role: Bank Clerk , Bank PO

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

Dimond is

A) an element B) a compound
C) a mixture D) a liquid
 
Answer & Explanation Answer: A) an element

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: Chemistry

3 3781
Q:

Where are Maglev trains used?

A) London B) Russia
C) Germany D) Japan
 
Answer & Explanation Answer: D) Japan

Explanation:

Maglev trains are used in Japan, South Korea and China only.

Maglev derived from magnetic levitation using the principle of magnetic repulsion is a system of train transportation that uses two sets of magnets, one set to repel and push the train up off the track as in levitation then another set to move the 'floating train' ahead at great speed taking advantage of no friction. Maglev trains are therefore quieter and smoother than conventional trains, and have the potential for much higher speeds

Despite over a century of research and development, maglev transport systems are in operation in just three countries Japan, South Korea and China.

 

Hence Maglev -- Magnetic-levitation.

Report Error

View Answer Report Error Discuss

Filed Under: General Awareness
Exam Prep: AIEEE , Bank Exams , CAT , GATE
Job Role: Analyst , Bank Clerk , Bank PO , IT Trainer

3 3780
Q:

CT scans, X-rays and blood tests free in all government hospitals in ________ , except those in the medical colleges.

A) Odisha B) Tamilnadu
C) Assam D) Gujarat
 
Answer & Explanation Answer: C) Assam

Explanation:

Dispur will make CT scans, X-rays and blood tests free in all government hospitals in Assam except those in the medical colleges. Health minister Himanta Biswa Sarma informed the Assembly during question hour that chief minister Sarbananda Sonowal will inaugurate the new scheme on May 11. The service will be outsourced to a private organisation but the cost will be borne by the government. The free service – not for medical colleges – will be started with 35 hospitals and expanded to 500 smaller health centres.

Report Error

View Answer Report Error Discuss

Filed Under: General Awareness
Exam Prep: Bank Exams

3 3779
Q:

................mixtures are used for making a glass

A) Quartz and Mica B) Salt and Quartz
C) Sand and Salt D) Sand and Silicates
 
Answer & Explanation Answer: D) Sand and Silicates

Explanation:
Report Error

View Answer Report Error Discuss

Filed Under: General Science

18 3779