| 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 65 students
Primitive Type Assignment Errors
< Prev
Next >

Which of the following pairs of declarations will cause an error message?

I. 
int x = 5.5;

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

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

II only

B

None

C

III only

D

I and III 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
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 37
No comments yet. Be the first to comment!

AI Tutor

How can I help?

APFIVE © 2020.
Email: [email protected]|Privacy Policy