Question 1 of 25
Hints left: 3
Q1
When an empty statement is encountered, a JavaScript interpreter
Q2
What are the three important manipulations done in a for loop on a loop variable?
Q3
What will happen if the body of a for/in loop deletes a property that has not yet been enumerated?
Q4
What kind of an expression is “new Point(2,3)”?
Q5
Among the following, which one is a ternary operator?
Q6
The unordered collection of properties, each of which has a name and a value is called
Q7
A statement block is a
Q8
Consider the following code snippet while (a != 0) { if (spam>a == 1) continue; else
Q9
The “var” and “function” are
Q10
Among the keywords below, which one is not a statement?
Q11
A conditional expression is also called a
Q12
“An expression that can legally appear on the left side of an assignment expression.” is a well known explanation for variables, properties of objects, and elements of arrays. They are called
Q13
JavaScript is a _______________ language
Q14
Which is a more efficient code snippet ? Code 1 : for(var
Q15
The enumeration order becomes implementation dependent and non-interoperable if :
Q16
Consider the following code snippet function f(o) { if (o === undefined) debugger; } What could be the task of the statement debugger?
Q17
Consider the following code snippet function printArray(a) { var len = a.length, i = 0; if (len == 0) console.log("Empty Array"); else { do { console.log(a[i]); } while (++i < len); } } What does the above code result?
Q18
Which of the operator is used to test if a particular property exists or not?
Q19
Consider the following statements switch(expression) { statements } In the above switch syntax, the expression is compared with the case labels using which of the following operator(s) ?
Q20
Consider the following statements var count = 0; while (count < 10) {
Q21
What will be the step of the interpreter in a jump statement when an exception is thrown?
Q22
The output for the following code snippet would most appropriately be var a=5 , b=1 var obj = { a : 10 } with(obj)
Q23
The output for the following code snippet would most appropriately be var a=5 , b=1 var obj = { a : 10 } with(obj)
Q24
Consider the following code snippet function tail(o) { for (; o.next; o = o.next) ; return o; } Will the above code snippet work? If not, what will be the error?
Q25
One of the special feature of an interpreter in reference with the for loop is that