Question
var a1 = [,,,];
var a2 = new Array(3);
0 in a1
0 in a2
a.
true false
b.
false true
c.
true true
d.
false true
Posted under JavaScript
Engage with the Community - Add Your Comment
Confused About the Answer? Ask for Details Here.
Know the Explanation? Add it Here.
Q. Consider the following code snippet. The result would be
Similar Questions
Discover Related MCQs
Q. The pop() method of the array does which of the following task ?
View solution
Q. Consider the following code snippet :
if (!a[i]) continue ;
What is the observation made ?
View solution
Q. What will happen if reverse() and join() methods are used simultaneously ?
View solution
Q. Consider the following code snippet :
var a = [1,2,3,4,5];
a.slice(0,3);
What is the possible output for the above code snippet ?
View solution
Q. The primary purpose of the array map() function is that it
View solution
Q. The reduce and reduceRight methods follow a common operation called
View solution
Q. The method or operator used to identify the array is
View solution
Q. The function definitions in JavaScript begins with
View solution
Q. When does the function name become optional in JavaScript?
View solution
Q. What is the purpose of a return statement in a function?
View solution
Q. What will happen if a return statement does not have an associated expression?
View solution
Q. A function with no return value is called
View solution
Q. Which of the following is the correct code for invoking a function without this keyword at all, and also too determine whether the strict mode is in effect?
View solution
Q. Which is an equivalent code to invoke a function m of class o that expects two arguments x and y?
View solution
Q. Consider the following code snippet :
var grand_Total=eval("10*10+5");
The output for the above statement would be :
View solution
Q. Do functions in JavaScript necessarily return a value ?
View solution
Q. Consider the following code snippet :
var tensquared = (function(x) {return x*x;}(10));
Will the above code work ?
View solution
Q. Consider the following code snippet :
var string2Num=parseInt("123xyz");
The result for the above code snippet would be :
View solution
Q. If you have a function f and an object o, you can define a method named m of o with
View solution
Q. For the below mentioned code snippet:
var o = new Object();
The equivalent statement is:
View solution
Suggested Topics
Are you eager to expand your knowledge beyond JavaScript? We've curated a selection of related categories that you might find intriguing.
Click on the categories below to discover a wealth of MCQs and enrich your understanding of Computer Science. Happy exploring!