1) 1. Which of the following is the correct syntax for an if statement in Python? a) A. if (x > 10) then: b) B. if x > 10: c) C. if x > 10 then: d) D. if x > 10 {} 2) Which keyword is used to execute a block of code repeatedly in Python? a) A. repeat b) B. loop c) C. while d) D. iterate 3) Which of the following loop stops only when a condition becomes False? a) for loop b) B. while loop c) C. do-while loop d) D. repeat-until loop e) Answer: B 4) What is the purpose of the break statement in loops? a) Skip one iteration b) B. Exit the loop completely 5) What does the continue statement do in a loop? a) Exits the loop completely b) B. Skips the current iteration and moves to the next

લીડરબોર્ડ

દૃશ્યમાન શૈલી

વિકલ્પો

ટેમ્પલેટ બદલો

આપોઆપ સંગ્રહ થયેલ છે: ?