Consider the following statement
var Set = sets.Set;
var s = new Set(1,2,3);
What could be the efficiency quotient of the above two statements ?
var Set = sets.Set;
var s = new Set(1,2,3);
A. The programmer imports at once the frequently used values into the global namespace
B. There is no efficiency quotient, the programmer tries to make it inefficient
C. The programmer needs to import the Sets everytime he wants to use it
D. All of the mentioned
Answer: Option A
Solution(By Examveda Team)
A programmer can import frequently used values into the global namespace. A programmer who was going to make frequent use of the Set class from the sets namespace might import the class like that.The behaviour of the instances present of a class inside a method is defined by
A. Method
B. Classes
C. Interfaces
D. Classes and Interfaces
The keyword or the property that you use to refer to an object through which they were invoked is
A. from
B. to
C. this
D. object
Consider the following code snippet :
var o = new F();
o.constructor === F
A. false
B. true
C. 0
D. 1
The basic difference between JavaScript and Java is
A. There is no difference
B. Functions are considered as fields
C. Variables are specific
D. Functions are values, and there is no hard distinction between methods and fields
Join The Discussion