MCQGeeks
CBSE
JEE
NTSE
NEET
English
UK Quiz
Quiz
Driving Test
Practice
Games
Quiz
Javascript
Classes And Modules
Quiz 4
Solution
Q.1.
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);
Q.2.
The snippet that filters the filtered set is
var t=new FilteredSet(s, {function(s) {return !(x instanceof Set);});
var t=new FilteredSet{function(s) {return !(x instanceof Set);});
var t=new FilteredSet(s, {function(s) {return (x instanceof Set);});
var t=new FilteredSet(s, {function(s) {return x;});
Q.3.
The method that can be used to create new properties and also to modify the attributes of existing properties is
Object.defineProperty()
Object.defineProperties()
Both Object.defineProperty() and Object.defineProperties()
None of the mentioned
Support mcqgeeks.com by disabling your adblocker.
×
Please disable the adBlock and continue.
Thank you.
Reload page