JavaScript and Graphics

JavaScript and Graphics

12th Grade

17 Qs

quiz-placeholder

Similar activities

Unit 3 Review

Unit 3 Review

12th Grade

22 Qs

Günler, Aylar ve Mevsimler

Günler, Aylar ve Mevsimler

7th - 12th Grade

15 Qs

Retroalimentación HTML & CSS 2.0

Retroalimentación HTML & CSS 2.0

9th - 12th Grade

20 Qs

Java Primitive Practice

Java Primitive Practice

12th Grade

20 Qs

Basic Python and Console Interaction (Unit 3)

Basic Python and Console Interaction (Unit 3)

12th Grade

12 Qs

Draw toolbar & Shortcuts

Draw toolbar & Shortcuts

7th Grade - Professional Development

20 Qs

Java Lesson 9

Java Lesson 9

5th Grade - University

12 Qs

Thanksgiving

Thanksgiving

KG - 12th Grade

20 Qs

JavaScript and Graphics

JavaScript and Graphics

Assessment

Quiz

Other

12th Grade

Hard

Created by

Angel Ligon

Used 4+ times

FREE Resource

17 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

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

variable

var

int

x

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What function do you need to call to ask the user of the program to enter text?

readLine

readln

readString

println

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

To ask the user of the program for a number, which function should you use?

readLine

readFloat

readInt

Both readInt and readFloat are for numbers.

4.

FILL IN THE BLANK QUESTION

1 min • 1 pt

What will the following code print to the screen?

println(2 + 2):4

5.

FILL IN THE BLANK QUESTION

1 min • 1 pt

What symbol do you use to do division in JavaScript?

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What function do you need to call to get the width of the screen?

width()

getWidth()

screenWidth()

getScreenWidth()

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

A store has 20 apples in its inventory. How can you store this information in a JavaScript variable?

var numApples == 20;

20 = numApples;

var numApples = 20;

var num apples = 20;

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?