Unit 4: Introduction to JavaScript (CodeHS)

Unit 4: Introduction to JavaScript (CodeHS)

Assessment

Flashcard

Computers

9th - 12th Grade

Hard

Created by

Wayground Content

FREE Resource

Student preview

quiz-placeholder

21 questions

Show all answers

1.

FLASHCARD QUESTION

Front

Which of the following choices is a properly formed JavaScript variable name, meaning it is both legal in the JavaScript language and considered good style? Num dogs, numDogs, num_dogs, NumDogs

Back

numDogs

2.

FLASHCARD QUESTION

Front

You are building a house with a crew and diving nails among 8 workers. Which statement will calculate how many nails will be left over?

Back

Media Image

3.

FLASHCARD QUESTION

Front

What keyword do you need to use to define a variable in JavaScript?

Back

var

4.

FLASHCARD QUESTION

Front

What does the following program do?

Back

Draws a rectangle on the canvas that is positioned the width and height of the rectangle from the x- and y-axis.

5.

FLASHCARD QUESTION

Front

What is printed on the screen if the user enters '10' when the following program is run?

Back

200

6.

FLASHCARD QUESTION

Front

You want to read input from the user to know how many slices of pizza they would like to buy. Which statement should you use to read in a number from the user?

Back

Media Image

7.

FLASHCARD QUESTION

Front

In a graphics canvas, what are the coordinates of the bottom right corner of the window?

Back

getWidth(), getHeight()

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?