| preferred AP College board partner for AP classes
AP Computer Science A/Unit 1: Primitive Types
Start Practice TestPractice Test
About Exam
easy Solved by 4 students
Java Arithmetic Operations
< Prev
Next >

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

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

21.0

B

19.0

C

23.0

D

17.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
Time
Score
#1busemagngr11 0m 00s 100
#2ngvandangthanh11 0m 00s 100
#3l.alzahrani0411 0m 00s 100
#4richa.tuli01 0m 01s -11
#5lsj0803092212 3m 27s -117
Items per page:
10
1 – 5 of 5
No comments yet. Be the first to comment!

AI Tutor

How can I help?

APFIVE © 2020.
Email: [email protected]|Privacy Policy