| 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 5 students
Java Arithmetic and Operator Precedence
< Prev
Next >

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

int a = 8 / 2 + 5;
int b = 7 % 3 * 4;
int c = a - b;
double d = c * 2.0;
A

8.0

B

0.0

C

4.0

D

10.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
#1patrickmeijer00911 0m 03s 97
#2lsj0803092211 0m 38s 62
#3test12301 0m 06s -16
#4richa.tuli11 5m 50s -250
Items per page:
10
1 – 4 of 4
No comments yet. Be the first to comment!

AI Tutor

How can I help?

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