Which of the following is false about global variables in Python?

PYQ EMRS TGT/PGT (ESSE) 2023

Which of the following is false about global variables in Python?

  1. A.

    Global immutable variables require global keyword inside function.

  2. B.

    Global mutable variables do not require global keyword inside function.

  3. C.

    Global keyword is a must for the first time of assignment of a global variable.

  4. D.

    Global variables can be accessed anywhere in the program.

Attempted by 1880 students.

Sign up free to check your answer

Sign up free

Explore the full course: Emrs Cs Tier 2

Loading lesson…