1.
The syntax for hiding HTML elements with speed parameter is
Correct Answer
A. $(selector).hide(speed,callback);
Explanation
The correct answer is $(selector).hide(speed,callback);. This is because the .hide() function in jQuery is used to hide HTML elements, and it can take two optional parameters: speed and callback. The speed parameter specifies the speed of the hiding animation, and the callback parameter is a function to be executed after the hiding is complete. Therefore, the correct syntax for hiding HTML elements with a speed parameter is $(selector).hide(speed,callback).
2.
The following are JQuery fading methods except
Correct Answer
D. FadeOff()
Explanation
The given answer is correct because the jQuery fading methods mentioned are fadeIn(), fadeOut(), and fadeToggle(). However, there is no such method as fadeOff() in jQuery.
3.
Which of the following is a JQuery animation syntax with speed parameter?
Correct Answer
C. $(selector).animate({params},speed,callback);
Explanation
The correct answer is $(selector).animate({params},speed,callback);. This syntax follows the correct order of parameters for the jQuery animate() function, where the first parameter is the set of CSS properties and values to animate, the second parameter is the speed or duration of the animation, and the third parameter is an optional callback function to be executed after the animation completes.
4.
Which of the following JQuery dimension methods method returns the height of an element and includes padding?
Correct Answer
B. InnerHeight()
Explanation
The innerHeight() method in jQuery returns the height of an element, including padding. This means that it calculates the total height of the element, including any padding that has been applied to it. This is useful when you need to know the exact height of an element, including any space that has been added through padding.
5.
A JQuery technique that allows you to run multiple JQuery commands, one after the other, on the same element(s) is known as
Correct Answer
A. Branding
6.
The innerWidth method returns the width of an element and
Correct Answer
C. Includes padding
Explanation
The innerWidth method returns the width of an element and includes the padding. This means that the returned value will include the width of the content plus any padding that has been applied to the element. It does not include the margin or the border.
7.
Which of the following will set the background-color value for ALL matched elements?
Correct Answer
A. $("p").css("background-color", "all");
8.
Which of the following is not part of JQuery filtering method?
Correct Answer
B. Second()
Explanation
The second() method is not part of the jQuery filtering methods. jQuery provides several filtering methods such as first(), last(), and eq() to manipulate and filter elements in a selection. However, there is no second() method in jQuery.
9.
Which of the following is not part of JAVASCRIPT frameworks?
Correct Answer
D. Asp
Explanation
ASP (Active Server Pages) is not part of JavaScript frameworks. It is a server-side scripting language used for building dynamic web pages. JavaScript frameworks, on the other hand, are libraries or tools that provide pre-written JavaScript code to simplify web development. Angular, jQuery, and Knockout are popular JavaScript frameworks used for creating interactive and dynamic web applications.
10.
Which of the following JQuery syntaxes requests data from the server?
Correct Answer
A. $.get(URL,callback);
Explanation
The correct answer is $.get(URL,callback);. This syntax is used in jQuery to send an HTTP GET request to the server and retrieve data. It takes in the URL of the server, a callback function to handle the response, and optional data to send along with the request.