LIS Final
jQuery uses CSS selectors to select elements?
True
The following jQuery statement will select all of the elements on the HTML document. -$(.*) -$(#all) -$("*") -$("all")
$("*")
What is the correct jQuery code for making all div elements 300 pixels high? -$("div").height = 300 -$("div").height(300) -$("div").yPos(300) -$("div").pixel(300)
$("div").height(300)
What is the jQuery statement that will hide all <p> elements in an HTML document? -None of these -$("p").hide() -$("#p").hide() -$(".p").hide()
$("p").hide()
Which jQuery function is used to prevent code from running, before the document is finished loading? -$(document).load() -$(document).onready() -$(document).ready() -$(document).onload()
$(document).ready()
Which of the following features does jQuery library contain? -Effects and animations -All are true -HTML/DOM manipulation -CSS manipulation
All are true
With jQuery, look at the following selector: $("div.intro"). What does it select? -All div elements with class = "intro" -The first div element with class = "intro" -The first div element with id = "intro" -All div elements with id = "intro"
All div elements with class = "intro"
Look at the following selector: $("div p"). What does it select? -The first p element inside a div element -None of these. -All div elements with a p element -All p elements inside a div element
All p elements inside a div element
At the core of DHTML is ____. -DOM -JavaScript -XML -CSS
DOM
Through the ____ object you can access other objects that represent elements on a Web page. -Image -Input -Element -Document
Document
"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
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. -TRACE -POST -PUT -GET
GET
The XMLHttpRequest object uses ____ to exchange data between a client computer and a Web server. -HTTP -FTP -HTTPS -SSL
HTTP
The term ____ refers to the application, usually a Web browser, which makes the request. -HTTP server -host -HTTP URL -HTTP client
HTTP client
What scripting language is jQuery written in? -C# -Java -C++ -JavaScript
JavaScript
JSON stands for the following: -JavaScript Object Notation -jQuery Source Object Notation -JavaScript Open Network -Java Source Object Notation
JavaScript Object Notation
Look at the following selector: $("p #intro"). What does it select? -The p element with id="intro" -All intro elements with id="p" -All p elements with class="intro" -All p elements with id="intro"
The p element with id="intro"
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
A(n) ____ is a software component that resides on a Web server. -AJAX request -Web service -HTTP service -DHTML service
Web service
What is the correct JavaScript syntax to change the content of the HTML element below? <p id="demo">This is a demonstration.</p> -document.getElementByName("p").innerHTML = "Hello World!"; -document.getElementById("demo").innerHTML = "Hello World!"; -#demo.innerHTML = "Hello World!"; -document.getElement("p").innerHTML = "Hello World!";
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") -document.getElementsById("headline") -document.getElementById(headline) -document.getElementByID("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.getElementByID=d("a").href -document.getElementByTagName("a")[3].href -document.getElementByTagName("a")[2].href -document.getElementByTagName("href")[3]
document.getElementByTagName("a")[2].href
The ____ method returns an array of elements that match a specified tag name. -getElementsById() -getElementsByTagName() -getElementsByTagId() -getElementsByName()
getElementsByTagName()
Every Web page is identified by a unique address called the ____. -host string -host -Correct URL -HTTP
host string
The ____ property of the Image object allows JavaScript to dynamically change an image. -src -img -path -file
src
A(n) ____ request stops the processing of the JavaScript code until a response is returned from the server. -asynchronous -global -domain -synchronous
synchronous
Which sign does jQuery use as a shortcut for jQuery? -the ? sign -the $ sign -the % sign -the & sign
the $ sign