Search Header Logo

JavaScript Quiz 2

Authored by Jessica Fletcher

Computers

9th - 12th Grade

Used 69+ times

JavaScript Quiz 2
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 CHOICE QUESTION

30 sec • 1 pt

In coding, a variable is used to:

Store a value in memory

Draw shapes

Store a value that does not change

Display the result of a math equation

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is a list of steps you can follow to finish a task?

Program

Code

Bug

Algorithm

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is an error in a program that prevents a program from running as expected?

Program

Code

Bug

Algorithm

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What are statements that are only run if something is true?

Program

Conditionals

Bug

Algorithm

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

When drawing in JavaScript, the coordinates for the top left of the screen are ___.

(0, 400)

(0, 0)

(400, 0)

(400, 400)

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

The command: ellipse(200,100, 20, 20) will draw:

a rectangle whose center is is at (200,100) and is 20 pixels wide and 20 pixels tall

a circle whose center is at (20,20) and 200 pixels wide and 100 pixels tall

a circle whose center is at (200, 100) and is 20 pixels wide by 20 pixels tall

a rectangle whose center is at (20, 20) and is 200 pixels wide by 100 pixels tall

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

The code below will:

Draw a circle

Draw many circles according to the mouse position

Draw many circles diagonally across the screen

Draw many circles in the center of the screen

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?