1.
Which of the following is not a basic knowledge for studying JQuery?
Correct Answer
B. pHP
Explanation
PHP is not a basic knowledge required for studying JQuery. JQuery is a JavaScript library that simplifies HTML document traversing, event handling, and animating. It focuses on enhancing the functionality of web pages by using JavaScript. HTML, JavaScript, and CSS are the fundamental languages for web development, and having a good understanding of these languages is essential for studying JQuery. However, PHP is a server-side scripting language used for web development, and it is not directly related to JQuery.
2.
The frame work of JAVASCRIPT is
Correct Answer
C. JQuery
Explanation
The correct answer is JQuery because JQuery is a popular JavaScript library that simplifies HTML document traversing, event handling, animating, and Ajax interactions for rapid web development. It provides an easy-to-use framework for manipulating HTML elements, handling events, and making asynchronous requests to the server. While HTML, CSS, and Bootstrap are all important components of web development, JQuery specifically refers to a JavaScript library that enhances and extends the functionality of JavaScript.
3.
The function of sign $ is to
Correct Answer
A. Access JQuery
Explanation
The function of sign $ is to access JQuery. JQuery is a popular JavaScript library that simplifies HTML document traversing, event handling, animating, and Ajax interactions for rapid web development. The sign $ is used as a shorthand notation to access and manipulate elements using JQuery syntax. It allows developers to easily select and manipulate HTML elements, apply CSS styles, handle events, and perform various other actions on the webpage.
4.
Which of the following is not part of JQuery selectors?
Correct Answer
C. The addition selector
Explanation
The addition selector is not part of JQuery selectors. JQuery selectors allow you to select and manipulate HTML elements based on their attributes, classes, and IDs. The .class selector selects elements with a specific class, the #id selector selects elements with a specific ID, and the element selector selects elements based on their tag name. However, there is no such thing as an addition selector in JQuery.
5.
Which of the following JQuery event methods attaches an event handler function to an HTML element when the user clicks on the HTML element?
Correct Answer
A. Click()
Explanation
The click() method attaches an event handler function to an HTML element when the user clicks on the HTML element. This means that when the user clicks on the specified element, the function specified in the event handler will be executed.
6.
Which of the following syntaxes selects the current HTML element?
Correct Answer
C. $(this)
Explanation
The syntax $(this) selects the current HTML element. The keyword "this" refers to the element that triggered the event or is currently being manipulated. The $() function is used in jQuery to select elements based on a given selector, and in this case, "this" is used as the selector to target the current element.
7.
The function that is executed when the mouse pointer enters the HTML element is
Correct Answer
C. Mouseenter()
Explanation
The correct answer is "mouseenter()". This function is executed when the mouse pointer enters the HTML element.
8.
The function focus() is executed when
Correct Answer
C. Form field gets focus
Explanation
The function focus() is executed when the form field gets focus. This means that when the user clicks or tabs into the form field, the focus() function will be triggered.
9.
Which of the following is the basic JQuery syntax?
Correct Answer
A. $(selector).action()
Explanation
The correct answer is $(selector).action(). In jQuery, the basic syntax starts with the dollar sign ($), followed by parentheses that contain a selector, and then a period (.) followed by an action. This syntax allows you to select elements from the DOM using the selector and perform actions on them using the specified action.
10.
Which of the following selects an HTML element with id test?
Correct Answer
A. $(".test")
Explanation
The correct answer is $(".test"). This is because the "$" symbol in JavaScript is used to select elements in the DOM (Document Object Model). The syntax $(".test") uses the class selector "$" followed by parentheses and the class name "test" inside quotation marks. This will select all HTML elements with the class name "test". On the other hand, $("#test") would select an element with the id "test", $(test) would select a variable named "test", and $("test") would select all HTML elements with the tag name "test".