Which of the following loop types executes at least once, irrespective of the test condition?
- do-while loop
- for loop
- until loop
- while loop
A do-while loop in Python executes at least once, irrespective of the test condition, as the condition is checked after the loop body.
Loading...
Related Quiz
- You need to use a data structure as keys for a dictionary, and it must hold multiple items. Which one would you choose between lists and tuples?
- In Matplotlib, the ____ method is used to create a new figure object.
- Which of the following is not a Python standard library?
- How can you handle an exception for an error caused by dividing by zero in Python?
- How would you optimize the performance of a deep learning model in TensorFlow or PyTorch during the inference stage?