Introduction to JavaScript Quiz

Introduction to JavaScript Quiz

11th Grade

12 Qs

quiz-placeholder

Similar activities

Web Design: intro to Javascript

Web Design: intro to Javascript

10th - 12th Grade

10 Qs

Quiz de JavaScript Básico

Quiz de JavaScript Básico

11th Grade

15 Qs

Coding in the NFL

Coding in the NFL

11th Grade

10 Qs

genel kültür

genel kültür

11th Grade

15 Qs

TLE QUIZ

TLE QUIZ

9th - 12th Grade

10 Qs

Codozzle - Java

Codozzle - Java

11th - 12th Grade

12 Qs

Türkçe A1

Türkçe A1

1st Grade - Professional Development

11 Qs

JavaScript - 2

JavaScript - 2

11th - 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?