Question 1 of 25
Hints left: 3
Q1
The pop() method of the array does which of the following task ?
Q2
The primary purpose of the array map() function is that it
Q3
The method or operator used to identify the array is
Q4
Underscore can be used as first letter while declaring variable in JavaScript.
Q5
The reduce and reduceRight methods follow a common operation called
Q6
What is the purpose of a return statement in a function?
Q7
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 ?
-
A
-
B
-
C
-
D
Q8
Consider the following code snippet function printprops(o) { for(var p in o) console.log(p + ": " + o[p] + "n"); } What will the above code snippet result ?
Q9
The function definitions in JavaScript begins with
Q10
Consider the following code snippet : var a = []; a.unshift(1); a.unshift(22); a.shift(); a.unshift(3,[4,5]); a.shift(); a.shift(); a.shift(); The final output for the shift() is
Q11
Spaces,Punctuation marks are called as __________ Symbols in JavaScript.
Q12
Consider the following code snippet var a1 = [,,,]; var a2 = new Array(3); 0 in a1 0 in a2 The result would be
Q13
Consider the code snippet given below var count = [1,,3]; What is the observation made?
Q14
What will happen if a return statement does not have an associated expression?
Q15
Consider the following code snippet : if (!a[i]) continue ; What is the observation made ?
Q16
Consider the following code snippet function hypotenuse(a, b) { function square(x) { return x*x; } return Math.sqrt(square(a) + square(b)); } What does the above code result?
Q17
We can declare ___________ at a time. Select most appropriate option.
Q18
Multiple Declarations of variables are separated by ___________ symbol.
Q19
Java Script Variable should be Case ___________.
Q20
When does the function name become optional in JavaScript?
Q21
Variable declared inside JavaScript Function will be called as ____________.
Q22
Local Variables are destroyed after execution of function.
Q23
What will happen if reverse() and join() methods are used simultaneously ?
Q24
A function with no return value is called
Q25
Initialization of variable can be done by writing _____ operator in between variable name and operand value.