ICSE Class 10 Computer Applications Question 17 of 30

Solved Sample Paper 4 — Question 17

Back to all questions
17
Question

Question 1(xvii)

Assertion (A) Line comment is used for a single line of comment.
Reason (R) A line comment starts with forward slash and asterisk(/*).

  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

Assertion (A) is true and Reason (R) is false.

Reason — Assertion (A) is true as a line comment is used for a single line of comment. Reason (R) is false as a line comment starts with two forward slashes (//).