Q 11.
निम्नलिखित में से कौन सा सही वर्णन करता है कि जब एक यूनिक्स मशीन पर एक जावास्क्रिप्ट प्रोग्राम विकसित किया जाता है तो क्या होता है?
Which of the following correctly describes what happens when a JavaScript program is developed on a Unix machine?
A. Will work perfectly on Windows machine
B. Javascript will be displayed on the browser as text
C. will throw errors and exceptions
D. should be limited to Unix machine only
Q 12.
एक अधिक कुशल जावास्क्रिप्ट कोड स्निपेट कौन सा है?
Which is a more efficient JavaScript code snippet?
A. Code 1
B. code 2
C. Both code 1 and code 2
D. cannot compare
Q 13.
निम्नलिखित जावास्क्रिप्ट कोड का आउटपुट क्या होगा?
What will be the output of the following JavaScript code?function range(int javascript) {
int a = 5;
for(int i=0;i<javascript;i++) {
console.log(a);
}
}
range(3);
function range(int javascript) {
int a = 5;
for(int i=0;i<javascript;i++) {
console.log(a);
}
}
range(3);A. 2
B. 5
C. 555
D. Error
Q 14.
जावास्क्रिप्ट और जावा के बीच बुनियादी अंतर क्या है?
What is the basic difference between JavaScript and Java?
A. functions are considered to be fields
B. Functions are values, and there is no hard distinction between methods and fields
C. variables are specific
D. there is no difference
Q 15.
निम्नलिखित जावास्क्रिप्ट कोड का आउटपुट क्या होगा?
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