What happens to the fractional part when a division is performed on two integer variables?
A) The fractional part is rounded off to the nearest integer value.
B) The fractional part is discarded.
C) Two integers cannot be used in division; at least one of the operands should be a floating-point number.
D) Instead of using an integer division, you should use the modulus operator to perform floating-point division.
Correct Answer:
Verified
Q41: What is the output of the following
Q42: Which is a correct representation of the
Q43: What is the value of Math.abs(-2)?
A)-2
B)0
C)2
D)4
Q44: What is the output of the following
Q45: What is the value of the value
Q47: What is the output of the following
Q48: Which is the Java equivalent of the
Q49: What is the value of Math.pow(3, 2)?
A)6.0
B)9.0
C)8.0
D)5.0
Q50: What is the value of the following
Q51: What is the result of the following
Unlock this Answer For Free Now!
View this answer and more for free by performing one of the following actions
Scan the QR code to install the App and get 2 free unlocks
Unlock quizzes for free by uploading documents