ICSE Class 10 Computer Applications Question 17 of 30

Solved Sample Paper 3 — Question 17

Back to all questions
17
Question

Question 1(xvii)

Assertion (A) Method should be called explicitly either with object reference or class reference.
Reason (R) Method can be any user defined name.

  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 not a correct explanation of Assertion (A).

Reason — Assertion (A) is true as a method should be called explicitly either with object reference or class reference. Reason (R) is also true as a method can be any user defined name, except a keyword. Reason (R) is not the correct explanation of Assertion (A).