Which of the following will not run the loop statement an infinite number of…

PYQ EMRS TGT/PGT (ESSE) 2023

Which of the following will not run the loop statement an infinite number of times in Python?

  1. A.

    while 21 % 2:

    print("ALWAYS")

  2. B.

    while 21 // 2:

    print("ALWAYS")

  3. C.

    while True:

    print("ALWAYS")

  4. D.

    while 1 % 1:

    print("ALWAYS")

Attempted by 2737 students.

Sign up free to check your answer

Sign up free

Explore the full course: Emrs Cs Tier 2

Loading lesson…