
Javascript Basics-2

Quiz
•
Other
•
Professional Development
•
Hard
SUNDARESAN K
Used 1+ times
FREE Resource
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
Create a free account and access millions of resources
Similar Resources on Wayground
15 questions
Tech Talk - Study Jam Frontend Development

Quiz
•
Professional Development
13 questions
Jautājumi par Pastu, Liepāju, citiem.

Quiz
•
1st Grade - Professio...
11 questions
SEASON 5 - Wrap up Quiz [OP]

Quiz
•
Professional Development
10 questions
Tes Psikotes

Quiz
•
Professional Development
10 questions
CCH (CERDAS CERMAT HARTRANS)

Quiz
•
Professional Development
10 questions
Basic JavaScript (Henry)

Quiz
•
Professional Development
11 questions
Türkçe A1

Quiz
•
1st Grade - Professio...
13 questions
day1

Quiz
•
Professional Development
Popular Resources on Wayground
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
10 questions
Nouns, nouns, nouns

Quiz
•
3rd Grade
10 questions
9/11 Experience and Reflections

Interactive video
•
10th - 12th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
11 questions
All about me

Quiz
•
Professional Development
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
9 questions
Tips & Tricks

Lesson
•
6th - 8th Grade
Discover more resources for Other
11 questions
All about me

Quiz
•
Professional Development
10 questions
How to Email your Teacher

Quiz
•
Professional Development
15 questions
Fun Random Trivia

Quiz
•
Professional Development
22 questions
Anne Bradstreet 1612-1672

Quiz
•
Professional Development
18 questions
Spanish Speaking Countries and Capitals

Quiz
•
KG - Professional Dev...
14 questions
Fall Trivia

Quiz
•
11th Grade - Professi...
15 questions
Disney Characters Quiz

Quiz
•
Professional Development
15 questions
Quiz to Highlight Q types & other great features in Wayground

Quiz
•
Professional Development