Question 62Asked in DSSSB PGT Computer Science (Technical), 11 Jul 2021

Which statement(s) is/are NOT true about the variables in Python Language:

Which statement(s) is/are NOT true about the variables in Python Language: I. Values of every variable can be changed once a variable has been created and assigned value. II. Assignment statement is used to create a new variable and assign value.
  1. AOnly I
  2. BOnly II
  3. CBoth I and II
  4. DNeither I nor II
Show answerHide answer

Correct answer: (A) Only I

Explanation

Statement II is true: assignment creates a variable and binds a value. Statement I is treated as not true because a variable can only be rebound; values of immutable objects such as strings and tuples cannot be changed in place.

From DSSSB PGT Computer Science PYQ (Technical), 11 Jul 2021

This is question 62 of DSSSB PGT Computer Science PYQ (Technical), 11 Jul 2021. See all questions of this paper with answers, or attempt the paper as a timed online test to get your score and all-India rank.