| 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 9 students
Java Compound Assignment Operators
< Prev
Next >

What is printed when the following code segment is executed?

int count = 5;
count++;
count += 2;
count--;
System.out.println(count);
A

8

B

9

C

7

D

6

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
#1bommasam00022 0m 19s 181
#2kaisuki11 0m 00s 100
#3liuwilliam07241011 0m 09s 91
#4lsj0803092212 0m 32s 58
#5zgj0731041711 1m 03s 37
#6chunxiangxu.cxu01 0m 10s -20
#7richa.tuli12 7m 09s -339
Items per page:
10
1 – 7 of 7
No comments yet. Be the first to comment!

AI Tutor

How can I help?

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