page-banner
WDP M2-R5.1 Quiz-15
Q 1. निम्नलिखित कोड का परिणाम क्या है?<break-line><break-line>What is the output of the following code?<pre><code>console.log(10 + "20");</code></pre>

A. 1020

B. 30

C. 20

D. "1020"

Q 2. जावास्क्रिप्ट में फ़ंक्शन घोषित करने के लिए किस कीवर्ड का उपयोग किया जाता है?<break-line><break-line>Which keyword is used to declare a function in JavaScript?

A. fun

B. func

C. function

D. def

Q 3. निम्नलिखित कोड का परिणाम क्या है?<break-line><break-line>What is the output of the following code?<pre><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"); }</code></pre>

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. निम्नलिखित कोड का परिणाम क्या है?<break-line><break-line>What is the output of the following code?<pre><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"); }</code></pre>

A. x is 5

B. x is 10

C. x is not 5 or 10

D. Error

Q 5. निम्नलिखित कोड का परिणाम क्या है?<break-line><break-line>What is the output of the following code?<pre><code>var x = 10; var y = 5; console.log(x > y ? "x is greater than y" : "y is greater than x");</code></pre>

A. x is greater than y

B. y is greater than x

C. Error

D. print 10, 5