Menu mobile
Home
Programming
Python Tutorial
Java Tutorial
C Tutorial
C++ Tutorial
Web Technology
HTML
CSS
Java Script
PHP
React JS
Node JS
Assignment
MS Office
HTML
CSS
Bootstrap
Java Script
JQuery
AngularJs
Project
Blog
QUIZ ON : javascript - JS EVENTS
JS EVENTS
00:00:00
English
Hindi
Question No# :
01
out of 22
Identify the invalid HTML event.
इनवैलिड HTML ईवेंट की पहचान करें.|
A.
upload
upload
B.
load
load
C.
onmouseout
onmouseout
D.
onmouseover
onmouseover
Question No# :
02
out of 22
Which method is used to stop an event from propagating to parent elements in the DOM?
किसी ईवेंट को DOM में मूल तत्वों तक फैलने से रोकने के लिए किस विधि का उपयोग किया जाता है?
A.
stopImmediatePropagation()
stopImmediatePropagation()
B.
preventDefault()
preventDefault()
C.
stopPropagation()
stopPropagation()
D.
cancelPropagation()
cancelPropagation()
Question No# :
03
out of 22
Which event fires when the user right-clicks on an element?
जब उपयोगकर्ता किसी तत्व पर राइट-क्लिक करता है तो कौन सी घटना सक्रिय हो जाती है?
A.
oncontextmenu
oncontextmenu
B.
onmousedown
onmousedown
C.
onrightclick
onrightclick
D.
onselect
onselect
Question No# :
04
out of 22
Which of the following events occurs when an HTML form is submitted?
जब HTML फॉर्म सबमिट किया जाता है तो निम्नलिखित में से कौन सी घटना घटित होती है?
A.
onchange
onchange
B.
onsubmit
onsubmit
C.
oninput
oninput
D.
onreset
onreset
Question No# :
05
out of 22
Which event is triggered when the user scrolls the webpage or an element?
जब उपयोगकर्ता वेबपेज या किसी तत्व को स्क्रॉल करता है तो कौन सी घटना ट्रिगर होती है?
A.
onmove
onmove
B.
onscroll
onscroll
C.
onchange
onchange
D.
onresize
onresize
Question No# :
06
out of 22
Which event occurs when a JavaScript error occurs in the browser?
ब्राउज़र में जावास्क्रिप्ट त्रुटि होने पर कौन सी घटना घटित होती है?
A.
onerror
onerror
B.
onexception
onexception
C.
onwarning
onwarning
D.
onfail
onfail
Question No# :
07
out of 22
Which event occurs when a user clicks on an HTML element?
जब कोई यूजर HTML एलिमेंट पर क्लिक करता है तो कौन सी इवेंट उत्त्पन होती है?
A.
onmouseover
onmouseover
B.
onchange
onchange
C.
onclick
onclick
D.
onhover
onhover
Question No# :
08
out of 22
Which event occurs when the user moves the mouse pointer over an element?
जब यूजर किसी तत्व पर माउस पॉइंटर ले जाता है तो कौन सी घटना घटित होती है?
A.
onmouseenter
onmouseenter
B.
onmouseover
onmouseover
C.
onmouseout
onmouseout
D.
onmove
onmove
Question No# :
09
out of 22
What event is triggered when the user presses a key on the keyboard?
जब उपयोगकर्ता कीबोर्ड पर एक कुंजी दबाता है तो कौन सी घटना शुरू हो जाती है?
A.
onkeypress
onkeypress
B.
onkeydown
onkeydown
C.
onkeyup
onkeyup
D.
All of the above
All of the above
Question No# :
10
out of 22
Which event handler would you use to respond to an input field as the user is typing?
जब उपयोगकर्ता टाइप कर रहा हो तो इनपुट फ़ील्ड पर प्रतिक्रिया देने के लिए आप किस इवेंट हैंडलर का उपयोग करेंगे?
A.
onchange
onchange
B.
onkeydown
onkeydown
C.
oninput
oninput
D.
onkeypress
onkeypress
Question No# :
11
out of 22
What is the correct way to attach an event handler in JavaScript using addEventListener()?
AddEventListener() का उपयोग करके जावास्क्रिप्ट में इवेंट हैंडलर संलग्न करने का सही तरीका क्या है?
A.
element.addEventListener("click", function);
element.addEventListener("click", function);
B.
element.addEventHandler("click", function);
element.addEventHandler("click", function);
C.
element.attach("click", function);
element.attach("click", function);
D.
element.on("click", function);
element.on("click", function);
Question No# :
12
out of 22
Which is not a mouse event?
कौन सा माउस इवेंट नहीं है?
A.
onclickmouse
onclickmouse
B.
onmouseover
onmouseover
C.
onmouseout
onmouseout
D.
onmouseup
onmouseup
Question No# :
13
out of 22
Which event handler is used to trigger an action when the user releases a key on the keyboard?
जब उपयोगकर्ता कीबोर्ड पर कुंजी जारी करता है तो कार्रवाई को ट्रिगर करने के लिए किस इवेंट हैंडलर का उपयोग किया जाता है?
A.
onkeypress
onkeypress
B.
onkeydown
onkeydown
C.
onkeyup
onkeyup
D.
onkeyrelease
onkeyrelease
Question No# :
14
out of 22
What event occurs when an element size changes, like when a window is resized?
जब किसी तत्व का आकार बदलता है, जैसे विंडो का आकार बदला जाता है तो कौन सी घटना घटित होती है?
A.
onsize
onsize
B.
onresize
onresize
C.
onzoom
onzoom
D.
onexpand
onexpand
Question No# :
15
out of 22
What is the difference between the onblur and onfocus events in JavaScript?
जावास्क्रिप्ट में ऑनब्लर और ऑनफोकस इवेंट के बीच क्या अंतर है?
A.
onblur fires when an element loses focus, and onfocus fires when an element gains focus
onblur fires when an element loses focus, and onfocus fires when an element gains focus
B.
Both events fire when the window is minimized
Both events fire when the window is minimized
C.
Both events trigger when the page is loaded
Both events trigger when the page is loaded
D.
onblur fires when an element is clicked, and onfocus fires when the mouse moves over an element
onblur fires when an element is clicked, and onfocus fires when the mouse moves over an element
Question No# :
16
out of 22
Which event is fired when the page has completely loaded, including all dependent resources such as stylesheets and images?
जब पेज पूरी तरह से लोड हो जाता है, जिसमें स्टाइलशीट और छवियों जैसे सभी निर्भर संसाधन शामिल होते हैं, तो कौन सा ईवेंट सक्रिय हो जाता है?
A.
onload
onload
B.
DOMContentLoaded
DOMContentLoaded
C.
onstart
onstart
D.
oninit
oninit
Question No# :
17
out of 22
The ____ event occurs when the user clicks on a HTML element.
____ इवेंट तब होती है जब उपयोगकर्ता HTML एलिमेंट पर क्लिक करता है।
A.
onclick
onclick
B.
onmouseover
onmouseover
C.
onmousehover
onmousehover
D.
onmouseclick
onmouseclick
Question No# :
18
out of 22
Which of the following is not a mouse event ?
निम्नलिखित में से कौन एक माउस इवेंट नहीं है?
A.
onclick
ऑनक्लिक
B.
onmousescroller
ऑनमाउसस्क्रोलर
C.
onmouseover
ऑनमाउसओवर
D.
onmousemove
ऑनमाउसमूव
Question No# :
19
out of 22
What is the purpose of the focus event in JavaScript?
जावास्क्रिप्ट में फोकस इवेंट का उद्देश्य क्या है?
A.
It is triggered when an element is clicked
It is triggered when an element is clicked
B.
It is triggered when an element gains focus
It is triggered when an element gains focus
C.
It is triggered when an element is hovered
It is triggered when an element is hovered
D.
It is triggered when the window is resized
It is triggered when the window is resized
Question No# :
20
out of 22
Which event occurs when a user changes the content of an input field?
जब कोई उपयोगकर्ता इनपुट फ़ील्ड की सामग्री बदलता है तो कौन सी घटना घटित होती है?
A.
oninput
oninput
B.
onchange
onchange
C.
onedit
onedit
D.
onupdate
onupdate
Question No# :
21
out of 22
Which event occurs when an HTML element is double-clicked?
जब HTML तत्व पर डबल-क्लिक किया जाता है तो कौन सी घटना घटित होती है?
A.
ondblclick
ondblclick
B.
onclick
onclick
C.
onmouseclick
onmouseclick
D.
onhoverclick
onhoverclick
Question No# :
22
out of 22
How can you detect the loading progress of a resource, such as an image or file, using JavaScript?
आप जावास्क्रिप्ट का उपयोग करके किसी संसाधन, जैसे छवि या फ़ाइल, की लोडिंग प्रगति का पता कैसे लगा सकते हैं?
A.
onprogress
onprogress
B.
onload
onload
C.
onerror
onerror
D.
oncomplete
oncomplete
Latest Current Affairs 2025
Online Exam Quiz for One day Exam
Online Typing Test
CCC Online Test 2025
Python Programming Tutorials
Best Computer Training Institute in Prayagraj (Allahabad)
Best Java Training Institute in Prayagraj (Allahabad)
Best Python Training Institute in Prayagraj (Allahabad)
O Level Online Test in Hindi
Bank SSC Railway TET UPTET Question Bank
career counselling in allahabad
Sarkari Naukari Notification
Best Website and Software Company in Allahabad
Sarkari Exam Quiz