DSSSB TGT CS 2023 Shift 2 – Question 119

Question:

Match the column JavaScript-Events with the column Descriptions.

JavaScript-Events Descriptions
a) onchange i) The browser has finished loading the page.
b) onmouseover ii) An HTML element has been changed.
c) onkeydown iii) The user moves the mouse over an HTML element.
d) onload iv) The user pushes a keyboard key.

जावास्क्रिप्ट-इवेंट्स और उनके विवरण का मिलान करें।

जावास्क्रिप्ट-इवेंट्स विवरण
a) onchange i) ब्राउज़र ने पेज लोड करना समाप्त कर लिया है।
b) onmouseover ii) एक HTML एलिमेंट बदल दिया गया है।
c) onkeydown iii) उपयोगकर्ता माउस को किसी HTML एलिमेंट के ऊपर ले जाता है।
d) onload iv) उपयोगकर्ता कीबोर्ड की कोई कुंजी दबाता है।

Options:

  • a-ii, b-iii, c-iv, d-i
  • a-iii, b-ii, c-iv, d-i
  • a-ii, b-iv, c-iii, d-i
  • a-iv, b-iii, c-i, d-ii
  • a-ii, b-iii, c-iv, d-i
  • a-iii, b-ii, c-iv, d-i
  • a-ii, b-iv, c-iii, d-i
  • a-iv, b-iii, c-i, d-ii

Correct Answer: a)

Explanation:

In JavaScript event handling:

– a) onchange: Triggered when the value of an input element (like \(<input>\), \(<select>\), or \(<textarea>\)) has been modified and committed by the user \(\rightarrow\) ii.
– b) onmouseover: Triggered when the user hovers/moves the mouse pointer over an element \(\rightarrow\) iii.
– c) onkeydown: Triggered at the instant the user presses down a key on the keyboard \(\rightarrow\) iv.
– d) onload: Triggered when the whole web page (including images, stylesheets, and scripts) has completely finished loading \(\rightarrow\) i.

Thus, the correct matching is a-ii, b-iii, c-iv, d-i.

Hence, option 1 is the correct answer.

जावास्क्रिप्ट (JavaScript) में ईवेंट्स का मिलान:

– a) onchange: तब ट्रिगर होता है जब किसी HTML फॉर्म एलीमेंट (जैसे इनपुट बॉक्स, ड्रॉपडाउन) का मान बदल दिया जाता है \(\rightarrow\) ii।
– b) onmouseover: तब सक्रिय होता है जब उपयोगकर्ता माउस कर्सर को किसी HTML एलीमेंट के ऊपर ले जाता है \(\rightarrow\) iii।
– c) onkeydown: तब सक्रिय होता है जब उपयोगकर्ता कीबोर्ड की कोई कुंजी दबाता है \(\rightarrow\) iv।
– d) onload: तब सक्रिय होता है जब वेब पेज और उसकी सामग्री ब्राउज़र द्वारा पूरी तरह लोड हो जाती है \(\rightarrow\) i।

अतः सही मिलान a-ii, b-iii, c-iv, d-i है।

अतः सही उत्तर विकल्प 1 है।

Leave a Comment

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

Scroll to Top