in Education by
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 This question was addressed to me by my college director while I was bunking the class. Origin of the question is Modules in JavaScript in division Classes and Modules in JavaScript of JavaScript Select the correct answer from above options JavaScript questions and answers, JavaScript questions pdf, JavaScript question bank, JavaScript questions and answers pdf, mcq on JavaScript pdf, JavaScript questions and solutions, JavaScript mcq Test , Interview JavaScript questions, JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)

1 Answer

0 votes
by
The correct answer is (c) Return a namespace object The explanation is: Namespace is a container for a set of identifiers, functions, methods and all that. It gives a level of direction to its contents so that it will be well distinguished and organized. Modules that have more than one item in their API can return a namespace object.

Related questions

0 votes
0 votes
    What is the necessity to have API? (a) Guide to performing activities (b) Describe particular task (c ... Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Oct 22, 2021 in Education by JackTerrance
0 votes
0 votes
    What is the purpose of the method item()? (a) Returns node after the specified index (b) Returns ... JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Oct 23, 2021 in Education by JackTerrance
0 votes
    The libraries that build a new higher-level API for client-side programming is ____________ (a) Library (b) ... Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Oct 23, 2021 in Education by JackTerrance
0 votes
0 votes
0 votes
    The class that represents the regular expressions is ________ (a) RegExpObj (b) RegExpClass (c) RegExp (d) ... Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Oct 24, 2021 in Education by JackTerrance
...