| 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 9 students
Primitive Type Compatibility Errors
< Prev
Next >

Which of the following code segments will result in a compile-time error?

I.
int x = 10;
int y = 5 / x;

II.
double x = 10;
double y = 5 / x;

III.
double x = 10;
int y = 5 / x;
A

I and III only

B

III only

C

II only

D

None

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
#1parth.taur22711 0m 31s 69
#2bommasam00012 0m 41s 49
#3patrickmeijer00912 0m 44s 46
#4lsj0803092211 3m 49s -129
Items per page:
10
1 – 4 of 4

AI Tutor

How can I help?

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