Robotics & Artificial Intelligence

Assertion (A): Variable is a named memory location which contains a value.

Reason (R): When you create a variable, it reserves some space in the memory.

Based on the above discussion, choose an appropriate statement from the options given below:

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

Python Funda

1 Like

Answer

Both A and R are true and R is the correct explanation of A.

Reason — A variable is a named memory location which contains a value. When a variable is created, the system reserves some space in the memory to store its value, and this memory location is identified by the variable name. Hence, R correctly explains why A is true.

Answered By

2 Likes


Related Questions