What is a “program”?
A set of instructions a computer follows.
What does a loop do?
Repeats a set of instructions.
What does “if” do in coding?
Checks if something is true before running code.
What is a variable?
A place to store information.
Who is known as the first computer programmer?
Ada Lovelace.
What is a “bug”?
A mistake in the code.
What kind of loop runs a set number of times?
A “for” loop.
What does “else” mean?
It runs when the “if” condition isn’t true.
Give an example of a variable.
var Score = 10
What does a robot need to follow commands?
A program.
What does it mean to “debug”?
To find and fix errors in your code.
What kind of loop runs until something happens?
A “while” loop.
What’s an example of a condition?
“If the score > 10” or “if button is pressed”.
What happens when you change a variable’s value?
The stored information changes.
What is “Swift Playground”?
Swift Playgrounds is a free app from Apple for iPad and Mac that teaches you how to code using the Swift programming language through interactive lessons and puzzles.
What is an “algorithm”?
A list of steps to solve a problem.
What happens if you forget to stop a loop?
It becomes an infinite loop!
What does “if…else if…else” mean?
It checks multiple possibilities in order.
What type of info can a variable hold?
Numbers, text, or other data.
What is the main goal of coding?
To make computers do tasks or solve problems.
What is “syntax”?
The rules for how code must be written.
Why do programmers use loops?
To save time and avoid repeating code.
Why do we use conditionals?
To make programs make decisions.
Why are variables important?
They let programs remember and use information.
What language do websites use for structure?
HTML.