Are you taking CLEP classes? Try clep.ai
| preferred AP College board partner for AP classes
medium Solved by 37 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
#7sailajavadlamani3313 0m 00s 80
#8hyeokjinlee092411 0m 34s 66
#9kshiva2009m11 0m 35s 65
#10parth.taur22711 0m 38s 62
Items per page:
10
1 – 10 of 37
No comments yet. Be the first to comment!

AI Tutor

How can I help?

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