Search Header Logo

SAIL JS- Quiz

Authored by Adebayo Tolorunleke

Professional Development

Professional Development

Used 1+ times

SAIL JS- Quiz
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

15 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

When a user views a page containing a JS program, which machine actually executes the script?

The user's machine running a Web browser

The web server

A central machine deep within Netscape's corporate offices

None of the above

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following can't be done with client-side JS?

Validating a form

sending a form's contents by email

storing the form's contents to a database file on the server

none of the above

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is not a valid JS variable name?

2names

_first_and_last_names

FirstAndLast

none of the above

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

_ tag is an extension to HTML that can enclose any number of JS statements.

<SCRIPT>

<BODY>

<HEAD>

<TITLE>

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which is the correct way to write a JS array?

var txt = new Array(1:"tim",2:"kim",3:"Jim")

var txt = new Array:1=("Tim")2=("Kim")3=("Jim")

var txt = new Array("tim","kim","Jim")

var txt = new Array = "tim","kim","Jim"

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

If para1 is the DOM object for a paragraph, what is the correct syntax to change the text within the paragraph

"New Text"?

para1.value="New Text";

para1.firstChild.nodeValue= "Next Text";

para1.nodeValue="New Text";

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following best describes JS?

a low-level programming language

a script language precompiled in the browser

a compiled scripting language

an object-oriented scripting language

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?