Choosing how to earn college credit? CLEP vs AP guide
| preferred AP College board partner for AP classes
medium Solved by 38 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
#1l.alzahrani0411 - 100
#2waynechen011011 - 100
#3sgarv251311 - 100
#4varunrajaram111 - 100
#5znasibli111 - 100
#6busemagngr11 0m 09s 91
#7rsenatatar11 0m 13s 87
#8sailajavadlamani3313 - 80
#9nishanththanasekaran11711 0m 20s 80
#1024uit04511 0m 21s 79
Items per page:
10
1 – 10 of 43
No comments yet. Be the first to comment!

AI Tutor

How can I help?

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