AJAX QUIZ DESCRIPTION Total Questions −30 00 Max Time − 15:00 Write a jQuery statement to remove all child elements only from the element having id "notif"? $("notif").empty(); $("#notif").empty(); $(".notif").empty(); $("<notif>").empty(); ............. is a widely used and effective machine learning algorithm based on the idea of bagging. Regression Classification Decision Tree Random Forest What does the XMLHttpRequest object accomplish in Ajax? It’s the programming language used to develop Ajax applications. It provides a means of exchanging structured data between the Web server and client. It provides the ability to asynchronously exchange data between Web browsers and a Web server. It provides the ability to mark up and style the display of Web-page text. Which jQuery DOM method is used to get the attribute value? attr() attribute() attrib() val() Which are the jQuery methods for traversing down the DOM tree? children() find() childrens() Both A. and B. Which is the correct jQuery statement to set background color and text decoration to all <p> elements? $("p").css({"background-color": "#f1f1f1"; "text-decoration": "underline"}); $("#p").css({"background-color": "#f1f1f1"; "text-decoration": "underline"}); $("p").css({"background-color": "#f1f1f1", "text-decoration": "underline"}); $("#p").css({"background-color": "#f1f1f1", "text-decoration": "underline"}); Which jQuery DOM method is used to insert content at the beginning of the selected elements? insert() before() append() prepend() What is the official name of JavaScript? NetscapeScript XMLScript ECMAScript WebScript _____ JavaScript statements embedded in an HTML page can respond to user events such as mouse-clicks, form input, and page navigation. Client-side Server-side Local Native Choose the server-side JavaScript object? FileUpLoad Function File Date Which are the jQuery methods for traversing up the DOM tree? parent() parents() parentsUntil() All of the above Machine Learning is a field of AI consisting of learning algorithms that .............. At executing some task Over time with experience Improve their performance All of the above Assuming that “xmlhttp” is a user-defined variable that carrys the Ajax requesting object, xmlhttp.status can carry a value of 0 after a successful request. True False Write a jQuery statement to remove all <p> elements with class="prog"? $(".prog").remove(); $("p").empty(".prog"); $("p").remove(".prog"); $("p.prog").remove(); Can we add more than one CSS classes to the selected elements using the addClass() method? Yes No Which is the correct jQuery statement to change the color of all <p> elements which are sibling elements of <pre>? $("#pre").siblings("p").css({"color": "red"}); $(".pre").siblings("p").css({"color": "red"}); $("pre").siblings(".p").css({"color": "red"}); $("pre").siblings("p").css({"color": "red"}); Which jQuery method is used to get the all next sibling element of the selected element? siblingAll() nextSiblingAll() nextAll() siblingsAll() Which one of these technologies is NOT used in AJAX? CSS DOM DHTML Flash From the provided methods, pick the right one that returns the value of an attribute: attribute[index].text attribute() getAttribute() All of above Can a call to the “send” method fire an error (assuming the user’s browser supports the XMLHttpRequest Object and the “send” method )? Yes No Which of following has AJAX is a built-in functionality? .NET Framework 3.5 .NET Framework 2.0 .NET Framework 3.0 .NET Framework 4.0 Is it possible to use multiple ScriptManager controls on a Web page? Yes No ActiveX can be disabled via browser settings. True False The XMLHttpRequest object is used to exchange data with a server.True or False? True False Which jQuery method is used to get descendant elements of the selected element, all the way down to the last descendant? children() find() childrens() Both A. and B. If you want to create a secure application you should not use AJAX. Yes No Ajax is a programming language. True False Which is the correct syntax to insert content after the <div> elements? $("div").after("Text to be added"); $("div").postpend("Text to be added"); $("div").addafter("Text to be added"); $("#div").after("Text to be added"); Let suppose there are multiple <h3> elements in an HTML document, which is the correct jQuery statement to get the first <h3> element? $("h3").first(); $("h3").parent(); $("h3").firstParent(); $("h3").top(); The XMLHttpRequest object supports a method called “quit”. True False Previous Next Total Question16 Wrong Answer13 Right Answer13