182). 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

Show Answer

183). The maximum number of global symbols a module can define is ____________

[A]2
[B]3
[C]1
[D]4

Show Answer

184). To define each of the set classes as a property of the sets object (namespace) for the module, the statement is

[A]sets = sets.AbstractEnumerableSet.extend();
[B] sets.SingletonSet = sets.AbstractEnumerableSet.extend(…);
[C]sets.SingletonSet = sets.extend(…);
[D] sets = sets.extend(…);

Show Answer

185). What will be the efficiency quotient of the following JavaScript statements?
var Set = sets.Set;
var s = new Set(1,2,3);

[A]The programmer imports at once the frequently used values into the global namespace
[B] There is no efficiency quotient, the programmer tries to make it inefficient
[C]The programmer needs to import the Sets everytime he wants to use it
[D]the programmer imports the set everytime the statement is encountered

Show Answer

186). The scope of a function is also called as ________
var Set = sets.Set;
var s = new Set(1,2,3);

[A] Predefined function
[B]Module function
[C]Public function
[D]Private function

Show Answer

187). Modules that have more than one item in their API can ________
var Set = sets.Set;
var s = new Set(1,2,3);

[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

Show Answer

188). The provides() function and the exportsobject are used to _________
var Set = sets.Set;
var s = new Set(1,2,3);

[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

Show Answer

189). What could be achieved by running the JavaScript code snippet below?
var sets = com.davidflanagan.collections.sets;

[A]Importing a single module
[B] Importing a module partially
[C]Importing a namespace
[D] Importing the entire module

Show Answer

190). The properties() method is a ________
var sets = com.davidflanagan.collections.sets;

[A]Enumerable method
[B]Non-enumerable method
[C] Operational method
[D]calling method

Show Answer

191). What can be done in order to avoid the creation of global variables in JavaScript?
var sets = com.davidflanagan.collections.sets;

[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

Show Answer

192). What will be the output of the following JavaScript code?

[A]0.0123
[B]12300
[C]Error
[D]Undefined

Show Answer

193). What will be the output of the following JavaScript code?

[A]3
[B]true
[C]false
[D]error

Show Answer

194). What will be the output of the following JavaScript code?

[A]3
[B]true
[C]false
[D]error

Show Answer

195). What will be the output of the following JavaScript code?

[A]True
[B]False
[C]Error
[D]Undefined

Show Answer

196). What will be the output of the following JavaScript code?

[A]true
[B]false
[C]error
[D]undefined

Show Answer