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
Create a free account and access millions of resources
Similar Resources on Wayground
30 questions
JavaScript Arrays

Quiz
•
10th - 12th Grade
30 questions
HTML-BASICO-2025

Quiz
•
4th Grade - University
32 questions
Asas Sains Komputer Tingkatan 1

Quiz
•
10th - 12th Grade
26 questions
CodeHS - Matisse - What is the Internet

Quiz
•
6th - 12th Grade
28 questions
CIW Site Development Associate Review # 2 Lessons 6 - 10

Quiz
•
11th - 12th Grade
33 questions
Web Design Final Exam Review-HTML

Quiz
•
9th - 12th Grade
29 questions
Pemrograman Web

Quiz
•
11th Grade
26 questions
UJIAN SEMESTER KELA SXI TKJ 2024

Quiz
•
11th Grade
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 Computers
20 questions
Digital Citizenship

Quiz
•
8th - 12th Grade
35 questions
Computer Baseline Examination 2025-26

Quiz
•
9th - 12th Grade
13 questions
Problem Solving Process

Quiz
•
9th - 12th Grade
10 questions
Understanding Algorithms with Pseudocode and Flowcharts

Interactive video
•
9th - 12th Grade
19 questions
AP CSP Unit 1 Review (code.org)

Quiz
•
10th - 12th Grade