Classes and Modules on JavaScript related Questions and Answers - Page 2

Question 13 : If A is the superclass and B is the subclass, then subclass inheriting the superclass can be represented as _________
1. B=inherit(A);
2. B=A.inherit();
3. B.prototype=inherit(A);
4. B.prototype=inherit(A.prototype);
View Answer   Discuss with Members

Question 14 : The behaviour of the instances present of a class inside a method is defined by __________
1. Method
2. Classes
3. Interfaces
4. Classes and Interfaces
View Answer   Discuss with Members

Question 15 : The regular expression to match any one character not between the brackets is __________
1. […].
2. [^].
3. [^…].
4. [\D].
View Answer   Discuss with Members

Question 16 : What would be the result of the following statement in JavaScript using regular expression methods?
1. Returns [“123″”456″”789”].
2. Returns [“123″,”456″,”789”].
3. Returns [1,2,3,4,5,6,7,8,9].
4. Throws an exception
View Answer   Discuss with Members

Question 17 : The different variant of Date() constructor to create date object is/are
i. new Date(date)
ii. new Date(milliseconds)
iii. new Date(date string)
iv. new Date(year, month, date[, hour, minute, second, millisecond])
1. i, ii and iii only
2. ii, iii and iv only
3. i, ii and iv only
4. All i, ii, iii and iv
View Answer   Discuss with Members


View 11 - 20 of 38 Questions

* Be the First to Post a Comment.

Submit comment :


Captcha Image
Reload

Ask Question

Captcha Image
Reload

Note : Name and Email never shown.





Subscribe


Become a part of EducationForever. Subscribe to our FREE Newsletter