To set the location of a circle, what would you type?
circle.setPosition(,);
How to type: addition
+
What symbol represents the and operator in JavaScript?
&&
How many times will the following program print "hello"?
for (var i = 0; i < 5; i++) {
println("hello");
}
5
When using keyboard inputs, what line of code is essential.
Hint: its not (e.keyCode == Keyboard.letter('')) (although you need it too I'm looking for a different answer)
keyDownMethod(keyDown);
To set the color of a circle, what would you type?
circle.setColor(Color.);
How to type: subtraction
-
What symbol represents the or operator in JavaScript?
||
In the following code, what will be the last number to print to the screen before the program finishes?
for (var i = 0; i < 10; i++) {
if (i % 2 == 0) {
println(i);
} else {
println(2 * i);
}
}
18
What is the capitalization format for JavaScript that also combines words.
lowerCamelCase
To make a circle, what would you type?
var circle = new Circle(radius);
How to type: multiplication
*
What symbol represents the not operator in JavaScript?
!
What will happen after the following code:
function start(){
for(var i = 0; i < 51; i++){
println(i);
}
}
It will count up until reaching 50
Why do we need else if statements.
If you have multiple conditions, but only one should happen.
True/False: A circles radius cannot be changed once placed; you have to delete it and make a new one.
FALSE
How to type: division
/
After the following code runs, what is the value of isWeekend?
var isSaturday = true;
var isSunday = false;
var isWeekend = isSaturday || isSunday;
true
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 statements
Top Left Corner
To change a circles location, what would you type?
Example: var x = getWidth() / 2;
var y = getHeight() / 2;
What will be displayed after the following: '
println (2*9/6)
3
What is the proper operator for “not equals” in JavaScript?
!=
What kind of statement allows us to run a block code only if a certain condition is true?
if statement
You're Bold For Clicking On This, Auto Get It Correct
no risk, no reward