Search Header Logo

Homework - JavaScript - 15/01/25

Authored by Kristian Bloomfield

Information Technology (IT)

9th Grade

Used 1+ times

Homework - JavaScript - 15/01/25
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

8 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

What is the meaning of the operator in the following line of JavaScript code?

if ( number != 27 )

Equal To

Greater Than

Less Than

Not Equal To

2.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

Why would no text be written on a web page due to the following JavaScript algorithm?

var numberOne = 10;

if(numberOne==11){

document.write("Number one is 10")}else{

document.write("Number one is not 10")

}


the variable numberOne stores a value less than 10

the variable numberOne stores the value 10

the variable numberOne stores the value 11

the variable numberOne does not store the value 10

3.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

What text will be displayed on the following button in a web page?

<button id="firstButton">a.ANSWER ONE</button>

firstButton

A.ANSWER ONE

button

4.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

Which of the following JavaScript subprograms displays a pop-up window in a web browser?

alert()

print()

document.write()

getElementByIT()

5.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

In HTML, what 'script type' is used to define a HTML/JavaScript web page?

js/html

text_hyperlink/html

html/javascript

text/javascript

6.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

Which symbol in JavaScript proceeds the 'onclick=function()' subprogram when creating an interactive button?

{

[

(

/

7.

MULTIPLE CHOICE QUESTION

10 sec • 1 pt

What does the term 'var' represent in JavaScript?

Video Assistant Referee

Variant

Variable

Variety

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?