Practice MCQs

Filter by course context, attempt questions, and get an instant score report.

Computer Science and Entrepreneurship Python Programming Control Structures Medium

Q1. Which statement is optional in an if structure?

Computer Science and Entrepreneurship Python Programming Control Structures Medium

Q2. What will happen if a while loop condition is always true?

Computer Science and Entrepreneurship Python Programming Control Structures Medium

Q3. Which keyword is used to exit from a function or loop?

Computer Science and Entrepreneurship Python Programming Control Structures Medium

Q4. What will be the output? for i in range(3): print(i)

Computer Science and Entrepreneurship Python Programming Control Structures Medium

Q5. What is the correct syntax of a while loop?

Computer Science and Entrepreneurship Python Programming Control Structures Medium

Q6. Which loop executes at least once?

Computer Science and Entrepreneurship Python Programming Control Structures Medium

Q7. What does the continue statement do?

Computer Science and Entrepreneurship Python Programming Control Structures Medium

Q8. What does the break statement do?

Computer Science and Entrepreneurship Python Programming Control Structures Medium

Q9. Which loop is used when the number of iterations is known?

Computer Science and Entrepreneurship Python Programming Control Structures Medium

Q10. What will be the output? if 5 > 3: print('Yes')

Showing 51 to 60 of 151 results
Page 6 of 16