CBSE Class 11 Informatics Practices Question 7 of 102

Python Programming Fundamentals — Question 7

Back to all questions
7
Question

Question 7

Assertion (A): 'Rollnumber' and 'rollnumber' are same identifiers.

Reasoning (R): Python is a case-sensitive language, i.e., it treats uppercase and lowercase letters differently.

  1. Both A and R are true and R is the correct explanation of A.
  2. Both A and R are true but R is not the correct explanation of A.
  3. A is true but R is false.
  4. A is false but R is true.
Answer

A is false but R is true.

Explanation
Python is a case-sensitive language, meaning it distinguishes between uppercase and lowercase letters. Therefore, 'Rollnumber' and 'rollnumber' are not considered the same identifiers in Python.