Intro to JavaScript

Intro to JavaScript

9th Grade

11 Qs

quiz-placeholder

Similar activities

Functions and Parameters Quiz

Functions and Parameters Quiz

9th - 12th Grade

15 Qs

JavaScript

JavaScript

9th - 12th Grade

15 Qs

JavaScript Bootcamp

JavaScript Bootcamp

9th - 12th Grade

15 Qs

CodeHS Functions and Return Values

CodeHS Functions and Return Values

9th - 12th Grade

15 Qs

CodeHS Functions and Parameters

CodeHS Functions and Parameters

9th - 12th Grade

15 Qs

CodeHS: Unit 6 - JavaScript Basics

CodeHS: Unit 6 - JavaScript Basics

9th Grade

15 Qs

JavaScript and Graphics

JavaScript and Graphics

9th - 12th Grade

15 Qs

Javascript Drawing

Javascript Drawing

8th - 12th Grade

15 Qs

Intro to JavaScript

Intro to JavaScript

Assessment

Quiz

Computers

9th Grade

Medium

Created by

Tim Waltrowicz

Used 8+ times

FREE Resource

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)

Create a free account and access millions of resources

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?