
Introduction to JavaScript Quiz

Quiz
•
Other
•
11th Grade
•
Hard
Standards-aligned
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
Similar Resources on Wayground
15 questions
Günler, Aylar ve Mevsimler

Quiz
•
7th - 12th Grade
17 questions
Christmas Movies

Quiz
•
11th Grade
10 questions
Tin 11: Bài 17: Dữ liệu mảng một chiều và mảng hai chiều

Quiz
•
11th Grade
10 questions
Programação Mobile - Responsividade e UX

Quiz
•
11th Grade
10 questions
G21 10 ZAMORA

Quiz
•
9th - 12th Grade
15 questions
DBZBS-Dikkat ve Bilgisayar Zekası Beceri Sınavı

Quiz
•
4th Grade - University
10 questions
Senangnya membuat ngoding bareng

Quiz
•
9th - 12th Grade
10 questions
Belajar Construct 2.1

Quiz
•
9th - 12th Grade
Popular Resources on Wayground
15 questions
Hersheys' Travels Quiz (AM)

Quiz
•
6th - 8th Grade
20 questions
PBIS-HGMS

Quiz
•
6th - 8th Grade
30 questions
Lufkin Road Middle School Student Handbook & Policies Assessment

Quiz
•
7th Grade
20 questions
Multiplication Facts

Quiz
•
3rd Grade
17 questions
MIXED Factoring Review

Quiz
•
KG - University
10 questions
Laws of Exponents

Quiz
•
9th Grade
10 questions
Characterization

Quiz
•
3rd - 7th Grade
10 questions
Multiply Fractions

Quiz
•
6th Grade