Quiz Stack
  • About
  • Basics
  • Input & Output
  • Operators
  • Operators II
  • Strings
  • Lists
  • Tuples
  • Sets
  • Dictionaries
  • Control Flow
  • Functions
  • Functions II
  • Modules & Packages
  • Error Handling
  • Object-Oriented Programming (OOP)
  • Object-Oriented Programming (OOP) II
  • Advanced Data Handling
  • Advanced Data Handling II
  • File Handling
  • Pythonic Features
  • Modules & Libraries
  • Modules & Libraries II
  • Concurrency & Performance
  • Advanced Topics
  • Advanced Topics II
Quiz Stack

© 2026 Quiz. All Rights Reserved.

  • Terms and condition
  • Privacy Policy
  • Contact Page

Ready to Level Up?

Test your knowledge on Python Control Flow Quiz (If-Else, Loops, Break/Continue, List Comprehensions) for Interview Prep. This quiz contains 10 questions.

Level: Beginner
Topic: control-flow

What's the output?

What is printed by the following code? ```python x = 3 if x > 5: print("A") else: print("B") ```
Question 01 / 10