Introduction to JavaScript Quiz

Introduction to JavaScript Quiz

11th Grade

12 Qs

quiz-placeholder

Similar activities

Arduino Uno B.O.E Bot 9th

Arduino Uno B.O.E Bot 9th

9th - 12th Grade

17 Qs

General Knowledge Fun Quiz

General Knowledge Fun Quiz

6th - 12th Grade

15 Qs

ScreenWriting 101

ScreenWriting 101

9th - 12th Grade

17 Qs

Revisão de Programação Java

Revisão de Programação Java

9th Grade - University

15 Qs

Selamlaşma (Greeting) Harmoni 1

Selamlaşma (Greeting) Harmoni 1

KG - University

10 Qs

RECUPERAÇÃO 1ºTRI - 8 ANO

RECUPERAÇÃO 1ºTRI - 8 ANO

9th Grade - University

12 Qs

ญี่ปุ่นที่คุณต้องรู้

ญี่ปุ่นที่คุณต้องรู้

9th - 12th Grade

10 Qs

Verb

Verb

5th Grade - University

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