English

Assertion (A): In java statements written in lower case letter or upper case letter are treated as the same. Reason (R): Java is a case sensitive language.

Advertisements
Advertisements

Question

Assertion (A): In java statements written in lower case letter or upper case letter are treated as the same.

Reason (R): Java is a case sensitive language.

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

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

Explanation:

  • Java is a case-sensitive language, so uppercase and lowercase letters are treated differently.
  • For example, Name and name are considered two different identifiers. Therefore, the assertion is false, while the reason is true.
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. (xxxiii) | Page 44
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×