An example of a command in Playgrounds
What is moveForward(), turnLeft(), collectGem()?
The keywords used to declare both kinds of loops
What are for and while?
The names of each of these logical operators (&&, ||, !)
What are AND, OR, and NOT?
An object that has a changeable value
What is a variable?
An object that has a fixed (immutable) value
What is a constant?
A named group of commands
What is a function?
The number of times a for loop runs
What is the amount defined by the user?
The keyword used to check a single conditional statement
What is if?
The names of each of these symbols (+=, =, -=)
What are increment, assignment, and decrement?
(T/F) If elliot is of type Person(), then Person.moveForward() is correct syntax
What is False?
The term we use when you follow proper grammar, punctuation, and rules in coding
What is syntax?
The number of times a while loop will run
What is until the condition is false?
The purpose of the NOT operator
What is to negate a condition?
A variable used to keep track of the number of gems/switches
What is a counter?
The two main aspects that define a Type
What are properties and methods?
A reason why we might use a function
What is for readability, shorter code, and easier debugging?
The term for a block of code contained inside another block of code
What is nesting?
The number of conditions that can be put in a conditional statement
What is as many as are needed?
(T/F) We need to only need to declare a variable ONCE when using it multiple times
What is True?
The special character used to access the properties and methods of an object
What is the dot operator?
The special characters used to contain the code of a function
What are curly braces {} ?
The code to walk in a square (using a loop)
for i in 1...4 { moveForward() turn Left() }
The statement being tested to see if our code will run
What is a condition?
Given var x = 5, change its value 3 times using each of the assignment operators
x += value, x = value, x -= value
The initialization of an object named byte of type Character()
let byte = Character()