Important Python Mcqs

Which of the following is false regarding loops in Python?

a) for loop can be used to iterate through the elements of lists.
b) Loops are used to perform certain tasks repeatedly.
c) While loop is used when multiple statements are to executed repeatedly until the given condition becomes True.
d) While loop is used when multiple statements are to executed repeatedly until the given condition becomes False

Answer:

d) While loop is used when multiple statements are to executed repeatedly until the given condition becomes False

Related MCQs

multiple inheritance means?

a. one class inheriting from more superclasses b. more classes inheriting from more superclasses c. more classes inheriting from one superclass d. None of the

Aniket Malik

Aniket Malik

CERTIFIED TUTOR/TRAINER WITH 300+ REVIEWS

Facing difficulty with

this concept?