BreakInterview

1. What is the fundamental rule of lexical scoping?

Functions are declared in the scope
Functions are executed using scope chain
Both a and b
None of the mentioned

2. The keyword or the property that you use to refer to an object through which they were invoked is

from
to
this
object

3. If A is the superclass and B is the subclass, then subclass inherting the superclass can be represented as

B=inherit(A);
B=A.inherit();
B.prototype=inherit(A);
B.prototype=inherit(A.prototype);

4. Which are usually variables that are used internally in object methods and also are globally visible variables?

Object properties
Variable properties
Method properties
Internal properties

5. How can we make methods available on all objects?

Object.add(methods)
Object.methods(add)
Object.add.methods(…)
Object.prototype

6. The maximum number of global symbols a module can define is

1
2
3
4

7. The scope of a function is also called as

The function’s scope
Module function
Modulated function
Private function

8. The method that performs the search-and-replace operation to strings for pattern matching is

searchandreplace()
add()
edit()
replace()

9. Why does JavaScript subset disallow == and !=?

It uses bitwise checking
It uses === and !== instead
It uses equals() and notequals() instead
None of the above

10. Which is the subset that is a secure container designed for the purpose of safely running untrusted JavaScript?

Sandbox
The Good Parts
Both a and b
None of the mentioned