page-banner
WDP M2-R5.1 Quiz-10
Q 16. जावास्क्रिप्ट इंजन की आवश्यकता क्यों है?

Why is a JavaScript engine needed?

A. both compiling and interpreting JavaScript

B. parsing javascript

C. Interpreting Javascript

D. Compiling to Javascript

Q 17. जावास्क्रिप्ट _____ की प्रोग्रामिंग भाषा है।

JavaScript is the programming language of _____.

A. desktop

B. Mobile

C. Web

D. Server

Q 18. किसी HTML एलीमेंट को id द्वारा एक्सेस करने के लिए कौन सी जावास्क्रिप्ट विधि का उपयोग किया जाता है?

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 19. अलर्ट बॉक्स में लिखने के लिए किस जावास्क्रिप्ट विधि का उपयोग किया जाता है?

Which JavaScript method is used to write the alert box?

A. window.alertHTML()

B. window.alert()

C. window.alertbox()

D. window.alertContent()

Q 20. निम्नलिखित जावास्क्रिप्ट कोड का आउटपुट क्या होगा?

What will be the output of the following JavaScript code?

const myArray = ['h', 'e', 'l', 'l', 'o'];
document.write(myArray[0]);
document.write(myArray[1]);

A. He

B. undefined

C. ValueError

D. type error

Create Account