Which of the following is NOT a valid loop in Python?
A. while loop
B. until loop
C. for loop
D. do-while loop
Answer: Option B
Solution (By Examveda Team)
In Python, until loop is not a valid loop construct.Python does not have an "until" loop construct like some other programming languages such as Ruby or Perl. Instead, Python provides the while loop for executing a block of code repeatedly as long as a condition is true, and the for loop for iterating over a sequence of elements. Additionally, Python does not have a built-in "do-while" loop construct like some other languages, but similar behavior can be achieved using the while loop in combination with a pre-test.
Related Questions on Introduction to Python
What is Python primarily used for?
A. Web browsing
B. Data analysis
C. Video editing
D. Game development
Who developed Python Programming Language?
A. Wick van Rossum
B. Rasmus Lerdorf
C. Guido van Rossum
D. Niene Stom
Which of the following is an advantage of Python?
A. It compiles to machine code
B. It enforces strict typing
C. It has a large standard library
D. It requires extensive memory management
What is the role of the Python interpreter?
A. To convert Python code to assembly language
B. To manage memory allocation
C. To execute Python code line by line
D. To compile Python code into bytecode

Join The Discussion