Question Paper
Class / Subject: Class 10 (ICSE) · Computer Applications
Chapter: Chapter 7 — Chapter 7: Encapsulation and Inheritance
Time Allowed: 32 minutes
Max Marks: 16
1. What is encapsulation? [1]
(A) Keeping data private within a class
(B) Making all data public
(C) Deleting class variables
(D) Nothing specific
2. What provides access to private variables? [1]
(A) Public getters and setters
(B) Nothing provides access
(C) Only public variables directly
(D) Deleting the variables
3. What is inheritance? [1]
(A) A subclass inheriting from a superclass
(B) Deleting a class
(C) Creating unrelated classes
(D) Nothing specific
4. What keyword establishes inheritance in Java? [1]
(A) extends
(B) inherits
(C) class
(D) new
5. What is a subclass? [1]
(A) The child class inheriting properties
(B) The parent class
(C) An unrelated class
(D) A type of variable
6. What is a superclass? [1]
(A) The parent class being inherited from
(B) The child class
(C) An unrelated class
(D) A type of variable
7. What does inheritance promote? [1]
(A) Code reuse
(B) Code duplication
(C) Deleting code
(D) Nothing useful
8. Why learn encapsulation and inheritance? [1]
(A) Key OOP principles for organised, secure code
(B) No reason
(C) It's not useful
(D) Only for tests
9. What is encapsulation? [1]
(A) Keeping data private within a class
(B) Making all data public
(C) Deleting class variables
(D) Nothing specific
10. What provides access to private variables? [1]
(A) Public getters and setters
(B) Nothing provides access
(C) Only public variables directly
(D) Deleting the variables
11. What is inheritance? [1]
(A) A subclass inheriting from a superclass
(B) Deleting a class
(C) Creating unrelated classes
(D) Nothing specific
12. What keyword establishes inheritance in Java? [1]
(A) extends
(B) inherits
(C) class
(D) new
13. What is a subclass? [1]
(A) The child class inheriting properties
(B) The parent class
(C) An unrelated class
(D) A type of variable
14. What is a superclass? [1]
(A) The parent class being inherited from
(B) The child class
(C) An unrelated class
(D) A type of variable
15. What does inheritance promote? [1]
(A) Code reuse
(B) Code duplication
(C) Deleting code
(D) Nothing useful
16. Why learn encapsulation and inheritance? [1]
(A) Key OOP principles for organised, secure code
(B) No reason
(C) It's not useful
(D) Only for tests