| 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 6 students
Java Integer Division and Modulo
< 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

3.57 remainder when 25 divided by 7
Quotient: 3

C

4 remainder when 25 divided by 7
Quotient: 3.57

D

4 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
Time
Score
#1lsj0803092211 1m 32s 8
#2jaimonjosh11 1m 38s 2
#3zgj0731041723 20m 24s -1,034
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: [email protected]|Privacy Policy