Are you taking CLEP classes? Try clep.ai
| 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 6 students

Primitive Type Compatibility Errors

Mark
< 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

None

C

III only

D

II only

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
#1parth.taur22711 0m 31s 69
#2Wilbert.Ankomah2712 0m 31s 59
#3bommasam00012 0m 41s 49
#4patrickmeijer00912 0m 44s 46
#5sssemihunal01 0m 01s -11
#6Potter1601 0m 30s -40
#7lsj0803092211 3m 49s -129
Items per page:
10
1 – 7 of 7

AI Tutor

How can I help?

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