ICSE Class 10 Computer Applications Question 15 of 16

Encapsulation and Inheritance — Question 5

Back to all questions
5
Question

Question 5

A member variable declared with no access specifier has visibility in ............... .

  1. Class and package only
  2. Class, package and subclass only
  3. Class and subclass only
  4. Class only
Answer

Class and package only

Reason — A member variable declared with no access specifier has visibility in the same class and other classes of the same package only.


Source: This question is from Encapsulation and Inheritance, Computer Applications — Class 10, ICSE Board.

Key Concepts Covered

This question tests your understanding of the following concepts from the chapter Encapsulation and Inheritance: Question, Member, Variable, Declared, Access, Specifier. These are fundamental topics in Computer Applications that students are expected to master as part of the ICSE Class 10 curriculum.

A thorough understanding of these concepts will help you answer similar questions confidently in your ICSE examinations. These topics are frequently tested in both objective and subjective sections of Computer Applications papers. We recommend revising the relevant section of your textbook alongside practising these solved examples to build a strong foundation.

How to Approach MCQs

Multiple choice questions test your ability to quickly recall facts and apply concepts. Read all options carefully before selecting your answer. Use the process of elimination to rule out clearly incorrect options first. If two options seem similar, look for the subtle difference that makes one more accurate. For numerical MCQs, verify your answer by substituting it back into the problem.

Key Points to Remember

  • Write programs with proper indentation and comments.
  • Trace through your code with sample inputs to verify correctness.
  • Explain the logic behind each step of your solution.
  • Familiarise yourself with common library functions and methods.

Practice more questions from Encapsulation and Inheritance — Computer Applications, Class 10 ICSE