Font size
WorksheetsTuringLab Farmbot
Total questions: 24
Worksheet time: 16mins
What is a command?
"An instruction put in between quote marks"
An instruction that tells the computer to perform a certain action.
An instruction put in CAPITAL LETTERS
An instruction that is repeated at least once
What is a computer program?
A computer that has learned to program
A text document written by a computer
A television program on a computer
A set of instructions that tell the computer what to do
Which two of these are function calls?
prepare_soil
move_forward()
"tomato"
prepare_soil()
What is a function?
A function is a command that performs a specific action when called
Functions are words that always have brackets after them
Functions are commands that have quotes around them and can be put between brackets
Functions are commands that allow you to convert your code from one language to another
Which function call moves the Farmbot forward?
move_forward()
move_forward
Move_Forward()
moveForward()
What is an algorithm?
A set of instructions that are to be repeated more than once
A set of commands used to perform a particular task
Any computer program
A command created by Mr. Algo Rhythm
Which two of the following are strings?
tomato
'A very large pumpkin'
pumpkins and aubergines
"tomato"
Which of these is a function call?
plant
plant("tomato")
move_forward()
"tomato"
Select the two function calls
move_forward
move_forward()
turn("left")
"left"
Identify which lines of code the strings appear on
2, 3
1, 2
2, 4
1, 3
Select the code that will prepare soil and then plant a tomato
Which of these is an argument in the code shown?
plant()
move_forward()
"tomato"
plant("tomato")
Where is Farmbot going to be after running the code?
Identify the two functions written in snake case
returnHome()
prepare_soil()
turn("right")
move_forward()
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
Select the two ways of adding a comments in Python
// Move into position
## Harvest a row
/* Plant a row */
# Move into position
Which two students have commented their code effectively?
Which two of these functions have been written using snake case?
plant()
turn()
prepare_soil()
move_forward()
Which of the following is NOT a common error message when writing Python code?
Name Error
Syntax Error
Indentation Error
Spelling Error
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
Which of the following is the correct way of writing a FOR loop?
Which three of the following describe the benefits of using a FOR loop in your code?
It helps create more readable and maintainable code
It stores useful information for later retrieval
It helps select which path to take in the code
It helps by reducing repetition in a programmers code
It helps create clear and concise code
