Download - XML and jQuery Quiz QAs
-
7/22/2019 XML and jQuery Quiz QAs
1/2
jQuery:
1. The jQuery html() method works for both HTML and XML documentsa. Trueb. False
Ans: b
2. What is the correct jQuery code to set the background color of all p elements to red?
a. $("p").css("background-color","red");b. $("p").manipulate("background-color","red");c. $("p").layout("background-color","red");d. $("p").style("background-color","red");
Ans: a
3. Which jQuery method is used to perform an asynchronous HTTP request?
a. jQuery.ajax()b. jQuery.ajaxSetup()c. jQuery.ajaxAsync()
Ans: a
4. Which jQuery function is used to prevent code from running, before the document is finishedloading?
a. $(document).load()b. $(body).onload()c. $(document).ready()
Ans: c
XML:
1. There is a way of describing XML data, how?
a. XML uses a description node to describe datab. XML uses a DTD to describe the datac. XML uses XSL to describe data
Ans: b
2. What is the correct syntax of the declaration which defines the XML version?
a. b. c.
Ans: b
-
7/22/2019 XML and jQuery Quiz QAs
2/2
3. Which statement is true?
a. All the statements are trueb. All XML elements must be properly closedc. All XML elements must be lower cased. All XML documents must have a DTD
Ans: b
4. For the XML parser to ignore a certain section of your XML document, which syntax is correct?
a. Text to be ignored b. c. d. Text to be ignored
Ans: c