Wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

Farmbot (2. Planting the farm & Debugging)

Total questions: 10

Worksheet time: 6mins

Name
Class
Date
1.

Which two of the following are strings?

a)

tomato

b)

'A very large pumpkin'

c)

pumpkins and aubergines

d)

"tomato"

2.

Identify which lines of code the strings appear on

a)

Lines 2 and 3

b)

Lines 1 and 2

c)

Lines 2 and 4

d)

Lines 1 and 3

3.

What is programming syntax?

a)

A set of rules that define the correct combination of symbols and characters in a programming language

b)

A set of rules that determine how much tax you pay when selling a program

c)

The process used to sync 2 computers running the same program

d)

The amount of effort it takes to write a malicious program

4.

In​ (a)   each subsequent starts with a capital letter. e.g. moveForward

In​ (b)   words are separated by an underscore. e.g. move_forward

Choose from the below words
Camel case
Snake case
Alligator case
Python case
Frog case
5.

In Snake case there ​ (a)   spaces between words and we ​ (b)   use capital letters at the start of words

Choose from the below words
do not
do
are no
are
6.

Which 2 of these are examples of Snake case functions?

a)

move_forward()

b)

returnHome()

c)

prepare_soil()

d)

turn("right")

7.

What is debugging?

a)

The process of finding bugs in your code

b)

The process of writing bugs into your code

c)

A mistake in your code

d)

The process of finding and removing bugs from your code

8.

Identify the bug in the code shown

a)

Indentation error - caused by incorrect spelling

b)

Name Error - caused by incorrect spelling

c)

Syntax Error - caused by incorrect brackets

d)

Symtax Error - caused by incorrect quote marks

9.

Identify the bug in the code shown

a)

Indentation error - caused by incorrect spelling

b)

Name Error - caused by incorrect spelling

c)

Syntax Error - caused by incorrect brackets

d)

Symtax Error - caused by incorrect quote marks

10.

Identify the bug in the code shown

a)

Indentation error - caused by incorrect spelling

b)

Name Error - caused by incorrect spelling

c)

Syntax Error - caused by incorrect brackets

d)

Symtax Error - caused by incorrect quote marks