Search Header Logo

Intro to JavaScript

Authored by Tim Waltrowicz

Computers

9th Grade

Used 8+ times

Intro to JavaScript
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

11 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

In the Kahn Academy programming environment for Javascript, the bottom left of the drawing window has the coordinates:

(0,0)

(400,0)

(0,400)

(400,400)

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

The JavaScript function for drawing an ellipse is:

elli

circle

rect

ellipse

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

The following variable declaration declares a:

var value = 12;

number

whole number

string

decimal value

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

The following code will :

num +=1

Take 1 away from num

Add 1 to the value of num

Add 2 to the value of num

Take 2 from the value of num

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

The following code will:


num -= 4

Take 4 from the value of num

Take 1 from the value of num

Add 4 to the value of num

Add 1 to the value of num

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Draw = function() {

rect(1,1,4,4);

};

Continuously repeat the drawing of a square

Continuously repeat the drawing of a circle

Draw a rectangle once

draw a rectangle 4 times

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What will the following code do?


var x = 0;


draw = function(){

background(1,1,1);

rect(x+=1, 50, 50,50);

};

Draw a rectangle once

Animate a square across the screen (left to right)

Animate a square across the screen (right to left)

Animate a square across the screen (diagonally)

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?