What should you do if Byte doesn’t move as expected?
Check the code for mistakes.
What command makes Byte move forward one Step?
moveForward().
What app do we use to learn coding?
Swift Playgrounds
What is a bug in coding?
A mistake or error in the code.
What is a function?
A group of commands you can use again.
What is the process of finding and fixing errors in your code called?
Debugging.
What command makes Byte turn left?
turnLeft().
What is the name of the character in Swift Playgrounds?
Byte
What do we call a step-by-step instruction in coding?
An algorithm
Why do we use functions?
To make coding easier and faster.
What should you always do after writing your code?
Test it by running it.
What command should you use to pick up a gem?
collectGem().
What is coding?
Giving instructions to a computer.
What is the part of the code that repeats itself?
A loop.
How do you use a function in Swift Playgrounds?
By typing its name and running the code.
If Byte keeps running into a wall, what should you check?
The direction and sequence of the commands.
What command makes Byte turn right?
turnRight().
What happens when you press “Run My Code”
The code is executed, and the character follows the instructions.
What is another name for an action you can tell Byte to do, like “move forward”?
A command.
What happens if you forget to call a function?
Byte won’t follow the instructions.
What does the red dot mean?
Something is wrong in the code.
toggleSwitch().
Name one thing Byte can collect in Swift Playgrounds.
Gems
What do we call the colored blocks or tiles in Swift Playgrounds?
Portals or blocks.
You can’t make your own commands/functions.
True or False
False