Question 24 / 90:  Given the following code segment uses the modulus operator, what will be printed?
System.out.print((24 % 8) + (10 % 7) + (100 % 99) + (38 % 6));
                                
A  5
B  6
C  0312
D  0302
<< First < Previous Next > Last >>
Explanation:

B.

24 % 8 = 0,

10 % 7 = 3,

100 % 99 = 1,

38 % 6 = 2.

Added together, 0 + 3 + 1 + 2 = 6.

A, C, and D are incorrect because they do not represent the logical answer.

Exam Home Page
https://www.jobilize.com/quiz-my-oca-mock-exam-by-mike-wolf

My OCA Mock

Author:

Access: Public Instant Grading

Ask
Madison Christian
Start Exam
Madison Christian
Start Quiz
Hope Percle
Start Quiz
Copy and paste the following HTML code into your website or blog.
<iframe src="https://www.jobilize.com/embed/quiz-my-oca-mock-exam-by-mike-wolf" width="600" height="600" frameborder="0" marginwidth="0" marginheight="0" scrolling="yes" style="border:1px solid #CCC; border-width:1px 1px 0; margin-bottom:5px" allowfullscreen webkitallowfullscreen mozallowfullscreen> </iframe>