Q. Which property specifies the property of the event?

  • (A) Type
  • (B) Target
  • (C) Manner
  • (D) All of the mentioned
πŸ’¬ Discuss
βœ… Correct Answer: (A) Type
Explanation: All event objects have a type property that specifies the event type.

Q. The process by which the browser decides which objects to trigger event handlers on is

  • (A) Event Triggering
  • (B) Event Listening
  • (C) Event Handling
  • (D) Event propogation
πŸ’¬ Discuss
βœ… Correct Answer: (D) Event propogation
Explanation: Event propagation is the process by which the browser decides which objects to trigger event handlers on.

Q. Which form of event propogation handles the registered container elements?

  • (A) Event Propogation
  • (B) Event Registration
  • (C) Event Capturing
  • (D) Default Actions
πŸ’¬ Discuss
βœ… Correct Answer: (C) Event Capturing
Explanation: Another form of event propogation, known as event capturing, handlers specially registered on container elements have the opportunity to intercept ( or “capture” ) events before they are delivered to their actual target.

Q. The events that are directly tied to a specific input device are

  • (A) Device-independent input events
  • (B) Device-dependent input events
  • (C) User interface events
  • (D) State change events
πŸ’¬ Discuss
βœ… Correct Answer: (B) Device-dependent input events
Explanation: These are events that are directly tied to a specific input device, such as the mouse or keyboard) They include legacy event types such as “mousedown”, “mousemove”, “mouseup”, “keydown”, “keypress”, and “keyup” and also new touch specific events like “touchmove” and “gesturechange”.

Q. The high-level events among the following events are

  • (A) User interface events
  • (B) Device-independent events
  • (C) Device-dependent events
  • (D) All of the mentioned
πŸ’¬ Discuss
βœ… Correct Answer: (A) User interface events
Explanation: UI events are higher-level events, often on HTML form elements that define a user interface for a web application. They include the focus event (when a text input field gains keyboard focus), the change event when the user changes the value displayed by a form element, and the submit event when the user clicks a Submit button in a form.

Q. The events that are not directly tied to a specific input device are

  • (A) User interface events
  • (B) Device-independent events
  • (C) Device-dependent events
  • (D) All of the mentioned
πŸ’¬ Discuss
βœ… Correct Answer: (B) Device-independent events
Explanation: These are input events that are not directly tied to a specific input device. The click event, for example, indicates that a link or button (or other document element) has been activated) This is often done via a mouse click, but it could also be done by keyboard or (on touch-sensitive devices) by gesture.

Q. Which syntax is used to describe elements in CSS?

  • (A) Protectors
  • (B) Selectors
  • (C) Both Protectors and Selectors
  • (D) None of the mentioned
πŸ’¬ Discuss
βœ… Correct Answer: (B) Selectors
Explanation: CSS stylesheets have a very powerful syntax, known as selectors, for describing elements or sets of elements within a document.

Q. What does the following code snippet mean?
#log>span

  • (A) Span child after log declaration
  • (B) Specific span child of id greater than log
  • (C) Span child less than log
  • (D) Any span child of the element with id as log
πŸ’¬ Discuss
βœ… Correct Answer: (D) Any span child of the element with id as log
Explanation: The above code snippet means that any span child of the element with id=”log”.

Q. Which of the following is the ultiate element selection method?

  • (A) querySelectorAll()
  • (B) querySelector()
  • (C) queryAll()
  • (D) query()
πŸ’¬ Discuss
βœ… Correct Answer: (A) querySelectorAll()
Explanation: querySelectorAll() is the ultimate element selection method: it is a very powerful technique by which client-side JavaScript programs can select the document elements that they are going to manipulate.

Q. Which of the following is the Web application equivalent to querySelectorAll()?

  • (A) #()
  • (B) &()
  • (C) $()
  • (D) None of the mentioned
πŸ’¬ Discuss
βœ… Correct Answer: (C) $()
Explanation: Web applications based on jQuery use a portable, cross-browser equivalent to querySelectorAll() named $().