MCQOPTIONS
Saved Bookmarks
This section includes 7 Mcqs, each offering curated multiple-choice questions to sharpen your Javascript knowledge and support exam preparation. Choose a topic below to get started.
| 1. |
How_can_we_make_methods_available_on_all_objects?$ |
| A. | Object.add(methods) |
| B. | Object.methods(add) |
| C. | Object.add.methods(…) |
| D. | Object.prototype |
| Answer» C. Object.add.methods(‚Äö√Ñ√∂‚àö√묨‚àÇ) | |
| 2. |
The different variant of Date() constructor to create date object is/are |
| A. | |
| B. | |
| C. | |
| D. | |
| Answer» C. | |
| 3. |
The class that represents the regular expressions is ________ |
| A. | RegExpObj |
| B. | RegExpClass |
| C. | RegExp |
| D. | StringExp |
| Answer» D. StringExp | |
| 4. |
Which variables are used internally in object methods and are also globally visible? |
| A. | Object properties |
| B. | Variable properties |
| C. | Method properties |
| D. | Internal properties |
| Answer» C. Method properties | |
| 5. |
The object whose properties are inherited by all instances of the class, and properties whose values are functions behaving like instance methods of the class, is |
| A. | Instance object |
| B. | Constructor object |
| C. | Destructor object |
| D. | Prototype object |
| Answer» E. | |
| 6. |
Different kinds of object involved in a class definition are ________ |
| A. | Public object, Private object, Protected object |
| B. | Constructor object, Function object, Destructor object |
| C. | Constructor object, Prototype object, Instance object |
| D. | Instance method, Static object, Dynamic object |
| Answer» D. Instance method, Static object, Dynamic object | |
| 7. |
The four kinds of class members are ________ |
| A. | Instance methods, Instance fields, Static method, Dynamic method |
| B. | Instance fields, Instance methods, Class fields, Class methods |
| C. | Instance fields, Non-instance fields, Dynamic methods, Global methods |
| D. | Global methods, Local methods, Dynamic methods, Static methods |
| Answer» C. Instance fields, Non-instance fields, Dynamic methods, Global methods | |