Introduction to JavaScript Quiz

Introduction to JavaScript Quiz

11th Grade

12 Qs

quiz-placeholder

Similar activities

Python Strings and Variables

Python Strings and Variables

5th Grade - University

8 Qs

Text Media and Information

Text Media and Information

11th Grade

13 Qs

HS2 1.02

HS2 1.02

9th - 12th Grade

10 Qs

Bird Box

Bird Box

11th Grade

15 Qs

Grammar Review: Present & Past Simple

Grammar Review: Present & Past Simple

6th - 12th Grade

15 Qs

sözcük türleri

sözcük türleri

9th - 12th Grade

10 Qs

Anı ve Gezi Yazısı

Anı ve Gezi Yazısı

11th Grade

10 Qs

Codozzle - Java

Codozzle - Java

11th - 12th Grade

12 Qs

Introduction to JavaScript Quiz

Introduction to JavaScript Quiz

Assessment

Quiz

Other

11th Grade

Practice Problem

Hard

DOK Level 1: Recall

Standards-aligned

Created by

Johnnie Rascoe

Used 16+ times

FREE Resource

AI

Enhance your content in a minute

Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...

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

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?