Shapes
Math
Operators
If, Else, and For
Misc (Hard Questions Double Gain And Loss)
100

To set the location of a circle, what would you type?

circle.setPosition(,);

100

How to type: addition

+

100

What symbol represents the and operator in JavaScript?

&&

100


How many times will the following program print "hello"?

for (var i = 0; i < 5; i++) {
    println("hello");
}

5

100

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);


200

To set the color of a circle, what would you type?

circle.setColor(Color.);

200

How to type: subtraction

-

200

What symbol represents the or operator in JavaScript?

||

200

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

200

What is the capitalization format for JavaScript that also combines words.

lowerCamelCase

300

To make a circle, what would you type?

var circle = new Circle(radius);

300

How to type: multiplication

*

300

What symbol represents the not operator in JavaScript?

!

300

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

300

Why do we need else if statements.

If you have multiple conditions, but only one should happen.

400

True/False: A circles radius cannot be changed once placed; you have to delete it and make a new one.

FALSE

400

How to type: division

/

400

After the following code runs, what is the value of isWeekend?

var isSaturday = true;
var isSunday = false;
var isWeekend = isSaturday || isSunday;

true

400

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

400
On the JavaScript coordinate plane, where is 0,0

Top Left Corner

500

To change a circles location, what would you type?

Example:      var x = getWidth() / 2;
                    var y = getHeight() / 2;

500

What will be displayed after the following: '

println (2*9/6)

3

500

What is the proper operator for “not equals” in JavaScript?

!=

500

What kind of statement allows us to run a block code only if a certain condition is true?

if statement

500

You're Bold For Clicking On This, Auto Get It Correct 

no risk, no reward

M
e
n
u