
Javascript Basics-2
Quiz
•
Other
•
Professional Development
•
Practice Problem
•
Hard
SUNDARESAN K
Used 1+ times
FREE Resource
Enhance your content in a minute
15 questions
Show all answers
1.
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
Run Time Error
59
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will be the output for the following code snippet?
<p id="example"></p> <script> function Func() { document.getElementById("example").innerHTML=Math.sqrt(81); } </script>
9
81
Error
0
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will be the output of the following code snippet?
var a = 1; var b = 0; while (a <= 3) { a++; b += a * 2; print(b); }
4 10 18
1 2 3
1 4 7
4 10 16
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will be the output of the following code snippet?
var a = Math.max(); var b = Math.min(); print(a); print(b);
-Infinity Infinity
-Infinity -Infinity
Infinity -Infinity
Infinity Infinity
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will be the output of the following code snippet?
var a = Math.max() < Math.min(); var b = Math.max() > Math.min(); print(a); print(b);
true true
true false
false true
false false
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will be the output of the following code snippet?
var a = true + true + true * 3; print(a)
3
0
Error
5
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will be the output of the following code snippet?
var a = "hello"; var sum = 0; for(var i = 0; i < a.length; i++) { sum += (a[i] - 'a'); } print(sum);
47
NaN
0
None of these
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
15 questions
Hair Care Products
Quiz
•
University - Professi...
15 questions
Labor Relations and Negotations 1
Quiz
•
University - Professi...
20 questions
Haloween :0
Quiz
•
KG - Professional Dev...
16 questions
MBIG agm quizizz
Quiz
•
Professional Development
20 questions
TechMD-IEC Module 1 Quiz
Quiz
•
Professional Development
14 questions
Schedules | Post-Training Review
Quiz
•
Professional Development
10 questions
Niche Case
Quiz
•
Professional Development
15 questions
SPARE-PART QUIZ
Quiz
•
Professional Development
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
10 questions
How to Email your Teacher
Quiz
•
Professional Development
6 questions
3RD GRADE DECLARATION OF INDEPENDENCE EXIT TICKET
Quiz
•
Professional Development
19 questions
Black History Month Trivia
Quiz
•
6th Grade - Professio...
22 questions
Multiplying Exponents with the Same Base
Quiz
•
9th Grade - Professio...
40 questions
Flags of the World
Quiz
•
KG - Professional Dev...
