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 function is used to change the data type of a variable to a whole number? a) str b) int c) boo d) float 5) What is a variable? a) A data type b) A storage location c) A function d) A loop 6) What is 'int' used for? a) Text data b) Whole numbers c) Decimals d) Booleans 7) What does 'print()' do? a) Stores data b) Displays output c) Defines a loop d) Ends a function

7.5.2 Programming with Python KR

Scorebord

Visuele stijl

Opties

Template wisselen

Automatisch opgeslagen activiteit "" herstellen?