| preferred AP College board partner for AP classes
AP Computer Science A/Unit 2: Using Objects
Start Practice Test
Share
easy Solved by 6 students
Evaluating Compound Assignment Operators
< Prev
Next >

Develop code for assignment statements with compound assignment operators and determine the value that is stored in the variable as a result.
What is printed as a result of executing this code segment?

int count = 5;
count++;
count += 3;
count–;
System.out.println(count);

A

9

B

7

C

5

D

8

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

Question Leaderboard

Rank
User
Correct Count
Attempt Count
Time
Score
#1kaisuki11 0m 00s 100
#2sailajavadlamani3311 0m 00s 100
#3bhavinidixit031111 0m 00s 100
#4richa.tuli11 0m 07s 93
#5lsj0803092211 8m 12s -392
APFIVE © 2020.
Email: [email protected]|Privacy Policy