
Javascript MCQ Quiz
Quiz
•
English
•
1st Grade
•
Practice Problem
•
Hard
Mehul Kothari
Used 4+ times
FREE Resource
Enhance your content in a minute
15 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Javascript is an _______ language?
statically typed and
scripting
statically typed and programming
dynamically typed and
programming
dynamically typed and scripting
2.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
How can we make the complete object readonly which will not allow to add/delete/update any properties in the object,
Object.freeze(ObjectName)
Object.seal(ObjectName)
All of the above
Object.defineProperty(obj, 'readOnlyProperty',
{
value: 'somevalue',
writable: false,
configurable: true,
enumerable: false
});
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
When the switch statement matches the expression with the given labels, how is the comparison done?
None of the above
Only the value of the expression is compared.
Only the datatype of the expression is compared.
Both the datatype and the result of the expression are compared.
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will be the output of the following code snippet?
<script type="text/javascript">
a = 5 + "9";
document.write(a);
</script>
Compilation Error
14
59
Run time error
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
When an operator’s value is NULL, the typeof returned by the unary operator is:
const a = null
console.log(typeof(a))
Boolean
Undefined
Object
Integer
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will be the output of the following code snippet?
var a = true + true + true * 5;
print(a)
7
6
5
15
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the output of the following code snippet?
print(NaN === NaN);
True
False
undefined
error
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
20 questions
Screen Time: Friend or Frenemy?
Quiz
•
1st Grade - University
15 questions
Question Words
Quiz
•
1st Grade - University
20 questions
Grammar Grade 1
Quiz
•
1st Grade
10 questions
Short vowel ' U '
Quiz
•
1st Grade
10 questions
My City QUIZ
Quiz
•
KG - 2nd Grade
10 questions
Birthday Party
Quiz
•
1st - 3rd Grade
13 questions
Test 1st term
Quiz
•
1st Grade
15 questions
Easy English
Quiz
•
1st - 5th Grade
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 English
20 questions
CVC Words
Quiz
•
KG - 1st Grade
17 questions
Reading Comprehension
Quiz
•
1st - 4th Grade
10 questions
Exploring Informational Text Structures in English
Interactive video
•
1st - 5th Grade
20 questions
Nonfiction Text Features
Quiz
•
1st - 3rd Grade
10 questions
Exploring Natural Resources
Interactive video
•
1st - 5th Grade
10 questions
R-controlled vowels
Quiz
•
1st - 2nd Grade
10 questions
Exploring Text Features and Structures
Interactive video
•
1st - 5th Grade
15 questions
Author's Purpose
Quiz
•
1st - 3rd Grade
