Choosing how to earn college credit? CLEP vs AP guide
| preferred AP College board partner for AP classes
easy Solved by 2 students

Integer Division and Modulus

Mark
< Prev
Next >

What is printed as a result of executing the following code segment?

int x = 15;
int y = 4;
System.out.print(x / y);
System.out.print(" ");
System.out.println(x % y);

A

3.75 3

B

4 3

C

3 3.75

D

3 3

Hint
Did You Know?
Explain Why
Explain All Answers
Check Answer
Show Correct Answer
Report Question

Question Leaderboard

Rank
User
Correct Count
Attempt Count
Total Time
Score
#1zgj0731041701 0m 28s -38
#2charliecao12115912 3m 44s -134
#3lsj0803092211 12m 19s -639
Items per page:
10
1 – 3 of 3
No comments yet. Be the first to comment!

AI Tutor

How can I help?

APFIVE © 2020.
Email: apfive@apfive.org|Instagram: @_apfive_|Privacy Policy|