1) What is "Sequential Programming"? a) Executed in order b) Random order c) Only print() d) No user input 2) In computer programming, a "Statement" is defined as: a) Long paragraph b) A type of error c) Smallest standalone unit d) A comment 3) Which keyword is used in Python to start a Conditional Statement? a) condition b) check c) when d) if 4) A "Logic Test" (Boolean expression) results in: a) Error message b) True or False c) List of names d) Random number 5) In Python, what must follow the boolean expression in an if statement? a) : b) ! c) . d) ; 6) What is the purpose of the else statement in an if...else structure? a) Run if True b) Repeat forever c) Run if False d) Stop program 7) In a flowchart, which shape represents a decision (Logic Test)? a) Circle b) Rectangle c) Triangle d) Diamond

Sequential Programming and Conditionals (Python)

Bestenliste

Visueller Stil

Einstellungen

KI-Verbessert: Diese Aktivität enthält Inhalte, die von KI generiert werden. Weitere Informationen.

Vorlage ändern

Soll die automatisch gespeicherte Aktivität wiederhergestellt werden?