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