20 questions
What keyword could you use to make a circle?
rect
arc
triangle
ellipse
Which keyword changes the colour inside a shape?
stroke
colour
fill
color
True or False: noStroke removes the colour from inside of a shape
True
False
Which keyword could NOT be used to create a rectangle?
beginShape
rect
quad
square
True or False: Bezier can be used to create a curved line.
True
False
True or False: Modes help change which corner a shape is drawn from. (rectMode, ellipseMode)
True
False
What is the best way to describe a variable in coding?
Names used to hold one value
Devices that hold things in math
Objects that take in parameters
Something that will vary
Why are variables important?
They let you multiply values
They act as operators
You can store information and use it later in your project
They are not useful and are more confusing when they are in your code.
What is a variable in this code?
for (var i = 0; i < 10; i++) {
pushMatrix();
translate(tick, 0);
popMatrix();
}
pushMatrix
numPlanets
for
tick
True or False: Variables can hold text
True
False
True or False: Regular variables can hold 2+ pieces of data.
e.g. var cat = 2, 10;
True
False
True or False: The answers to this question are the only values that can be stored in a boolean variable
True
False
Which of these are methods you can use to find out information you don't know?
Hatch Reference Manual
Using Google
Using a coding website like processing.org or Stack overflow
Asking your coach for help
What does prompt do?
Asks the user for a question
Asks the user a question and allows them to input an answer
Prompts them to finish their work
Deletes old values
How do you look something up on a search engine?
Type your ideas onto a word document
Type keywords or a question into google or another search engine
Type keywords onto a social media post
Write a message to your coach and ask them to do it
Which of the following is FALSE about commenting?
Commenting makes your code more readable
Use // to comment in JS
Use # to comment in Python
Adding comments will make your code slower
Which of the following is NOT a conditional?
If
Else If
Else
For
Switch
From the list below, what is the most accurate way to describe how a conditional works?
A condition is checked to be true or false, code runs based on the result
Code inside curly brackets runs when something is true.
Code inside curly brackets runs when something is false
A result is checked to be true or false, code will not run if it is true
True or False: In an If statement, if the condition is a true, the code in the curly brackets will run.
True
False
True or False: an Else statement runs if none of the above if statements or else if statements are true.
True
False