1) What is a function in Python? a) A block of code that performs a specific task e.g. print, input etc. b) A block of code that makes decisions. c) A piece of code used for repitition. d) Code that calculates values. 2) What function is used in Python to get the user to enter information? a) print b) int c) input d) call 3) What function is used in Python to output information? a) print b) int c) input d) call 4) what is meant by the term 'casting'? a) Naming a variable. b) To calculate values. c) Giving a value to a variable. d) To change the data type of a variable. 5) What function is used to change the data type of a variable to a whole number? a) str b) int c) boo d) float 6) What is a variable? a) A data type b) A storage location c) A function d) A loop 7) Which is a data type? a) Integer b) Variable c) Loop d) Function 8) What is a string? a) A number b) Text data c) A loop d) A function 9) What is 'int' used for? a) Text data b) Whole numbers c) Decimals d) Booleans 10) Which is a boolean value? a) True b) String c) Integer d) Float 11) What does 'print()' do? a) Stores data b) Displays output c) Defines a loop d) Ends a function
0%
9.5.2 Programming with Python KR
Delen
Delen
Delen
door
Mmt4
KS3
Computing
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
Labyrint
is een open template. Het genereert geen scores voor een scoreboard.
Inloggen vereist
Visuele stijl
Lettertypen
Abonnement vereist
Opties
AI Enhanced: Deze activiteit bevat content die door AI wordt gegenereerd.
Meer informatie.
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?