Computer Science
Assertion (A): Literals are same as identifiers.
Reasoning (R): A variable is a label for a location in memory.
- Both A and R are true and R is the correct explanation of A.
- Both A and R are true but R is not the correct explanation of A.
- A is true but R is false.
- A is false but R is true.
Answer
A is false but R is true.
Explanation
Literals and identifiers are not the same. Literals are fixed numeric or non-numeric value. While identifiers are the name of any variable, constant, function or module. A variable is a label for a location in memory, which is used to store and access values.
Related Questions
Assertion (A): A set of valid characters recognized by Python constitutes a character set.
Reasoning (R): Character set in Python is a subset of Python tokens.
- Both A and R are true and R is the correct explanation of A.
- Both A and R are true but R is not the correct explanation of A.
- A is true but R is false.
- A is false but R is true.
Assertion (A): 'Rollnumber' and 'rollnumber' are same identifiers.
Reasoning (R): Python is a case-sensitive language.
- Both A and R are true and R is the correct explanation of A.
- Both A and R are true but R is not the correct explanation of A.
- A is true but R is false.
- A is false but R is true.
Write a Python command/instruction/statement to display your name.
Write a Python command to display your school name, class and section, separated by "-".