<!DOCTYPE html>
<html>
<body>
<script>
var x = "5";
var y = 6;
var z = x + y;
document.write(x + "<br>");
document.write(y + "<br>");
document.write(z + "<br>");
</script>
</body>
</html>
Guess the output of the following code
Ass2-Quiz2-Programming
Quiz
•
Computers
•
11th Grade
•
Hard
zina aldolymi
Used 5+ times
FREE Resource
31 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
<!DOCTYPE html>
<html>
<body>
<script>
var x = "5";
var y = 6;
var z = x + y;
document.write(x + "<br>");
document.write(y + "<br>");
document.write(z + "<br>");
</script>
</body>
</html>
Guess the output of the following code
5 6 10
None of These
5 6 56
5 6 11
2.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
<!DOCTYPE html>
<html>
<body>
<script>
var num1 = 1;
var num2 = 1;
var num3 = "1" + num1 + num2;
document.write(num1 + "<br>");
document.write(num2 + "<br>");
document.write(num3 + "<br>");
</script>
</body>
</html>
Guess the output of the following code.
1 1 3
1 1 111
1 1 12
None of these
3.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
<html>
<body>
<script>
var x = 12.45;
var y = 1;
var z = '8' + x + y;
document.write(z + "<br>");
</script>
</body>
</html>
The value of Z is
813.451
812.451
21.450
21.451
4.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
Variable declared without a value will have the value ______________
None of these
undefined
0
null
5.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
Is it necessary to use "var" keyword while declaring variable.
Yes
No
6.
MULTIPLE SELECT QUESTION
1 min • 1 pt
When you assign a text value to a variable, we put text value in the pair of _________.Select appropriate option(s).
Square Bracket
Double Quote
None of these
Single Quote
7.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
Non Initialized Variable have value "undefined", What value be printed in following case
var name="Cat";
var name;
null
Error
Cat
undefined
29 questions
JavaScript
Quiz
•
9th - 12th Grade
33 questions
Web Design Final Exam Review-HTML
Quiz
•
9th - 12th Grade
30 questions
Paginas Web
Quiz
•
11th Grade
26 questions
HTML Forms - CIW SDA Lesson 6
Quiz
•
9th Grade - University
26 questions
CodeHS - Matisse - What is the Internet
Quiz
•
6th - 12th Grade
35 questions
CodeHS - Web Design Test on HTML & CSS
Quiz
•
9th - 12th Grade
29 questions
Ôn Tập Môn Tin Học Lớp 9
Quiz
•
9th Grade - University
35 questions
JavaScript Control Flow and Loops.
Quiz
•
10th Grade - University
15 questions
Character Analysis
Quiz
•
4th Grade
17 questions
Chapter 12 - Doing the Right Thing
Quiz
•
9th - 12th Grade
10 questions
American Flag
Quiz
•
1st - 2nd Grade
20 questions
Reading Comprehension
Quiz
•
5th Grade
30 questions
Linear Inequalities
Quiz
•
9th - 12th Grade
20 questions
Types of Credit
Quiz
•
9th - 12th Grade
18 questions
Full S.T.E.A.M. Ahead Summer Academy Pre-Test 24-25
Quiz
•
5th Grade
14 questions
Misplaced and Dangling Modifiers
Quiz
•
6th - 8th Grade
17 questions
Chapter 12 - Doing the Right Thing
Quiz
•
9th - 12th Grade
20 questions
Types of Credit
Quiz
•
9th - 12th Grade
30 questions
Linear Inequalities
Quiz
•
9th - 12th Grade
20 questions
Taxes
Quiz
•
9th - 12th Grade
17 questions
Parts of Speech
Quiz
•
7th - 12th Grade
20 questions
Chapter 3 - Making a Good Impression
Quiz
•
9th - 12th Grade
20 questions
Inequalities Graphing
Quiz
•
9th - 12th Grade
10 questions
Identifying equations
Quiz
•
KG - University