ICSE Class 10 Computer Applications Question 18 of 30

Solved 2024 Specimen Paper ICSE Class 10 Computer Applications — Question 18

Back to all questions
18
Question

Question 1(xviii)

Read the following text, and choose the correct answer:

A class encapsulate Data Members that contains the information necessary to represent the class and Member methods that perform operations on the data member.

What does a class encapsulate?

  1. Information and operation
  2. Data members and Member methods
  3. Data members and information
  4. Member methods and operation
Answer

Data members and Member methods

Reason — A class encapsulates state and behavior by combining data and functions into a single unit. The state of an object is represented by its member variables and behaviour is represented by member methods.