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 4 students

Java Integer Division and Modulo

Mark
< Prev
Next >

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

int a = 25;
int b = 7;
System.out.println(a % b + " remainder when " + a + " divided by " + b);
System.out.print("Quotient: ");
System.out.println(a / b);
A

3 remainder when 25 divided by 7
Quotient: 4

B

4 remainder when 25 divided by 7
Quotient: 3.57

C

4 remainder when 25 divided by 7
Quotient: 3

D

3.57 remainder when 25 divided by 7
Quotient: 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
#1lsj0803092211 1m 32s 8
#2jaimonjosh11 1m 38s 2
#3charliecao12115911 2m 42s -62
#4zgj0731041723 20m 24s -1,034
Items per page:
10
1 – 4 of 4

AI Tutor

How can I help?

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