
JavaScript Quiz
Authored by Nathaniel Mensah
Other
University

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
27 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is JavaScript?
JavaScript is a scripting language used to make the website interactive
JavaScript is an assembly language used to make the website interactive
JavaScript is a compiled language used to make the website interactive
None of the mentioned
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is correct about JavaScript?
JavaScript is an Object-Based language
JavaScript is Assembly-language
JavaScript is an Object-Oriented language
JavaScript is a High-level language
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Among the given statements, which statement defines closures in JavaScript?
JavaScript is a function that is enclosed with references to its inner function scope
JavaScript is a function that is enclosed with references to its lexical environment
JavaScript is a function that is enclosed with the object to its inner function scope
None of the mentioned
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will be the output of the following JavaScript code snippet? var txt1 = "Sanfoundry_"; var txt2 = "Javascriptmcq"; document.getElementById("demo").innerHTML = txt1 + txt2;
error
Sanfoundry_ Javascriptmcq
undefined
Sanfoundry_Javascriptmcq
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will be the output of the following JavaScript code? var js = 10; js *= 5; document.getElementById("demo").innerHTML = js;
10
50
5
Error
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Arrays in JavaScript are defined by which of the following statements?
It is an ordered list of values
It is an ordered list of objects
It is an ordered list of string
It is an ordered list of functions
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will be the output of the following JavaScript code? // JavaScript Comparison Operators function compare() { let a=2; let b=2.0; if(a==b) return true; else return false; }
false
true
compilation error
runtime 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
22 questions
Business Communication
Quiz
•
University
31 questions
SJFC Euro 2020 Quiz
Quiz
•
KG - Professional Dev...
25 questions
Quiz: Elements of Contracts
Quiz
•
University
25 questions
Business Communication
Quiz
•
University
24 questions
Estados Unidos
Quiz
•
9th Grade - University
24 questions
FBS QUIZ 2
Quiz
•
University
24 questions
Révision CQP 2
Quiz
•
University
24 questions
Bisnis Internasional
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