Question 1 of 25
Hints left: 3
Q1
When an empty statement is encountered, a JavaScript interpreter
Q2
Consider the following code snippet function f(o) { if (o === undefined) debugger; } What could be the task of the statement debugger?
Q3
What are the three important manipulations done in a for loop on a loop variable?
Q4
Which of the operator is used to test if a particular property exists or not?
Q5
The output for the following code snippet would most appropriately be var a=5 , b=1 var obj = { a : 10 } with(obj)
Q6
The output for the following code snippet would most appropriately be var a=5 , b=1 var obj = { a : 10 } with(obj)
Q7
Which is a more efficient code snippet ? Code 1 : for(var
Q8
Consider the following statements var count = 0; while (count < 10) {
Q9
Among the following, which one is a ternary operator?
Q10
What kind of an expression is “new Point(2,3)”?
Q11
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) ?
Q12
One of the special feature of an interpreter in reference with the for loop is that
Q13
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?
Q14
The unordered collection of properties, each of which has a name and a value is called
Q15
A conditional expression is also called a
Q16
The “var” and “function” are
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
Consider the following code snippet while (a != 0) { if (spam>a == 1) continue; else
Q19
A statement block is a
Q20
The enumeration order becomes implementation dependent and non-interoperable if :
Q21
What will be the step of the interpreter in a jump statement when an exception is thrown?
Q22
“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
Q23
What will happen if the body of a for/in loop deletes a property that has not yet been enumerated?
Q24
Among the keywords below, which one is not a statement?
Q25
JavaScript is a _______________ language