Introduction to JavaScript Quiz

Introduction to JavaScript Quiz

11th Grade

12 Qs

quiz-placeholder

Similar activities

SPPrep Programming Quizziz

SPPrep Programming Quizziz

11th Grade

13 Qs

The Roblox Quiz

The Roblox Quiz

1st Grade - Professional Development

12 Qs

Are you smarter than patrick star?

Are you smarter than patrick star?

3rd - 12th Grade

16 Qs

Quiz Pemrograman JavaScript

Quiz Pemrograman JavaScript

1st Grade - University

15 Qs

have fun

have fun

KG - Professional Development

13 Qs

Roblox things you don't know.

Roblox things you don't know.

KG - 12th Grade

12 Qs

Bilmeceler

Bilmeceler

KG - University

14 Qs

Senangnya membuat ngoding bareng

Senangnya membuat ngoding bareng

9th - 12th Grade

10 Qs

Introduction to JavaScript Quiz

Introduction to JavaScript Quiz

Assessment

Quiz

Other

11th Grade

Hard

DOK Level 1: Recall

Standards-aligned

Created by

Johnnie Rascoe

Used 10+ times

FREE Resource

12 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

1 min • 15 pts

What is the correct syntax to output "Hello World" in JavaScript?

`print("Hello World")`

`console.log("Hello World")`

`echo "Hello World"`

`System.out.println("Hello World")`

Tags

DOK Level 1: Recall

2.

MULTIPLE CHOICE QUESTION

1 min • 15 pts

Which of the following is a correct way to declare a variable in JavaScript?

`var myVar;`

`variable myVar;`

`v myVar;`

`declare myVar;`

Tags

DOK Level 1: Recall

3.

MULTIPLE CHOICE QUESTION

1 min • 15 pts

What is the output of the following code? ```javascript var x = 5; var y = 10; console.log(x + y); ```

`15`

`510`

`undefined`

`NaN`

Tags

DOK Level 1: Recall

4.

MULTIPLE CHOICE QUESTION

1 min • 15 pts

Which of the following is NOT a data type in JavaScript?

`String`

`Number`

`Boolean`

`Character`

Tags

DOK Level 1: Recall

5.

MULTIPLE CHOICE QUESTION

1 min • 5 pts

What is the value of `typeof null` in JavaScript?

`null`

`object`

`undefined`

`boolean`

Tags

DOK Level 1: Recall

6.

MULTIPLE CHOICE QUESTION

1 min • 5 pts

Which of the following is used to declare a constant in JavaScript?

`var`

`let`

`const`

`constant`

Tags

DOK Level 1: Recall

7.

MULTIPLE CHOICE QUESTION

1 min • 5 pts

What will be the output of the following code? ```javascript let a = 10; a = 20; console.log(a); ```

`10`

`20`

`undefined`

`Error`

Tags

DOK Level 1: Recall

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?