1) What is Python? a) A kind of snake b) A video game c) A programming language d) A robot 2) What is an algorithm? a) A secret code b) A sequence of actions to solve a task c) A drawing d) A computer virus 3) What does a program do? a) Makes music b) Draws shapes c) Runs an algorithm written in a programming language d) Builds houses 4) What does print("Hello") do in Python? a) Sends an email b) Prints paper c) Writes “Hello” on the screen d) Draws a picture 5) print(2 + 3 * 4) a) 20 b) 14 c) 24 d) 10 6) print((2 + 3 )* 4) a) 20 b) 14 c) 24 d) 10 7) What is a variable? a) It like an storage box in Python b) A secret number c) A game d) A password 8) Which is a good variable name? a) a b) number_of_students c) 3price d) print 9) What does the input() function do? a) Prints a message b) Gets information from the keyboard c) Calculates math d) Sends an SMS 10) Which functions are used to switch from one data type to another? a) input() b) str() functions are used to switch from one data type to another. c) int() d) print() 11) What is the output of this code? a) 105 b) 500 c) 100 d) 5 12) What does int("42") do? a) Turns the number into a string b) Makes a letter c) Turns the text(string) "42" into the number 42. d) Deletes the number 13) What is the output ? a) 1518 b) 43 c) 33 d) 11111 14) What is the output ? a) 10 b) 54 c) 9 d) 11 15) What is the correct way to convert user input to a number? a) str(input()) b) input() c) int(input()) d) float('input') 16) What happens if you try int('hello') in Python? a) A. It returns 0 b) B. It returns 'hello' c) C. It prints hello d) D. It gives an error 17) 3. What type of value does input() always return? a) 3. What type of value does input() always return? b) A. Integer c) B. Float d) C. String 18) print('12' + '34') a) What is the result of: print('12' + '34')? b) A. 46 c) B. 1234 d) C. 12 + 34 19) What is the result of: print(12 + int('34'))? a) A. 46 b) B. 1234 c) C. Error d) D. 12 + 34 20) Mark the programs without errors. a) b) c) both of them False 21) Choose the actions that this program performs. a) The program works with variables b) The program uses functions to input and output data c) The program prints calculation results d) The program prints text prompts for the user
0%
Introduction to Python Programming
Delen
Delen
Delen
door
Hejaclk
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?