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

Year 9 CS Lesson 1 Python Review

Tulostaulu

Visuaalinen tyyli

Vaihtoehdot

Vaihda mallia

Säilytetäänkö automaattisesti tallennettu tehtävä ?