Question 1 of 25
Hints left: 3
Q1
Which of the following uses a lot of CPU cycles?
Q2
For the below mentioned code snippet: var o = new Object(); The equivalent statement is:
Q3
The keyword or the property that you use to refer to an object through which they were invoked is
Q4
Which of the following are examples of closures?
Q5
Consider the following code snippet : var tensquared = (function(x) {return x*x;}(10)); Will the above code work ?
Q7
Consider the following code snippet : var string2Num=parseInt("123xyz"); The result for the above code snippet would be :
Q8
Which is an equivalent code to invoke a function m of class o that expects two arguments x and y?
Q9
What must be done in order to implement Lexical Scoping?
Q10
Which of the algorithmic languages is lexical scoping standardized in?
Q11
What is the purpose of the dynamic scoping?
Q12
The basic difference between JavaScript and Java is
Q13
What kind of scoping does JavaScript use?
Q14
What is the opposite approach to the lexical scoping?
Q15
Consider the following code snippet : var c = counter(), d = counter(); c.count() d.count() c.reset() c.count() d.count() The state stored in d is :
Q16
If you have a function f and an object o, you can define a method named m of o with
Q17
Consider the following code snippet : var c = counter(), d = counter(); function constfuncs() { var funcs =
Q18
The behaviour of the instances present of a class inside a method is defined by
Q19
Consider the following code snippet : var grand_Total=eval("10*10+5"); The output for the above statement would be :
Q20
Consider the following code snippet : var o = new F(); o.constructor === F The output would be :
Q21
Which of the following is the correct code for invoking a function without this keyword at all, and also too determine whether the strict mode is in effect?
Q22
Consider the following code snippet : var scope = "global scope"; function checkscope() { var scope = "local scope"; function f() { return scope; } return f; What is the function of the above code snippet?
Q23
Do functions in JavaScript necessarily return a value ?
Q24
What is the difference between the two lines given below ? !!(obj1 && obj2); (obj1 && obj2);
Q25
What is the fundamental rule of lexical scoping?