MCQOPTIONS
Bookmark
Saved Bookmarks
→
Javascript
→
Blobs in Javascript
→
Consider the following code snippet :..
1.
Consider the following code snippet :
A.
Undefined
B.
Null
C.
0
D.
1
E.
None of these
Answer» E. None of these
Show Answer
Discussion
No Comment Found
Post Comment
Related MCQs
Consider the following code snippet :<br><pre class="prettyprint lang-c">function constfunctions() <br>{<br> var functions = [];<br> for(var k = 0; k < 10; k++)<br> functions [k] = function() { return k; };<br> return functions ;<br>}<br>var functions = constfunctions();<br>functions [5]()<br></pre><br>What does the last statement return ?
Consider the following code snippet :<br><pre class="prettyprint lang-c">var p = counter(), q = counter(); <br>p.count()<br>q.count() <br>p.reset() <br>p.count() <br>q.count()<br></pre><br>The state stored in q is :
What is the difference between the two lines given below ?<br><pre class="prettyprint lang-c">!!(object1 && object2);<br>(object1 && object2);<br></pre>
For the below mentioned code snippet:<br><pre class="prettyprint lang-c">var obj = new Object();<br></pre><br>The equivalent statement is:
Consider the following code snippet :<br><pre class="prettyprint lang-c">var string2Number=parseInt("456pqr");<br></pre>
Consider the following code snippet :<br><pre class="prettyprint lang-c">var tensquared = (function(n) {return n*n;}(100));<br></pre><br>Will the above code work ?
Consider the following code snippet :<br><pre class="prettyprint lang-c">var Total=eval("5*5+10");<br></pre>
Consider the following code snippet<br><pre class="prettyprint lang-c">opt.fun(p,q);<br></pre><br>Which is an equivalent code for the above code snippet?
Consider the following code snippet<br><pre class="prettyprint lang-c">function output(n) <br>{<br> for(var v in n)<br> console.log(v + ": " + n[v] + " n");<br>}<br></pre><br>What will the above code snippet result ?
Consider the following code snippet<br><pre class="prettyprint lang-c">function hypotenuse(p, q) <br>{<br> function square(n) <br> { <br> return n*n; <br> }<br> return Math.sqrt(square(p) + square(q));<br>}<br></pre><br>What does the above code result?
Reply to Comment
×
Name
*
Email
*
Comment
*
Submit Reply