DSSSB TGT CS 2023 Shift 2 – Question 177

Question:

What is/are the purpose(s) of JavaScript events?
i) Provide a dynamic interface to a webpage.
ii) Provide a static interface to a webpage.

जावास्क्रिप्ट इवेंट्स का/के उद्देश्य क्या है/हैं?
i) किसी वेबपेज को डायनेमिक इंटरफ़ेस प्रदान करना।
ii) किसी वेबपेज को स्टैटिक इंटरफ़ेस प्रदान करना।

Options:

  • Only (i)
  • Only (ii)
  • Both (i) and (ii)
  • Neither (i) nor (ii)
  • केवल (i)
  • केवल (ii)
  • (i) और (ii), दोनों
  • न तो (i) और न ही (ii)

Correct Answer: a)

Explanation:

JavaScript events (such as click, mouseover, submit, keydown, onload) are actions or occurrences that happen in the browser, either triggered by user interaction or by the browser itself. Event handlers/listeners execute code in response to these events to dynamically update content, validate form input, show animations, and modify DOM elements without refreshing the entire page.

Thus, JavaScript events serve to provide a dynamic and interactive interface to the webpage. A static interface is the default nature of plain HTML/CSS without programming scripts.

Therefore, only (i) is the purpose. The correct option is a).

जावास्क्रिप्ट इवेंट्स (जैसे click, hover, keypress, submit आदि) ब्राउज़र में उपयोगकर्ता की गतिविधियों या सिस्टम परिवर्तनों का पता लगाते हैं। इनका मुख्य उद्देश्य वेबपेज को इंटरैक्टिव बनाना और उसे डायनेमिक (गतिशील) इंटरफ़ेस प्रदान करना है, जिससे बिना पेज रीलोड किए DOM को अपडेट किया जा सके। स्टैटिक इंटरफ़ेस सामान्य HTML/CSS द्वारा प्रदान किया जाता है।

अतः केवल (i) सही उद्देश्य है। सही उत्तर विकल्प a) है।

Leave a Comment

Your email address will not be published. Required fields are marked *

Scroll to Top