WorksheetsFarmbot (2. Planting the farm & Debugging)
Total questions: 10
Worksheet time: 6mins
Which two of the following are strings?
tomato
'A very large pumpkin'
pumpkins and aubergines
"tomato"
Identify which lines of code the strings appear on
Lines 2 and 3
Lines 1 and 2
Lines 2 and 4
Lines 1 and 3
What is programming syntax?
A set of rules that define the correct combination of symbols and characters in a programming language
A set of rules that determine how much tax you pay when selling a program
The process used to sync 2 computers running the same program
The amount of effort it takes to write a malicious program
In (a) each subsequent starts with a capital letter. e.g. moveForward
In (b) words are separated by an underscore. e.g. move_forward
In Snake case there (a) spaces between words and we (b) use capital letters at the start of words
Which 2 of these are examples of Snake case functions?
move_forward()
returnHome()
prepare_soil()
turn("right")
What is debugging?
The process of finding bugs in your code
The process of writing bugs into your code
A mistake in your code
The process of finding and removing bugs from your code
Identify the bug in the code shown
Indentation error - caused by incorrect spelling
Name Error - caused by incorrect spelling
Syntax Error - caused by incorrect brackets
Symtax Error - caused by incorrect quote marks
Identify the bug in the code shown
Indentation error - caused by incorrect spelling
Name Error - caused by incorrect spelling
Syntax Error - caused by incorrect brackets
Symtax Error - caused by incorrect quote marks
Identify the bug in the code shown
Indentation error - caused by incorrect spelling
Name Error - caused by incorrect spelling
Syntax Error - caused by incorrect brackets
Symtax Error - caused by incorrect quote marks
