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