LIS2360 FINAL

Ace your homework & exams now with Quizwiz!

"DHTML" refers to a single technology. True or False

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. True or False

False

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

False

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

False

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

False

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

False

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

False

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

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 or False

True

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

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 or False

True

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

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 or False

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 or False

True

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

True

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

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 or False

True

jQuery uses CSS selectors to select elements? True or False

True

Look at the following selector: $("div p"). What does it select? a. All p elements inside a div element b. The first p element inside a div element c. All div elements with a p element d. None of these.

a. All p elements inside a div element

The XMLHttpRequest object uses ____ to exchange data between a client computer and a Web server. a. HTTP b. FTP c. HTTPS d. SSL

a. HTTP

Which jQuery function is used to prevent code from running, before the document is finished loading? a. $(document).onready() b. $(document).ready() c. $(document).load() d. $(document).onload()

b. $(document).ready()

At the core of DHTML is ____. a. JavaScript b. DOM c. XML d. CSS

b. DOM

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. a. POST b. GET c. PUT d. TRACE

b. GET

JSON stands for the following: a. JavaScript Open Network b. JavaScript Object Notation c.jQuery Source Object Notation c. Java Source Object Notation

b. JavaScript Object Notation

A(n) ____ is a software component that resides on a Web server. a. AJAX request b. Web service c. HTTP service d. DHTML service

b. Web service

The ____ method returns an array of elements that match a specified tag name. a.getElementsById() b.getElementsByTagName() c.getElementsByTagId() d.getElementsByName()

b. getElementsByTagName()

Which of the following is the correct syntax for accessing an element with the id value headline? a.document.getElementsById("headline") b.document.getElementById("headline") c.document.getElementByID("headline") d.document.getElementById(headline)

b.document.getElementById("headline")

The ____ property of the Image object allows JavaScript to dynamically change an image. a.img b.src c.path d.file

b.src

Which sign does jQuery use as a shortcut for jQuery? a. % b. & c. $ d. ?

c. $

The following jQuery statement will select all of the elements on the HTML document. a. $(.*) b. $(#all) c. $("*") d. $("all")

c. $("*")

What is the correct jQuery code for making all div elements 300 pixels high? a. $("div").pixel(300) b. $("div").yPos(300) c. $("div").height(300) d. $("div").height = 300

c. $("div").height(300)

What is the jQuery statement that will hide all <p> elements in an HTML document? a. None of these b. $(".p").hide() c. $("p").hide() d. $("#p").hide()

c. $("p").hide()

Which of the following features does jQuery library contain? a. Effects and animations b. CSS manipulation c. All are true d. HTML/DOM manipulation

c. All are true

Every Web page is identified by a unique address called the ____. a. host string b. host c. URL d. HTTP

c. URL

What is the correct JavaScript syntax to change the content of the HTML element below? <p id="demo">This is a demonstration.</p> a. #demo.innerHTML = "Hello World!"; b.document.getElementByName("p").innerHTML = "Hello World!"; c.document.getElementById("demo").innerHTML = "Hello World!"; d. document.getElement("p").innerHTML = "Hello World!";

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

Which of the following is the correct syntax for accessing the value of the href attribute for the third a element in a document? a.document.getElementByTagName("a")[3].href b.document.getElementByID=d("a").href c.document.getElementByTagName("a")[2].href d.document.getElementByTagName("href")[3]

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

With jQuery, look at the following selector: $("div.intro"). What does it select? a. The first div element with class = "intro" b. All div elements with id = "intro" c. The first div element with id = "intro" d. All div elements with class = "intro"

d. All div elements with class = "intro"

The term ____ refers to the application, usually a Web browser, which makes the request. a. HTTP server b. host c. HTTP URL d. HTTP client

d. HTTP client

What scripting language is jQuery written in? a. Java b. C++ c. C# d. JavaScript

d. JavaScript

Look at the following selector: $("p #intro"). What does it select? a. All p elements with class="intro" b. All p elements with id="intro" c. All intro elements with id="p" d. The p element with id="intro"

d. The p element with id="intro"

Through the ____ object you can access other objects that represent elements on a Web page. a. image b. input c. element d. document

d. document

A(n) ____ request stops the processing of the JavaScript code until a response is returned from the server. a. asynchronous b. global c. domain d. synchronous

d. synchronous


Related study sets

Ameritrain - Final Exam Questions

View Set

Psychology Exam I :Chapter 1 & 2

View Set

CGMS FBLA Principles and Procedures

View Set

3.5: The Supreme Court and Modern Federalism

View Set

Chapter 17 Neurological Emergencies

View Set

Chapter 3 Relational Database Model

View Set