MCQOPTIONS
 Saved Bookmarks
				This section includes 6 Mcqs, each offering curated multiple-choice questions to sharpen your JavaScript Questions & Answers Modules in JavaScript knowledge and support exam preparation. Choose a topic below to get started.
| 1. | 
                                    What can be done in order to avoid the creation of global variables in JavaScript? | 
                            
| A. | To use a method that defines all the variables | 
| B. | To use an object that has the reference to all the variables | 
| C. | To use an object as its namespace | 
| D. | To use global functions | 
| Answer» D. To use global functions | |
| 2. | 
                                    The properties() method is a ________ | 
                            
| A. | Enumerable method | 
| B. | Non-enumerable method | 
| C. | Operational method | 
| D. | calling method | 
| Answer» C. Operational method | |
| 3. | 
                                    The provides() function and the exportsobject are used to _________ | 
                            
| A. | Register the module s API and Store their API | 
| B. | Call the modules api | 
| C. | Store the module s API | 
| D. | Register the modules api | 
| Answer» B. Call the modules api | |
| 4. | 
                                    Modules that have more than one item in their API can ________ | 
                            
| A. | Assign itself to a global variable | 
| B. | Invoke another module of the same kind | 
| C. | Return a namespace object | 
| D. | Invoke another module of the same kind | 
| Answer» D. Invoke another module of the same kind | |
| 5. | 
                                    The scope of a function is also called as ________ | 
                            
| A. | Predefined function | 
| B. | Module function | 
| C. | Public function | 
| D. | Private function | 
| Answer» C. Public function | |
| 6. | 
                                    The functions provide() and require() of Dojo toolkit and Google s Closure library are used for ___________ | 
                            
| A. | declaring and loading modules | 
| B. | declaring functions | 
| C. | declaring modules | 
| D. | loading modules | 
| Answer» B. declaring functions | |