JavaScript

JavaScript

University

15 Qs

quiz-placeholder

Similar activities

Week 8 - Digital Agrisystems and Complexes - VR Farms

Week 8 - Digital Agrisystems and Complexes - VR Farms

University

15 Qs

MD5-2.1-Typescript

MD5-2.1-Typescript

University

10 Qs

ELEMENTS OF DRAMA

ELEMENTS OF DRAMA

6th Grade - Professional Development

19 Qs

Quiz #1 - Compass 3 - Unit 9

Quiz #1 - Compass 3 - Unit 9

2nd Grade - University

10 Qs

How to Create and Use External JavaScript Files

How to Create and Use External JavaScript Files

University

10 Qs

Quiz -Programming Languages  History

Quiz -Programming Languages History

University

10 Qs

EDUCATIONAL TECHNOLOGY

EDUCATIONAL TECHNOLOGY

2nd Grade - University

10 Qs

El sufijo -ing y sus funciones en la oración

El sufijo -ing y sus funciones en la oración

University

10 Qs

JavaScript

JavaScript

Assessment

Quiz

English

University

Hard

Created by

Sarah Williams

FREE Resource

15 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

1 min • 5 pts

To declare a JavaScript variable, you should NOT use?

Let

Var

Const

Int

2.

MULTIPLE CHOICE QUESTION

1 min • 5 pts

How do you write "Hello World" in an alert box?

msg("Hello World");

alertBox("Hello World");

alert("Hello World");

msgBox("Hello World");

3.

MULTIPLE CHOICE QUESTION

1 min • 5 pts

How can a developer show a pop-up message to the user?

alert

prompt

console.log

<p> tag

4.

MULTIPLE CHOICE QUESTION

1 min • 5 pts

How do I declare a new variable?

var newVariable = 5;

Variable int = new Variable();

var 5 = myVariable;

int var = 5;

5.

MULTIPLE CHOICE QUESTION

1 min • 5 pts

The following code will:
x++;

Add 1 to the previous value of x

Add 1 to the previous value of y

Subtract 1 from the previous value of x

Give an error message

6.

MULTIPLE SELECT QUESTION

1 min • 5 pts

Which of the following is a symbol that must NOT be present in any JS Variable? Choose two

A

z

~

%

7.

MULTIPLE CHOICE QUESTION

1 min • 5 pts

What would this piece of code display?

let x = 5;

console.log(x != 8);

false

x!=8

true

8

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?