1) What type of loop is a while loop? a) Condition controlled b) Count controlled 2) What is the value of x? a) 101 b) 99 c) 100 d) None of the above, it's an infinite loop 3) What is the output of this if statement? a) True b) False 4) In programming, what is iteration? a) The repetition of steps within a program b) A decision point in a program c) The order in which instructions are carried out d) Testing a program to make sure it works 5) Which two statements are used to implement iteration? a) IF and WHILE b) FOR and WHILE c) ELSE and WHILE d) IF and ELSE 6) Which of the following symbols is used in Python to mean "Not equal to"? a) == b) <> c) != d) >< 7) To repeat a fixed number of times use a a) while loop b) for loop 8) To repeat until a particular condition is true use a) while loop b) for loop 9) The character that must be at the end of the line for if, while, for is... a) : b) . c) ; d) , 10) Data type that can only be true or false a) int b) bool c) string d) float
0%
Python Quiz 2
Delen
Delen
Delen
door
Karenahmed81
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?