Python Programming MCQs
1 practice MCQs on this page Page 3 of 3
Tap an option to check your answer — the correct answer and full explanation appear after you choose.
ProgrammingPython Programming BPSCID: BPP-4043
In Python, which keyword is used to repeat a block of code while a condition is true?
- Awhile ✓ Correct answer
- Bfor
- Cif
- Ddef
✓ Correct answer: while
Full explanation
The while keyword repeats a block of code as long as its condition is true.
Practice these MCQs interactively
← Programming MCQs