page-banner
WDP M2-R5.1 Quiz-4
Q 1. जावास्क्रिप्ट को अनदेखा करता है?<break-line><break-line>Ignores Javascript?

A. newlines

B. tab

C. empty space

D. all of the above

Q 2. वर्तमान HTML दस्तावेज़ में बाहरी जावास्क्रिप्ट फ़ाइल को कॉल करने के लिए सही सिंटैक्स कौन सा है?<break-line><break-line>Which is the correct syntax to call an external JavaScript file in the current HTML document?

A. <script src="jsfile.js"></script>

B. <script href="jsfile.js"></script>

C. <import src="jsfile.js"></import>

D. <script link="jsfile.js"></script>

Q 3. किसी HTML एलीमेंट को id द्वारा एक्सेस करने के लिए कौन सी जावास्क्रिप्ट विधि का उपयोग किया जाता है?<break-line><break-line>Which JavaScript method is used to access an HTML element by id?

A. getElementById()

B. gate element (id)

C. getElementById(id)

D. ElementById(id)

Q 4. HTML आउटपुट लिखने के लिए किस जावास्क्रिप्ट विधि का उपयोग किया जाता है?<break-line><break-line>Which JavaScript method is used to write HTML output?

A. document.write()

B. document.output()

C. console.log()

D. document.writeHtml()

Q 5. अलर्ट बॉक्स में लिखने के लिए किस जावास्क्रिप्ट विधि का उपयोग किया जाता है?<break-line><break-line>Which JavaScript method is used to write the alert box?

A. window.alertHTML()

B. window.alert()

C. window.alertbox()

D. window.alertContent()