
JavaScript Day 2
Quiz
•
Other
•
University
•
Practice Problem
•
Hard
Abdul Roshan
Used 2+ times
FREE Resource
Enhance your content in a minute
10 questions
Show all answers
1.
MULTIPLE SELECT QUESTION
45 sec • 1 pt
Which of the following is a correct way to declare a variable in JavaScript?
variable name = 'John';
let name = 'John';
const name = 'John';
var name 'John';
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is not a primitive data type in JavaScript?
Number
String
Object
Boolean
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the result of the following expression: '5' + 3?
8
53
35
None
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will be the output of the following code?
var x = 10;
if (true) {
var x = 20;
}
console.log(x);
10
20
Undefined
Null
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will be the output of the following code?
let y = 10;
if (true) {
let y = 20;
}
console.log(y);
10
20
Error
Undefined
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which method is used to convert all the lowercase letters in a string to uppercase in JavaScript?
toLowerCase()
toUpperCase()
capitalize()
uppercase()
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following declarations will result in an error if the variable is reassigned or redeclared?
var name = 'John';
let name = 'John';
const name = 'John';
var name;
name = 'John';
Create a free account and access millions of resources
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?
Similar Resources on Wayground
15 questions
Harry Potter
Quiz
•
KG - Professional Dev...
10 questions
Refresh
Quiz
•
University
10 questions
The future of mars exploration
Quiz
•
1st Grade - Professio...
11 questions
Naruto
Quiz
•
KG - Professional Dev...
10 questions
Icebreaker
Quiz
•
University
14 questions
Music History Quiz
Quiz
•
University
10 questions
Textlesen (REMIDI Trimina& Agustina)
Quiz
•
12th Grade - University
14 questions
RIT Croatia College day 2024
Quiz
•
University
Popular Resources on Wayground
10 questions
Forest Self-Management
Lesson
•
1st - 5th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
30 questions
Thanksgiving Trivia
Quiz
•
9th - 12th Grade
30 questions
Thanksgiving Trivia
Quiz
•
6th Grade
11 questions
Would You Rather - Thanksgiving
Lesson
•
KG - 12th Grade
48 questions
The Eagle Way
Quiz
•
6th Grade
10 questions
Identifying equations
Quiz
•
KG - University
10 questions
Thanksgiving
Lesson
•
5th - 7th Grade
Discover more resources for Other
10 questions
Identifying equations
Quiz
•
KG - University
7 questions
Different Types of Energy
Interactive video
•
4th Grade - University
20 questions
HS2C2 AB QUIZIZZ
Quiz
•
1st Grade - Professio...
14 questions
Homonyms Quiz
Quiz
•
KG - University
16 questions
Parts of a Parabola
Quiz
•
8th Grade - University
10 questions
A Brief History of Geologic Time
Interactive video
•
11th Grade - University
15 questions
Black Friday/Cyber Monday
Quiz
•
9th Grade - University
7 questions
Biomolecules (Updated)
Interactive video
•
11th Grade - University
