KnowledgeBoat Logo
|

Computer Science

Assertion (A): Literals are same as identifiers.

Reasoning (R): A variable is a label for a location in memory.

  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.

Python Funda

1 Like

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.

Answered By

1 Like


Related Questions