ICSE Class 10 Computer Applications Question 19 of 30

Solved Sample Paper 4 — Question 19

Back to all questions
19
Question

Question 1(xix)

Assertion (A) The private access specifier achieves the lowest level of accessibility.
Reason (R) The private methods and fields can be accessed only within the same class to which the methods and fields belong.

  1. Both Assertion (A) and Reason (R) are true and Reason (R) is a correct explanation of Assertion (A).
  2. Both Assertion (A) and Reason (R) are true and Reason (R) is not a correct explanation of Assertion (A).
  3. Assertion (A) is true and Reason (R) is false.
  4. Assertion (A) is false and Reason (R) is true.
Answer

Both Assertion (A) and Reason (R) are true and Reason (R) is a correct explanation of Assertion (A).

Reason — Both Assertion (A) is true as private access specifier achieves the lowest level of accessibility and Reason (R) explains Assertion (A) correctly as a data member or member method declared as private is only accessible inside the class in which it is declared.