JavaScript and Graphics

JavaScript and Graphics

12th Grade

17 Qs

quiz-placeholder

Similar activities

Globalização

Globalização

12th Grade

18 Qs

ULangan Spreadsheet 2 Date time

ULangan Spreadsheet 2 Date time

12th Grade

20 Qs

laxdæla kafli 12-19

laxdæla kafli 12-19

10th - 12th Grade

14 Qs

Revisão de Programação Java

Revisão de Programação Java

9th Grade - University

15 Qs

Culinary Math

Culinary Math

KG - 12th Grade

12 Qs

CSP Unit 5 Assessment 2 review (code.org)

CSP Unit 5 Assessment 2 review (code.org)

9th - 12th Grade

13 Qs

Acilim 1 Unit 4 Essential knowledge skills questions

Acilim 1 Unit 4 Essential knowledge skills questions

6th - 12th Grade

18 Qs

Provrepetition EU

Provrepetition EU

KG - 12th Grade

15 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?