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

None

C

III only

D

II only

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
#1parth.taur22711 0m 31s 69
#2bommasam00012 0m 41s 49
#3patrickmeijer00912 0m 44s 46
#4sssemihunal01 0m 01s -11
#5lsj0803092211 3m 49s -129
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: apfive@apfive.org|Privacy Policy|