Question Paper
Class / Subject: Class 10 (ICSE) · Computer Applications
Chapter: Chapter 2 — Chapter 2: Wrapper Classes
Time Allowed: 32 minutes
Max Marks: 16
1. What do wrapper classes do? [1]
(A) Convert primitives into objects
(B) Convert objects into primitives only
(C) Delete primitive types
(D) Nothing specific
2. What wraps the int type? [1]
(A) Integer
(B) Double
(C) Character
(D) String
3. What wraps the double type? [1]
(A) Double
(B) Integer
(C) Character
(D) String
4. What is autoboxing? [1]
(A) Automatic conversion of primitive to wrapper object
(B) Automatic deletion of variables
(C) Automatic conversion of wrapper to primitive
(D) Nothing specific
5. What is unboxing? [1]
(A) Converting a wrapper object back to a primitive
(B) Converting a primitive to a wrapper
(C) Deleting a wrapper class
(D) Nothing specific
6. What does Integer.parseInt() do? [1]
(A) Converts a String to an int
(B) Converts an int to a String
(C) Deletes an integer
(D) Nothing specific
7. Why are wrapper classes needed? [1]
(A) For Java collections and object-based features
(B) They are never needed
(C) Only for decoration
(D) Only for errors
8. Why learn about wrapper classes? [1]
(A) Important for working with objects and collections
(B) No reason
(C) It's not useful
(D) Only for tests
9. What do wrapper classes do? [1]
(A) Convert primitives into objects
(B) Convert objects into primitives only
(C) Delete primitive types
(D) Nothing specific
10. What wraps the int type? [1]
(A) Integer
(B) Double
(C) Character
(D) String
11. What wraps the double type? [1]
(A) Double
(B) Integer
(C) Character
(D) String
12. What is autoboxing? [1]
(A) Automatic conversion of primitive to wrapper object
(B) Automatic deletion of variables
(C) Automatic conversion of wrapper to primitive
(D) Nothing specific
13. What is unboxing? [1]
(A) Converting a wrapper object back to a primitive
(B) Converting a primitive to a wrapper
(C) Deleting a wrapper class
(D) Nothing specific
14. What does Integer.parseInt() do? [1]
(A) Converts a String to an int
(B) Converts an int to a String
(C) Deletes an integer
(D) Nothing specific
15. Why are wrapper classes needed? [1]
(A) For Java collections and object-based features
(B) They are never needed
(C) Only for decoration
(D) Only for errors
16. Why learn about wrapper classes? [1]
(A) Important for working with objects and collections
(B) No reason
(C) It's not useful
(D) Only for tests