Is this a proper command in Karel?
move();
yes
Which of the following choices is a properly formed JavaScript variable name, meaning it is both legal in the JavaScript language and considered good style?
user_age
UserAge
userAge
User age
What function do you need to call to get the width of the canvas?
getWidth();
What symbols represents the and operator in JavaScript?
&&
Who was the first president?
Washington
Why is this not a proper command in Karel?
moveleft();
The L should be capitalized
What is printed to the screen when the following program is run?
let num = 13 % 3;
console.log(num);
1
2
3
4
The x-coordinate increases as you move in which direction?
right
What kind of statement allows us to run one block of code if one condition is true and a separate block of code otherwise?
if/else statement
Who was the 16th president?
Lincoln
What is the proper format for a single line comment in Karel?
//followed by a comment
What is printed to the screen if the user enters ‘5’ when the following program is run?
let userNum = readInt("Enter your favorite number: ");
let calculatedNum = (userNum * userNum) + userNum;
console.log(calculatedNum);
5
25
20
50
30
When creating a new image object, what goes inside of the parentheses?
The image's URL
What kind of statement allows us to run a block of code only if a certain condition is true?
if statement
What state has the highest population?
California
What condition should be used in this while loop to get Karel to pick up all the tennis balls on the current location?
while (________) {
takeBall();
}
ballsPresent()
True or False: The following returns a random decimal number between 1 and 10?
Randomizer.nextFloat(1,10);
true
Which line of code is the correct way to add a line to the canvas?
let ln = new line(100, 50, 300, 200);
let ln = new Line(100, 50, 300, 200);
let ln = line(100, 50, 300, 200);
let ln = Line(100, 50, 300, 200);
let ln = new Line(100, 50, 300, 200);
Which of these is not valid for a boolean?
true
false
yes
yes
What is the tallest mountain in the world?
Mt. Everest
How can we teach Karel new commands?
Define a new _________.
Define a new function
What type of data can we NOT randomly generate using the Randomizer?
Colors
Integers
Floats
Boolean
Strings
Strings
How many coordinates does the Line object need?
4
In a graphics canvas, what are the coordinates of the center of the canvas?
getWidth() / 2, getHeight() / 2
What is the chemical symbol for Oxygen?
O