Javascript CS211

अब Quizwiz के साथ अपने होमवर्क और परीक्षाओं को एस करें!

The following code will move the focus to window.onload = function() { $("join_up").onclick = signUp; $("user_first_name").focus(); };

The correct answer is: a textbox with id = "user_first_name"

Which of the following events occurs when the user moves the mouse pointer over an element and then clicks on it?

The correct answer is: all of the above

jQuery is

The correct answer is: an open source JavaScript library

The following code var display_error = function(message) { alert("Error: " + message); }

The correct answer is: creates a function and stores it in a variable named display_error

The jQuery functions are coded and tested for

The correct answer is: cross-browser compatibility

In the code that follows, document is a/an document.getElementById("emailAddress");

The correct answer is: object

To attach an event handler to an event (such as a user clicking a button), you

The correct answer is: specify the object and the event that triggers the event handler

Which of the following is NOT true about a try-catch statement?

The correct answer is: All three blocks are required.

When does the ready() event handler run?

The correct answer is: As soon as the Document Object Model is built.

What happens when an exception is thrown inside a try block?

The correct answer is: Control is transferred to the first statement in the catch block.

How can you create your own custom runtime error?

The correct answer is: Create a new Error object and use the throw statement to throw it.

If the current date is Monday, February 26, 2017, what will be displayed by the alert dialog box after the following code executes? var thisDay = new Date(); alert(thisDay.toDateString());

The correct answer is: Mon Feb 26 2017

When is an exception thrown?

The correct answer is: When a runtime error occurs.

What is object chaining?

The correct answer is: When you code one method after another


संबंधित स्टडी सेट्स

Ενέργεια, κατάλυση, βιοσύνθεση

View Set

EAQ Chapter 28 Developing the Role of Leader

View Set

Macro Chapter 9, Macro Chapter 10, Macro Chapter 11, Macro Chapter 12, Macro Chapter 13, Macro Chapter 14, Macro Chapter 15, Macro Chapter 16, Macro Chapter 17, Macro Chapter 18

View Set

The Binomial Theorem Pre-Test 100% Algebra 2.2

View Set