Search Header Logo

JavaScript and Graphics

Authored by Angel Ligon

Other

12th Grade

Used 4+ times

JavaScript and Graphics
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

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;

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?