English

Assertion (A): Use of escape sequence becomes necessary in programs at a certain point in time. Reason (R): Certain non-graphic characters cannot be typed directly through the keyboard.

Advertisements
Advertisements

Question

Assertion (A): Use of escape sequence becomes necessary in programs at a certain point in time.

Reason (R): Certain non-graphic characters cannot be typed directly through the keyboard.

Options

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

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

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

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

MCQ
Assertion and Reasoning
Advertisements

Solution

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

Explanation:
Escape sequences are used to represent special or non-graphic characters (such as \n for a new line and \t for a tab) that cannot be typed directly from the keyboard.

Therefore, the reason correctly explains why escape sequences are needed.

shaalaa.com
  Is there an error in this question or solution?
Chapter 1: Revision of Class 9 Syllabus - Exercises [Page 44]

APPEARS IN

Rupa Pandit Computer Applications [English] Class 10 ICSE
Chapter 1 Revision of Class 9 Syllabus
Exercises | Q 1. (xxxiv) | Page 44
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×