Start learning →

ICSE Class 10 Classes, Encapsulation and Scope — practice questions — page 2

Explore 144 free Classes, Encapsulation and Scope questions in ICSE Class 10 Computer Applications. Open each question or exercise to read its content, reference answers and available explanation.

Practise Classes, Encapsulation and Scope with Quill →

Classes, Encapsulation and Scope questions and exercises with answers

Showing questions 31–60 of 144.

What collective term encompasses both class and instance variables?Read the answer and worked solution →What kinds of variables is a class method restricted to using?Read the answer and worked solution →What term describes keeping related data fields and methods together?Read the answer and worked solution →What practice keeps the internal details of an object hidden from outside?Read the answer and worked solution →Which access specifier restricts access exclusively to its own class?Read the answer and worked solution →Which access specifier allows any code to access a class member by name?Read the answer and worked solution →Which modifier allows access to the class itself and all its subclasses?Read the answer and worked solution →By what process is an individual object constructed from a class?Read the answer and worked solution →What is provided to consuming code after an object is allocated memory?Read the answer and worked solution →What language construct defines the actions or behavior of a class?Read the answer and worked solution →What class elements syntactically describe state variables in a program?Read the answer and worked solution →What term identifies a class that can be directly instantiated?Read the answer and worked solution →What kind of class cannot be directly instantiated to create objects?Read the answer and worked solution →What restriction is placed on a class declared with the final keyword?Read the answer and worked solution →Which phrase describes a compositional relationship between classes?Read the answer and worked solution →What relationship connects a derived child class to its superclass?Read the answer and worked solution →Which special keyword in Java refers to the current object itself?Read the answer and worked solution →What kind of object does not change its state at all after creation?Read the answer and worked solution →What does encapsulation bundle together with data in software systems?Read the answer and worked solution →What internal aspect of an object is hidden by encapsulation?Read the answer and worked solution →Encapsulation provides an interface independent of what aspect?Read the answer and worked solution →Which architectural benefit is directly encouraged by encapsulation?Read the answer and worked solution →Which core language construct supports encapsulation in most OOP languages?Read the answer and worked solution →Why can inheritance break encapsulation according to design principles?Read the answer and worked solution →Under information hiding, what directly manipulates an object's fields?Read the answer and worked solution →How does hiding an object's internal representation protect its integrity?Read the answer and worked solution →How does encapsulation increase robustness according to software theory?Read the answer and worked solution →Which pair of keywords typically controls visibility in Java and C++?Read the answer and worked solution →What property do access specifiers primarily set for class members?Read the answer and worked solution →Which OOP mechanism is facilitated by access modifier syntax?Read the answer and worked solution →

Worked practice questions

What collective term encompasses both class and instance variables?

  1. Local variables
  2. Stack variables
  3. Input variables
  4. Member variables
Show answer and solution

Correct answer: D. Member variables

Member variables refer to both the class variables and instance variables.

Open this question →

What kinds of variables is a class method restricted to using?

  1. Instance variables only
  2. Volatile variables only
  3. Class variables only
  4. Transient variables only
Show answer and solution

Correct answer: C. Class variables only

A class method can only use class variables belonging to the class itself.

Open this question →

What term describes keeping related data fields and methods together?

  1. Loose coupling
  2. Type casting
  3. Data cohesion
  4. Code inlining
Show answer and solution

Correct answer: C. Data cohesion

Cohesion refers to keeping related fields and methods organized together.

Open this question →

How to practise

  1. Choose a Classes, Encapsulation and Scope question and try to work out your answer.
  2. Open the question to check the correct answer and read its worked solution.
  3. Continue in the app for bite-sized lessons, explanations and review with Quill. You can start without creating an account.

Put it into practice

Continue with Classes, Encapsulation and Scope practice for ICSE Class 10. Read explanations as you go. No signup form needed to start.

Practise Classes, Encapsulation and Scope →

More Computer Applications topics