Skip to content

Computer Science · Class 11 · ISC

Encapsulation and Class as a User-Defined Type

Access specifiers, instance and class variables, the this keyword, and a class as a composite data type.

5questions

Board PYQs
0
Practice
5
Topics
0
  • Most common: 3 marks

Syllabus mapping: ISC syllabus (CISCE) (opens CISCE's website in a new tab)

5 questions

  • Practice question

    3 marks

    What is the this keyword and when is it needed?

    Encapsulation and Class as a User-Defined TypeMediumShort answer

  • Practice question

    3 marks

    Name the access specifiers of Java and state the visibility each gives.

    Encapsulation and Class as a User-Defined TypeMediumShort answer

  • Practice question

    3 marks

    Distinguish between an instance variable and a class variable.

    Encapsulation and Class as a User-Defined TypeMediumShort answer

  • Practice question

    3 marks

    Why are the data members of a class usually declared private?

    Encapsulation and Class as a User-Defined TypeMediumShort answer

  • Practice question

    3 marks

    What is the default value of an instance variable of type int, double, boolean and String in Java?

    Encapsulation and Class as a User-Defined TypeMediumShort answer