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 42 students

Integer Arithmetic and Operator Precedence

Mark
< 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

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
#6busemagngr11 0m 09s 91
#7rsenatatar11 0m 13s 87
#8nishanththanasekaran11711 0m 20s 80
#9sailajavadlamani3313 0m 00s 80
#1024uit04511 0m 21s 79
Items per page:
10
1 – 10 of 43

AI Tutor

How can I help?

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