Search Header Logo

JavaScript unit 1 and 2

Authored by Gareth Yeoman

Computers

9th - 12th Grade

Used 4+ times

JavaScript unit 1 and 2
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

44 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 5 pts

What is the proper function to call to print to the screen?

write

println

PRINT

post

2.

MULTIPLE CHOICE QUESTION

30 sec • 5 pts

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

variable

var

int

x

3.

MULTIPLE CHOICE QUESTION

30 sec • 5 pts

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

readLine

readInt

readFloat

Both readInt and readFloat are for numbers

4.

MULTIPLE CHOICE QUESTION

30 sec • 5 pts

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

readLine

readln

text

println

5.

MULTIPLE CHOICE QUESTION

30 sec • 5 pts

What will the following code print to the screen?

println(2 + 2);

2 + 2

4

22

nothing

6.

MULTIPLE CHOICE QUESTION

30 sec • 5 pts

What symbol do you use to do division in JavaScript?

%

/

//

*

7.

MULTIPLE CHOICE QUESTION

30 sec • 5 pts

What symbol do you use to do multiplication in JavaScript?

x

X

*

#

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?