Are you taking CLEP classes? Try clep.ai
| preferred AP College board partner for AP classes
medium Solved by 44 students

Primitive Type Assignment Errors

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

Question Leaderboard

Rank
User
Correct Count
Attempt Count
Total Time
Score
#1lsj0803092233 0m 36s 264
#2aaaa124 0m 13s 167
#3chunxiangxu.cxu22 1m 13s 127
#4waynechen011011 0m 00s 100
#5sailajavadlamani3311 0m 00s 100
#6l.alzahrani0411 0m 00s 100
#7liuwilliam07241011 0m 07s 93
#8varunrajaram112 0m 00s 90
#9jackgreanias36411 0m 15s 85
#10sgarv251313 0m 00s 80
Items per page:
10
1 – 10 of 42
No comments yet. Be the first to comment!

AI Tutor

How can I help?

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