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 代碼
刪除
恢復自動保存:
?