Commands/Functions
Loops
Conditional Code
Variables
Types & Initialization
100

An example of a command in Playgrounds

What is moveForward(), turnLeft(), collectGem()?

100

The keywords used to declare both kinds of loops

What are for and while?

100

The names of each of these logical operators (&&, ||, !)

What are AND, OR, and NOT?

100

An object that has a changeable value

What is a variable?

100

An object that has a fixed (immutable) value

What is a constant?

200

A named group of commands

What is a function?

200

The number of times a for loop runs

What is the amount defined by the user?

200

The keyword used to check a single conditional statement

What is if?

200

The names of each of these symbols (+=, =, -=)

What are increment, assignment, and decrement?

200

(T/F) If elliot is of type Person(), then Person.moveForward() is correct syntax

What is False?

300

The term we use when you follow proper grammar, punctuation, and rules in coding

What is syntax?

300

The number of times a while loop will run

What is until the condition is false?

300

The purpose of the NOT operator

What is to negate a condition?

300

A variable used to keep track of the number of gems/switches

What is a counter?

300

The two main aspects that define a Type

What are properties and methods?

400

A reason why we might use a function

What is for readability, shorter code, and easier debugging?

400

The term for a block of code contained inside another block of code

What is nesting?

400

The number of conditions that can be put in a conditional statement

What is as many as are needed?

400

(T/F) We need to only need to declare a variable ONCE when using it multiple times

What is True?

400

The special character used to access the properties and methods of an object

What is the dot operator?

500

The special characters used to contain the code of a function

What are curly braces {} ?

500

The code to walk in a square (using a loop)

for i in 1...4 { moveForward() turn Left() }


500

The statement being tested to see if our code will run

What is a condition?

500

Given var x = 5, change its value 3 times using each of the assignment operators

x += value, x = value, x -= value

500

The initialization of an object named byte of type Character()

let byte = Character()

M
e
n
u