Are you taking CLEP classes? Try clep.ai
| 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 3 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

AI Tutor

How can I help?

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