Name one of the 2 commands you learn in the first exercise in commands.
moveForward()
Or
collectGem()
What is the structure of a for loop?
for i in 1 ... [number] {
[code]
}
What symbol is AND, NOT, and OR?
&&, !, ||
Using ______ in, learn to code, defines the function.
func
This is an error in code that prevents an application from running as expected.
A Bug
Which command originally was not introduced in commands?
turnRight()
A for loop is used to repeat a ______ of commands.
Sequence
Which operator would never run the code in the next statement?
If (isBlocked __ !isBlocked) {
Say hello
}
&&
According to functions how do you run a function.
hint: instruct a function to run
Call
The process of combining small parts of an application to solve a larger problem.
Composition
According to the commands chapter ______ is a good idea when you change your code to make sure you have located and fixed each bug.
Run your code/Running your code.
For a while loop the block of code runs if the condition is true but does what when it is false?
Breaks out or ends.
Why is:
While (true){
moveForward()
}
A problem?
Infinite loop.
Can you put a function inside a function?(2 different functions)
Yes or No.
Yes
An outline of an item, such as a gem, switch, or block, in the puzzle world. It is used to indicate the possibility that the item could randomly appear each time the puzzle is run.
Wireframe
According to learn to code 1, even if you don’t get it right, “This is your chance to ________!”
Experiment
This means to place one repeating block of code, such as a loop, inside another.
To nest or nesting loops.
What is the difference between conditional code and logical operators?
Conditional code runs based on a true or false value, and logical operators are AND NOT OR.
“Choose a path that repeats a _______ use that _______ in your function.”
Pattern
A type that has a value of either true or false. For example, 9 < 7 returns false because 9>7.
Boolean
Making _______ is one of the best ways to learn.
Mistakes
What variable type does a for loop use compared to while loop?
For loop uses Int and while loop uses Boolean.
What is the outcome of
(!(true && false) || !(true || false)) && true ?
true
The process of breaking a large problem into smaller and more manageable pieces.
Decomposition
An easy-to-read description of an algorithm, usually written using a mix of everyday language and code.
Psuedocode