Library (Wrapper) Classes — Chapter Test

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

Question 1
Which is the wrapper class for the primitive int?
AInt
BInteger
CNumber
DDigit
Question 2
Converting a primitive automatically to its wrapper object is…
Aunboxing
Bautoboxing
Cparsing
Dcasting only
Question 3
Which converts the String "42" to the int 42?
AString.valueOf(42)
BInteger.parseInt("42")
CDouble.parseDouble("42")
DCharacter.isDigit('4')
Question 4
Character.isDigit('5') returns…
A5
Btrue
Cfalse
D'5'
Question 5
Character.toUpperCase('b') returns…
A'b'
B'B'
Ctrue
D66