The output of the below code is:
<p id="demo"></p>
<script>
var text = "";
var i;
for (i = 0; i < 5; i++) {
text += "The number is " + i + "<br>";
}
document.getElementById("demo").innerHTML = text;
</script>
Javascript HTML CSS
Quiz
•
Computers
•
Professional Development
•
Hard
Rony De Sousa
Used 75+ times
FREE Resource
13 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
The output of the below code is:
<p id="demo"></p>
<script>
var text = "";
var i;
for (i = 0; i < 5; i++) {
text += "The number is " + i + "<br>";
}
document.getElementById("demo").innerHTML = text;
</script>
The number is 0
The number is 1
The number is 2
The number is 3
The number is 4
The number is 5
The number is 0
The number is 1
The number is 2
The number is 3
The number is 4
The number is 1
The number is 2
The number is 3
The number is 4
The number is 5
Why is that person using "var"???
2.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What is the difference between == and ===?
The === operator compares two values, without taking into account their types. == compares the values, but also makes their types into account.
Do I really need to reply this?
The == operator compares two values, without taking into account their types. === compares the values, but also makes their types into account.
The == operator is used to assign a value to a variable. === is used to compare the values of two variables.
3.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What is the DOM?
Is an open standard file format, and data interchange format, that uses human-readable text to store and transmit data objects consisting of attribute–value pairs and array data types
Is the standard markup language for documents designed to be displayed in a web browser. It can be assisted by technologies such as Cascading Style Sheets (CSS) and scripting languages such as JavaScript
Is a markup language that defines a set of rules for encoding documents in a format that is both human-readable and machine-readable
The Document Object Model is a cross-platform and language-independent interface that treats an XML or HTML document as a tree structure wherein each node is an object representing a part of the document
4.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What are the Javascript data types?
There are seven data types: Boolean, Null, Undefined, Number, String, Symbol, Object.
There are eighth data types: Boolean, Null, Undefined, Number, String, Symbol, Object, Date.
There are nine data types: Boolean, Null, Undefined, Number, String, Symbol, Object, Date, JSON.
Sorry, what do you mean by data type?
5.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What are the pop-up boxes types available in JavaScript?
Alert, Redirect and Prompt
Alert, Confirm and Prompt
Nice try, a pop-up can be done only using jquery or a similar library
Alert, Confirm, Redirect and Prompt
6.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Which image best describes the meaning of null and undefined?
7.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What are HTML Tags?
HTML tags are composed of three things: an opening tag, content and ending tag. Some tags are unclosed tags.
HTML tags are composed of three things: an opening tag, content and ending tag. All tags need to be closed.
HTML tags define metadata about an HTML document. Metadata is data (information) about data.
I didn't know that I was supposed to be studying
15 questions
Website Practical Assessment
Quiz
•
Professional Development
13 questions
HTML beginners quiz
Quiz
•
9th Grade - Professio...
15 questions
FMT web developing session 4 HTML5 + CSS3
Quiz
•
KG - Professional Dev...
10 questions
PERTEMUAN 1 HTML DASAR
Quiz
•
Professional Development
11 questions
Evaluación Aplicaciones Web
Quiz
•
University - Professi...
17 questions
Coding Basics
Quiz
•
12th Grade - Professi...
10 questions
HTML y CSS 1
Quiz
•
Professional Development
14 questions
HTML Basics
Quiz
•
Professional Development
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