Values & Data Types — Chapter Test

Answer all 5 questions, then submit. You need 60% to pass. Log in to save progress.

Question 1
Which escape sequence starts a NEW LINE?
A\t
B\n
C\\
D\"
Question 2
Names that YOU choose (like marks, total) are which kind of token?
Akeywords
Bidentifiers
Cliterals
Doperators
Question 3
What is the size of an int in Java?
A1 byte
B2 bytes
C4 bytes
D8 bytes
Question 4
Converting int to double automatically (small → large) is…
Anarrowing
Bwidening
Ccasting
Dan error
Question 5
After int y = (int) 9.7; the value of y is…
A10
B9.7
C9
D0