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