Q 1.
निम्नलिखित कोड का परिणाम क्या है?
What is the output of the following code?console.log(10 + "20");
console.log(10 + "20");A. 1020
B. 30
C. 20
D. "1020"
Q 2.
जावास्क्रिप्ट में फ़ंक्शन घोषित करने के लिए किस कीवर्ड का उपयोग किया जाता है?
Which keyword is used to declare a function in JavaScript?
A. fun
B. func
C. function
D. def
Q 3.
निम्नलिखित कोड का परिणाम क्या है?
What is the output of the following code?var x = 10;
if (x > 15 || x < 5) {
console.log("x is not between 5 and 15");
} else {
console.log("x is between 5 and 15");
}
var x = 10;
if (x > 15 || x < 5) {
console.log("x is not between 5 and 15");
} else {
console.log("x is between 5 and 15");
}A. x is between 5 and 15
B. x is not between 5 and 15
C. Error
D. x is 5 and 15
Q 4.
निम्नलिखित कोड का परिणाम क्या है?
What is the output of the following code?var x = 10;
switch(x) {
case 5:
console.log("x is 5");
break;
case 10:
console.log("x is 10");
break;
default:
console.log("x is not 5 or 10");
}
var x = 10;
switch(x) {
case 5:
console.log("x is 5");
break;
case 10:
console.log("x is 10");
break;
default:
console.log("x is not 5 or 10");
}A. x is 5
B. x is 10
C. x is not 5 or 10
D. Error
Q 5.
निम्नलिखित कोड का परिणाम क्या है?
What is the output of the following code?var x = 10;
var y = 5;
console.log(x > y ? "x is greater than y" : "y is greater than x");
var x = 10;
var y = 5;
console.log(x > y ? "x is greater than y" : "y is greater than x");A. x is greater than y
B. y is greater than x
C. Error
D. print 10, 5