1) What is wrong with this line of code after the . Print ('My name is Fred') a) The wrong type of speech marks b) Doesn't need brackets c) Capital letter for P in Print 2) A variable is a a) memory location that can store a value that can be changed during the running of the program b) a value that can go up or down c) Can only be whole numbers or decimals 3) If you miss a bracket out of a simple print statement, the type of error message is a) name error b) syntax error c) syntax error unterminated string literal 4) If you spell input wrong and put imput, what error do you think will occur a) name error b) syntax error c) syntax error unterminated string literal 5) When you fix errors you are __________ your program a) debunking b) debussing c) debugging 6) A comment symbol in python code is a a) / b) | c) # 7) There are 2 modes for python programming. They are a) editor and runtime b) white mode and black mode c) IDE and DLE 8) There is an error in the code after the . name = input('what is your name?') print ('My name is ' +name') a) should be input = name b) put a comma after the 2nd bracket c) take out the last speech mark 9) One rule for naming variables is it must start with a capital letter a) True b) False 10) If you needed to create a variable for price of a sandwich e.g. £1.50 then you would need to use this datatype a) integer b) real c) boolean
0%
Year 9 CS Lesson 1 Python Review
共用
共用
共用
由
Sburchell
Y9
Computing
編輯內容
列印
嵌入
更多
作業
排行榜
顯示更多
顯示更少
此排行榜當前是私有的。單擊
共用
使其公開。
資源擁有者已禁用此排行榜。
此排行榜被禁用,因為您的選項與資源擁有者不同。
還原選項
測驗
是一個開放式範本。它不會為排行榜生成分數。
需要登錄
視覺風格
字體
需要訂閱
選項
切換範本
顯示所有
播放活動時將顯示更多格式。
打開結果
複製連結
QR 代碼
刪除
恢復自動保存:
?