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
共享
共享
共享
由
Mmt4
KS3
Computing
编辑内容
打印
嵌入
更多
作业
排行榜
显示更多
显示更少
此排行榜当前是私人享有。单击
,共享
使其公开。
资源所有者已禁用此排行榜。
此排行榜被禁用,因为您的选择与资源所有者不同。
还原选项
迷宫追逐
是一个开放式模板。它不会为排行榜生成分数。
需要登录
视觉风格
字体
需要订阅
选项
AI增强版:本活动包含AI生成的内容。
了解更多信息。
切换模板
显示所有
播放活动时将显示更多格式。
打开成绩
复制链接
QR 代码
删除
恢复自动保存:
?