LIS exam #2

Pataasin ang iyong marka sa homework at exams ngayon gamit ang Quizwiz!

The following jQuery statement will select all of the elements on the HTML document.

$("*")

What is the correct jQuery code for making all div elements 300 pixels high?

$("div").height(300)

What is the jQuery statement that will hide all <p> elements in an HTML document?

$("p").hide()

Which jQuery function is used to prevent code from running, before the document is finished loading?

$(document).ready()

The AND operator is ____.

&&

With jQuery, look at the following selector: $("div.intro"). What does it select?

All div elements with class = "intro"

Look at the following selector: $("div p"). What does it select?

All p elements inside a div element

At the core of DHTML is ____.

DOM

Through the ____ object you can access other objects that represent elements on a Web page.

Document

This is one of the most common types of HTTP requests. This method is used for standard web page requests to a server. A query string or form data can be included or appended to the URL request sent to the server.

GET

The XMLHttpRequest object uses ____ to exchange data between a client computer and a Web server.

HTTP

The term ____ refers to the application, usually a Web browser, which makes the request.

HTTP client

What scripting language is jQuery written in?

JavaScript

JSON stands for the following:

JavaScript Object Notation

Look at the following selector: $("p #intro"). What does it select?

The p element with id="intro"

You modify values in existing array elements in the same fashion as you modify values in a standard variable, except you include brackets and the element index.

True

Every Web page is identified by a unique address called the ____.

URL

Which of the following features does jQuery library contain?

all are true HTML/DOM manipulation CSS manipulation Effects and animations

A(n) ____ statement is used to exit control statements.

break

A(n) ____ label in a switch statement represents a specific value and contains one or more statements that execute if the value of the label matches the value of the switch statement's expression.

case

A ____ statement restarts a loop with a new iteration.

continue

The ____ label contains statements that execute when the value returned by the switch statement expression does not match a case label.

default

The statements in a __________statement always executes once, before a conditional expression is evaluated.

do/while

What is the correct JavaScript syntax to change the content of the HTML element below? <p id="demo">This is a demonstration.</p>

document.getElementById("demo").innerHTML = "Hello World!";

Which of the following is the correct syntax for accessing an element with the id value headline?

document.getElementById("headline")

Which of the following is the correct syntax for accessing the value of the href attribute for the third a element in a document?

document.getElementByTagName("a")[2].href

Each piece of data contained in an array is called a(n) ____.

element

"DHTML" refers to a single technology.

false

The XMLHttpRequest object has a property called STATUS. If the STATUS is 404, then the response from the server is ready and everything is okay.

false

The following example returns a list of all elements where the id="intro" var x = document.getElementsByClassName("intro");

false

The following selector: $("div") only selects the first div element in the HTML document.

false

The following selector: $("div") selects only the first div element in the HTML document.

false

The following statement finds all of the <span> elements in the HTML document: var x = document.getElementsByTagName("p");

false

XML is required for data interchange between client and server in an Ajax application.

false

In JavaScript programming, you can write your own procedures, called ____, which refer to a related group of JavaScript statements that are executed as a single unit.

functions

The ____ method returns an array of elements that match a specified tag name.

getElementsByTagName()

A ____ variable is one that is declared outside a function and is available to all parts of your program.

global

If you want to execute one set of statements when a condition evaluates to a truthy value and another set of statements when the condition evaluates to a falsy value, you need the __________ statement.

if/else

Each repetition of a looping statement is called a(n) ____________.

iteration

How do you call a function named "myFunction"?

myFunction()

Which of the following references the second element in the newSections array?

newSections[1]

The ____ property of the Image object allows JavaScript to dynamically change an image.

src

A(n) ____ request stops the processing of the JavaScript code until a response is returned from the server.

synchronous

Which sign does jQuery use as a shortcut for jQuery?

the $ sign

AJAX primarily relies on JavaScript and HTTP requests to exchange data between a client computer and a Web server.

true

An HTTP response message returns to the client the message and the status code. If the status code is 200, then the request was successful.

true

Each element on a Web page is represented in the HTML DOM by its own object.

true

JSON is a syntax for storing and exchanging data. It is considered a lightweight data interchange format and a subset of JavaScript. It is considered easy to use and understand and is language independent.

true

The DOM is a W3C (World Wide Web Consortium) standard.

true

The ability for one Web server to access Web pages and data on another Web server is the foundation of the World Wide Web.

true

The following code does the following: when a user clicks on a button, the element with id="test" will be hidden. $(document).ready(function(){ $("button").click(function(){ $("#test").hide(); }); });

true

The getElementsByName() method always returns an array, even if there is only one element in the document with a matching name attribute.

true

The innerHTML property is used to get or replace the content of an HTML element.

true

With AJAX, the JavaScript does not have to wait for the server response, but can instead execute other scripts while waiting for the server response.

true

jQuery uses CSS selectors to select elements?

true

A(n) ____ is a software component that resides on a Web server.

web service


Kaugnay na mga set ng pag-aaral

Technology and Informatics NCLEX

View Set

ATI Fundamentals Ch 12 Client safety

View Set

MS QUERY SQL: Create Database Objects

View Set

Chapter 13, Chapter 12 IPv6 Addressing, Chapter 11

View Set

Chapter 6 - Partnership Liquidation (LUMP-SUM)

View Set