Javascript Classes MCQ - Quiz

  • AB=inherit(A);
  • BB=A.inherit();
  • CB.prototype=inherit(A);
  • DB.prototype=inherit(A.prototype);
  • A var t=new FilteredSet(s, {function(s) {return !(x instanceof Set);});
  • Bvar t=new FilteredSet{function(s) {return !(x instanceof Set);});
  • Cvar t=new FilteredSet(s, {function(s) {return (x instanceof Set);});
  • Dvar t=new FilteredSet(s, {function(s) {return x;});
  • AObject.defineProperty()
  • BObject.defineProperties()
  • CBoth Object.defineProperty() and Object.defineProperties()
  • DObject.inherit()
  • AComplex.prototype.conj = function() { return new Complex(this.r, -this.i); };
  • BComplex.prototype.conj = function() { return Complex(this.r, -this.i); };
  • CComplex.prototype.conj = function() { return (this.r, -this.i); };
  • DComplex.prototype.conj = function() { new Complex(this.r, -this.i); };
  • Awindow.reload
  • Blocation.reload
  • Cwindow.refresh
  • Dpage.refresh