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
medium Solved by 40 students

Integer Arithmetic and Operator Precedence

< Prev
Next >

What is the value of d after the following code segment is executed?

int a = 2 + 3 * 4;
int b = (a - 5) / 3;
int c = a % b;
double d = a + b + c;
A

23.0

B

17.0

C

21.0

D

19.0

Hint
Did You Know?
Explain Why
Explain All Answers
Check Answer
Show Correct Answer
Report Question
Mark for review

Question Leaderboard

Rank
User
Correct Count
Attempt Count
Total Time
Score
#1znasibli111 0m 00s 100
#2varunrajaram111 0m 00s 100
#3sgarv251311 0m 00s 100
#4waynechen011011 0m 00s 100
#5l.alzahrani0411 0m 00s 100
#6rsenatatar11 0m 13s 87
#7nishanththanasekaran11711 0m 20s 80
#8sailajavadlamani3313 0m 00s 80
#924uit04511 0m 21s 79
#10hyeokjinlee092411 0m 34s 66
Items per page:
10
1 – 10 of 40

AI Tutor

How can I help?

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