Searching for "US"

Q:

Which of the following is not used for commenting in java?

A) // B) /* */
C) /** */ D) /** **/
 
Answer & Explanation Answer: D) /** **/

Explanation:
  • //               is a single line comment
  • /*  */          is commenting on one or more lines
  • /** */         is documentation comment
Report Error

View Answer Report Error Discuss

Filed Under: Java

Q:

An algorithm written once which can be used in many places is called

A) Block B) Function
C) Datatype D) None
 
Answer & Explanation Answer: B) Function

Explanation:

Function is an algorithm which can be used any where in the program when required

Report Error

View Answer Report Error Discuss

Filed Under: Java

Q:

Directions : For the Assertion (A) and Reason (R) below, choose the correct alternative 

Assertion (A) : There is no vaccine for AIDS. 

 Resson (R)   : The AIDS virus changes its genetic code 

A) Both A and R are true and R is the correct explanation of A. B) Both A and R are true but R is NOT the correct explanation of A.
C) A is true but R is false. D) A is false but R is true.
 
Answer & Explanation Answer: A) Both A and R are true and R is the correct explanation of A.

Explanation:

A vaccine contains the inactivated germs of the disease. But the AIDS virus changes its genetic code and so on vaccine has been invented for it. 

Report Error

View Answer Report Error Discuss

Filed Under: Assertion and Reason

Q:

Directions : For the Assertion (A) and Reason (R) below, choose the correct alternative 

Assertion (A) : a Vaccines prevent diseases. 

Reason (R)    : Vaccines must be given to children. 

A) Both A and R are true and R is the correct explanation of A. B) Both A and R are true but R is NOT the correct explanation of A.
C) A is true but R is false. D) A is false but R is true.
 
Answer & Explanation Answer: B) Both A and R are true but R is NOT the correct explanation of A.

Explanation:

Vaccines prevent diseases by developing immunity inside the body and vaccines must be given to children to build in them a resistance against diseases. 

Report Error

View Answer Report Error Discuss

Filed Under: Assertion and Reason

Q:

Directions : For the Assertion (A) and Reason (R) below, choose the correct alternative 

Assertion (A) : Silver is not used to make electric wires. 

Reason (R)   :  Silver is a bad conductor. 

A) Both A and R are true and R is the correct explanation of A. B) Both A and R are true but R is NOT the correct explanation of A.
C) A is true but R is false. D) A is false but R is true.
 
Answer & Explanation Answer: C) A is true but R is false.

Explanation:

Silver is a good conductor of electricity but it is not used to make electric wires because it is expensive 

Report Error

View Answer Report Error Discuss

Filed Under: Assertion and Reason

Q:

Which among the following is the largest museum in India

A) Salarjung Museum B) Indian Museum
C) SubhashChandraBose Museum D) Tagore museum
 
Answer & Explanation Answer: B) Indian Museum

Explanation:

Indian Museum is the largest museum in India

Report Error

View Answer Report Error Discuss

Filed Under: Indian History

Q:

Directions : For the Assertion (A) and Reason (R) below, choose the correct alternative 

Assertion (A) :   When the bus starts, the person inside it falls forward. 

Reason (R)    :  The bus pushes the man forward.

A) Both A and R are true and R is the correct explanation of A. B) Both A and R are true but R is NOT the correct explanation of A.
C) A is true but R is false. D) Both A and R are false.
 
Answer & Explanation Answer: D) Both A and R are false.

Explanation:

When the bus starts, the person inside it falls backward because the bus moves forward but due to the property of inertia, the man tends to be in the initial Mate of rest. 

Report Error

View Answer Report Error Discuss

Filed Under: Assertion and Reason

Q:

Directions : For the Assertion (A) and Reason (R) below, choose the correct alternative 

Assertion (A) : Carbon monoxide when inhaled causes death. 

Reason (R) : Carbon monoxide combines with haemoglobin. 

A) Both A and R are true and R is the correct explanation of A. B) Both A and It are true but R is NOT the correct explanation of A.
C) A is true but R is false. D) A is false but R is true.
 
Answer & Explanation Answer: A) Both A and R are true and R is the correct explanation of A.

Explanation:

Carbon monoxide, when inhaled, combines with haemoglobin of blood to form carboxyhaemoglobin which inhibits the transport of oxygen. 

 

Report Error

View Answer Report Error Discuss

Filed Under: Assertion and Reason