Debugging Detective
Name That Command
Swift Basics
Coding Terms
Fun with Functions
100

What should you do if Byte doesn’t move as expected?

Check the code for mistakes.

100

What command makes Byte move forward one Step?

moveForward().

100

What app do we use to learn coding?

Swift Playgrounds

100

What is a bug in coding?

A mistake or error in the code.

100

What is a function?

A group of commands you can use again.

200

What is the process of finding and fixing errors in your code called?

Debugging.

200

What command makes Byte turn left?

turnLeft().

200

What is the name of the character in Swift Playgrounds?

Byte

200

What do we call a step-by-step instruction in coding?

An algorithm

200

Why do we use functions? 

To make coding easier and faster.

300

What should you always do after writing your code?

Test it by running it.

300

What command should you use to pick up a gem?

collectGem().

300

What is coding?

Giving instructions to a computer.

300

What is the part of the code that repeats itself?

A loop.

300

How do you use a function in Swift Playgrounds?

By typing its name and running the code.

400

If Byte keeps running into a wall, what should you check?

The direction and sequence of the commands.

400

What command makes Byte turn right?

turnRight().

400

What happens when you press “Run My Code”

The code is executed, and the character follows the instructions.

400

What is another name for an action you can tell Byte to do, like “move forward”?

A command.

400

What happens if you forget to call a function?

Byte won’t follow the instructions.

500

What does the red dot mean?

Something is wrong in the code.

500
What command makes Byte toggle a switch?

toggleSwitch().

500

Name one thing Byte can collect in Swift Playgrounds.

Gems

500

What do we call the colored blocks or tiles in Swift Playgrounds?

Portals or blocks.

500

You can’t make your own commands/functions. 

True or False

False