Web1 Chp-14 Quiz (JavaScript)

Ace your homework & exams now with Quizwiz!

Which symbol is used for the href value in the anchor tag to signify that we don't need the functionality of loading another Web page when we use the onmouseover or onmouseout event handlers?

# symbol (the number, or hashtag, symbol)

Which syntax is used to specify a multiple-line comment in JavaScript?

/ asteric comment asteric / - ( /*...*/ )

Select the comparison operator to use when testing a condition for equality.

== (two equal signs)(equivalent; "is exactly equal to")

Select the true statement from those listed below.

All of the statements these are true <script> tags are used to contain JavaScript statements <script> tags can be placed in both the header and the body section of a web page <script> tags are read by the browser

What is a scripting language?

An Interpreted language that is a subset of a full programming language

How many scripts can be embedded in an XHTML document?

As many as you need

The _______ defines every object and element on a web page.

Document Object Model

A JavaScript variable name can begin with a number

False

JavaScript is basically a subset of the Java programming language.

False

JavaScript is interpreted by the server.

False

Select the technology that was developed by a joint effort between Netscape and Sun Microsystems.

JavaScript

Which client-side scripting language is supported only by the Microsoft Internet Explorer browser?

Jscript

Which tag is used to embed JavaScript into an X/HTML document?

The X/HTML script tag

Which method would you use to request and get data from a user?

The prompt() method

A literal in JavaScript is the same thing as a constant in other programming languages, which means that it is a fixed value.

True

Image swapping describes the effect when the user positions the mouse pointer on top of an image and the original image is swapped for a new image and then when the user moves the mouse away from the image, the original image appears. This is commonly used for navigation button bars.

True

JavaScript is an object-based client-based scripting language interpreted by a Web browser.

True

JavaScript is used to add interactivity to your web pages such as simple animation, fancy menus, and pop ups.

True

The first character in a JavaScript variable name must be either a letter or the underscore character.

True

When a user enters clicks cancel when a JavaScript prompt() method is executed, the prompt() method returns a null value, which is not a string.

True

The _____ method displays a message to the user and contains one button.

alert()

Which of the following are examples of JavaScript variable data types?

all of these

Popular uses for JavaScript are:

all of these ( alert messages, jump menus, all of these, pop-up windows )

An example of a Document Object Model method is:

all of these ( prompt , window.alert , document.write )

JavaScript can be described as:

an object-oriented scripting language

Which of the following will assign the value Smith to the variable customerName?

customerName = Smith ;

The _______________property can set the background color of the document.

document.bgcolor

The code to access the contents of an input box named email on a form is:

document.forms[0].email.value

Use the ____________ method to write text to a web page.

document.write()

In the context of web page interactivity, an _________ can be described as an action taken by the user.

event

Select an appropriate use of Java Script

form validation

A ______ is a reusable block of JavaScript statements.

function

A __________ is a term used to describe a select list that allows the user to select an option to load another Web page.

jump menu

An example of a Document Object Model property is:

lastModified - the trick word for this question is "property"

A _____ is an action that can be performed with an object.

method

Select the valid JavaScript variable name below:

myName

The __________ event handler is triggered when the visitor places their mouse on an object.

onmouseover

A ______ is an attribute or characteristic of an object.

property

A function can ______ a value to indicate success or failure.

return

A Web-server performs which of the following functions?

sending email, storing items in a database, and tracking items in shopping cart


Related study sets

Ch 22 - Neutron Stars & Black Holes

View Set

Chapter exam- CT laws and rules PT: 1

View Set

English First Semester Exam 2018/2019 - the lottery

View Set

PSYCH - PREP U - CHAPTER 6 - LEGAL AND ETHICAL BASIS FOR PRACTICE

View Set