Solved

Which of the Following Statements Will Assign the Largest Value

Question 86

Multiple Choice

Which of the following statements will assign the largest value of three integer variables a, b, and c to the integer variable maximum?


A) maximum = Math.max (a, b, c) ;
B) maximum=Math.max (a, b) ;
maximum= Math.(b, c) ;
maximum=Math.max (a, c) ;
C) maximum = Math.max (a, b) ;
maximum = Math. max (maximum, c) ;
D) maximum = Math.max (a, b) + Math.max (b, c) + Math.max (a, c) ;

Correct Answer:

verifed

Verified

Unlock this answer now
Get Access to more Verified Answers free of charge

Related Questions