Are you taking CLEP classes? Try clep.ai
| preferred AP College board partner for AP classes
AP Computer Science A/Unit 1: Primitive Types
Start Practice TestPractice Test
About Exam
hard Solved by 2 students

Increment Operator Evaluation

Mark
< Prev
Next >

Consider the following code segment.

int x = 3;
int y = x++ + ++x + x;
System.out.println(y);

What is printed when this code segment is executed?

A

15

B

12

C

13

D

14

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
#124uds05311 0m 27s 73
#2dilip01 0m 00s -10
#3theofanusmischa01 1m 22s -92
Items per page:
10
1 – 3 of 3

AI Tutor

How can I help?

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