Q 16.
निम्नलिखित जावास्क्रिप्ट कोड स्निपेट में क्या होता है?
What happens in the following JavaScript code snippet?var js = 0;
while (js < 10) {
console.log(js);
js++;
}
var js = 0;
while (js < 10) {
console.log(js);
js++;
}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.
निम्नलिखित जावास्क्रिप्ट कोड का आउटपुट क्या होगा?
What will be the output of the following JavaScript code?var quiz = [1,2,3];
var js = [6,7,8];
var result = quiz.concat(js);
document.write(result);
var quiz = [1,2,3];
var js = [6,7,8];
var result = quiz.concat(js);
document.write(result);A. 1, 2, 3, 6, 7, 8
B. 123
C. 1, 2, 3
D. error
Q 18.
जावास्क्रिप्ट इंजन की आवश्यकता क्यों है?
Why is a JavaScript engine needed?
A. both compiling and interpreting JavaScript
B. parsing javascript
C. Interpreting Javascript
D. Compiling to Javascript
Q 19.
जावास्क्रिप्ट _____ की प्रोग्रामिंग भाषा है।
JavaScript is the programming language of _____
A. desktop
B. Mobile
C. Web
D. Server
Q 20.
हम किस HTML एलीमेंट में जावास्क्रिप्ट कोड डालते हैं?
Which HTML element is used to insert JavaScript code?
A. <javascript>...</javascript>
B. <js>...</js>
C. <script>...</script>
D. <css>...</css>