| preferred AP College board partner for AP classes
AP Computer Science A/Unit 2: Using Objects
Start Practice TestPractice Test
About Exam
easy Solved by 2 students
Integer Division and Modulus
< 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 3

B

3 3.75

C

4 3

D

3.75 3

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

Question Leaderboard

Not enough data yet to show leaderboard.

No comments yet. Be the first to comment!

AI Tutor

How can I help?

APFIVE © 2020.
Email: [email protected]|Privacy Policy