
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';
Access all questions and much more by creating a free account
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
10 questions
Hypersonic Missiles and Directed Energy Weapons
Quiz
•
University
10 questions
Safety Practices in Construction
Quiz
•
University
12 questions
National Day Quiz
Quiz
•
University
15 questions
QUIZ BAB 2 CC-43
Quiz
•
University
13 questions
football of world
Quiz
•
1st Grade - University
13 questions
Anime 99
Quiz
•
9th Grade - Professio...
10 questions
Distributive bargaining #3
Quiz
•
KG - University
10 questions
MGT 269 Chapter 6: Job Application Letter & Resume
Quiz
•
University
Popular Resources on Wayground
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
22 questions
fractions
Quiz
•
3rd Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
15 questions
Equivalent Fractions
Quiz
•
4th Grade
20 questions
Figurative Language Review
Quiz
•
6th Grade
Discover more resources for Other
12 questions
IREAD Week 4 - Review
Quiz
•
3rd Grade - University
23 questions
Subject Verb Agreement
Quiz
•
9th Grade - University
7 questions
Force and Motion
Interactive video
•
4th Grade - University
7 questions
Renewable and Nonrenewable Resources
Interactive video
•
4th Grade - University
5 questions
Poetry Interpretation
Interactive video
•
4th Grade - University
19 questions
Black History Month Trivia
Quiz
•
6th Grade - Professio...
15 questions
Review1
Quiz
•
University
15 questions
Pre1
Quiz
•
University
