Functions/Conditionals
Loops
Operators
Variables/Initialization
Types
100

What word does our conditions begin with?

is

100

What loop do we use when the puzzle randomizes the number of spaces?

While loop

100

What is this the name of operator " = "?

Assignment Operator

100

How do we define a variable and a constant?

var 

let

100

How do we turn off a blue portal using correct syntax?

bluePortal.isActive = false

200

What is the term that a loop inside a function called?

Nesting

200

Using proper syntax create a loop that repeats moveForward() 20 times.

for i in 1...20 {

moveForward()
}

200

What are the 3 logical operators?

&& - AND

|| - OR

! - NOT

200

How do we initialize "expert"?

let expert = Expert()

200

What is the proper syntax to turn a lock up?

expert.turnLockUp()

300

What are the terms for creating a function and using it?

Define
Call

300

What is the correct syntax for For Loops?

for i in 1... # { ... }

300

What operator can we not use in our conditional statements and/or while loops?

Assignment Operator - " = "
(We can use all of these: <, <=, >, >=, ==, !=, !, ||, &&)

300

How do we initialize Byte?

let character = Character()

300

What is the difference between "Methods" & "Properties"?

Property = variable defined inside of a Type, value than can be manipulated using an instance.

Method = Actions that an item does. You can create or define methods and then call on them.

400

What happens if my if conditions and my else if conditions are false?

Nothing; moves on to the next lines of code

400

What is the correct syntax for a While Loop?

while condition { ... }

400

What operator are we using here: " age += 11"

Compound assignment operator

400

We initialized a variable "age". How do we assign an integer of "55" the variable? (You can say "equals")

age = 55

400

Give me an example of a property AND an example of a method using "expert"

expert.moveForward()

expert.gemsCollected = 4

500

Provide the proper syntax for the following conditional: if I am on a gem, I will collect it, else if I am on a off switch, I will turn on the switch

if isOnGem {
  collectGem()

} else if isOnClosedSwitch {

toggleSwitch()
}

500

What is the difference between a For Loop and a While Loop?

A for loop is for a certain number of times
While Loop is for when we don't know the number of times to repeat/loops with a condition

500

What are the following operators in this order:

<,  <=,  >,  >=, ==, !=

Less than, Less than or equal to, Greater than, Greater than or equal to, Equals to, Not equal to

500

What is the difference between a variable and a constant?

Variables values can be changed
Constant values CANNOT be changed

500

What are the 4 components of a Type?

Dot Notation, Methods, Instance, & Property