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 47 students

Primitive Type Assignment Errors

Mark
< Prev
Next >

Which of the following code snippets will cause a compile-time error?

I. 
int x = 5.5;

II. 
double x = 5.5; 
int y = (int) x;

III. 
double x = 5.5; 
int y = x;
A

None

B

I and III only

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
#1lsj0803092233 0m 36s 264
#2busemagngr22 0m 32s 168
#3aaaa124 0m 13s 167
#4chunxiangxu.cxu22 1m 13s 127
#5waynechen011011 0m 00s 100
#6sailajavadlamani3311 0m 00s 100
#7l.alzahrani0411 0m 00s 100
#8liuwilliam07241011 0m 07s 93
#9varunrajaram112 0m 00s 90
#10Potter1611 0m 15s 85
Items per page:
10
1 – 10 of 46

AI Tutor

How can I help?

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