1) What keyword starts a conditional statement? a) if b) for c) while d) def 2) Which keyword is used for alternatives? a) else b) elif c) then d) end 3) What does 'elif' stand for? a) else if b) else c) if else d) end if 4) How do you end a conditional block? a) No end b) end c) stop d) finish 5) What symbol is used for equality? a) == b) = c) === d) != 6) Which operator checks inequality? a) != b) == c) <> d) <=> 7) What does 'and' do in conditions? a) Both true b) Either true c) None true d) Always false 8) What does 'or' do in conditions? a) Either true b) Both true c) None true d) Always false 9) Which is a valid condition? a) x > 5 b) x => 5 c) x >< 5 d) x <> 5 10) What is the result of 'if False:'? a) No execution b) Execute c) Error d) Loop 11) What is the result of 'if True:'? a) Execute b) No execution c) Error d) Loop 12) What is the default condition? a) else b) elif c) if d) then
0%
Conditional Statements in Python
Delen
Delen
Delen
door
Yousaf3
Inhoud Bewerken
Afdrukken
Embedden
Meer
Toewijzingen
Scorebord
Meer weergeven
Minder weergeven
Dit scoreboard is momenteel privé. Klik op
Delen
om het publiek te maken.
Dit scoreboard is uitgeschakeld door de eigenaar.
Dit scoreboard is uitgeschakeld omdat uw opties anders zijn dan die van de eigenaar.
Opties Herstellen
Quiz
is een open template. Het genereert geen scores voor een scoreboard.
Inloggen vereist
Visuele stijl
Lettertypen
Abonnement vereist
Opties
Template wisselen
Alles weergeven
Er zullen meer templates verschijnen terwijl je de activiteit gebruikt.
Open resultaten
Kopieer link
QR-code
Verwijderen
Automatisch opgeslagen activiteit "
" herstellen?