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:

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

What stops one branch of government from becoming too powerful?

A) State governments B) Every 4 years of President election
C) Members of congress D) Checks and Balances
 
Answer & Explanation Answer: D) Checks and Balances

Explanation:

A procedure or method called Checks and Balances stops one branch of government from becoming too powerful.

  • In the United States, there are three branches of government: The Executive, Legislative, and Judicial.

 

  • Each has its own responsibilities and at the same time they work together to make the country run smoothly and to assure that the rights of citizens are not ignored or disallowed.

 

  • There is a clear separation of powers between them.

 

  • Checks and Balances limit the power within each branch.

 

  • Each branch can stop and/or override processes within other branches in manners that are outlined in federal laws, regulations, and the constitution.

 

  • This way, their powers are balanced because the branches of government have the responsibility to check each other.
Report Error

View Answer Report Error Discuss

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

7 3781
Q:

Which of the following is / are fund managers for National Pension System (NPS) in 2017 ?

A) Axis provident fund B) Yes bank pension fund
C) ICICI prudential pension D) Punjab National provident fund
 
Answer & Explanation Answer: C) ICICI prudential pension

Explanation:

At present in 2017, there are only seven NPS fund managers viz. HDFC Pension Fund, ICICI Prudential Pension, Kotak Pension Fund, LIC Pension Fund,  Reliance Capital Pension, SBI Pension Fund and UTI Retirement Solutions.

Report Error

View Answer Report Error Discuss

8 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:

Which law relates to the ideal gas law?

A) P1T1 = P2T2 B) P1/V1 = P2/V2
C) P1V1 = P2V2 D) T1/V1 = T2/V2
 
Answer & Explanation Answer: C) P1V1 = P2V2

Explanation:

Ideal Gas Law ::

The Combined gas law or General Gas Equation is obtained by combining Boyle's Law, Charles' Law, and Gay-Lussac's Law. It shows the relationship between the pressure, volume, and temperature for a fixed mass (quantity) of gas:

P1V1T1 = P2V2T2

 

Hence, the Boyle's law P1V1 = P2T2, relates to ideal gas equation.

Report Error

View Answer Report Error Discuss

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

5 3780