Search Header Logo

Javascript HTML CSS

Authored by Rony De Sousa

Computers

Professional Development

Used 76+ times

Javascript HTML CSS
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

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?

Media Image
Media Image
Media Image
Media Image

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

Access all questions and much more by creating a free account

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?