page-banner
WDP M2-R5.1 Quiz-3
Q 16. निम्नलिखित जावास्क्रिप्ट कोड स्निपेट में क्या होता है?<break-line><break-line>What happens in the following JavaScript code snippet?<pre><code>var js = 0; while (js < 10) { console.log(js); js++; }</code></pre>

A. an exception is thrown

B. The value of js is logged or stored in a particular location or storage

C. The value of js from 0 to 9 is displayed in the console

D. an error is displayed

Q 17. निम्नलिखित जावास्क्रिप्ट कोड का आउटपुट क्या होगा?<break-line><break-line>What will be the output of the following JavaScript code?<pre><code>var quiz = [1,2,3]; var js = [6,7,8]; var result = quiz.concat(js); document.write(result);</code></pre>

A. 1, 2, 3, 6, 7, 8

B. 123

C. 1, 2, 3

D. error

Q 18. जावास्क्रिप्ट इंजन की आवश्यकता क्यों है?<break-line><break-line>Why is a JavaScript engine needed?

A. both compiling and interpreting JavaScript

B. parsing javascript

C. Interpreting Javascript

D. Compiling to Javascript

Q 19. जावास्क्रिप्ट _____ की प्रोग्रामिंग भाषा है।<break-line><break-line>JavaScript is the programming language of _____

A. desktop

B. Mobile

C. Web

D. Server

Q 20. हम किस HTML एलीमेंट में जावास्क्रिप्ट कोड डालते हैं?<break-line><break-line>Which HTML element is used to insert JavaScript code?

A. <javascript>...</javascript>

B. <js>...</js>

C. <script>...</script>

D. <css>...</css>