Search Header Logo

December 23

Authored by Brenda McLachlin

Computers

3rd - 12th Grade

Used 3+ times

December 23
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

20 questions

Show all answers

1.

MULTIPLE SELECT QUESTION

45 sec • 1 pt

Which of these are acceptable ways to write the variable name "letter one"?

letterOne

letterOne

letter-one

letter_one

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of these poorly-formatted coding excerpts will break the code?

var x-pos = 0;

ellipse(200,200,50,50);

if(i - 10 > 3) {

text("Once upon a midnight dreary, while I pondered, weak and weary, Over many a quaint and curious volume of forgotten lore\nWhile I nodded, nearly napping, suddenly there came a tapping,As of some one gently rapping, rapping at my chamber door.", 200, 200);

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What do you know about the whole program based on this section of code?


switch (state) {

case 1:

There are multiple different ways the program can work, depending on the variable "state"

The canvas size is changed from 400, 400 to something else

There is a draw function in the code

There is an array called "state" that holds a list of boolean variables

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Finish this comment:


// When the user presses a key...

if (keyPressed) {

fill(colours[round(random(12))]);

}

...change the fill to any random colour

...change the fill to the colour at position 12 in the colours array

...change the fill to a random colour from the colours array

...add a new colour to the end of the colours array

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Select the symbol for IS:

||

&&

!

===

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Evaluate this expression:


False === False

True

False

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Evaluate this expression:


var x; // x is either true or false but you don't know which


(x && !x)

True

False

Access all questions and much more by creating a free account

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?