Contents

The maximum number of global symbols a module can define is………..
a) 2                                                        
b) 3
c) 1                                                        
d) 4

c

The properties() method is a……….
a) Enumerable method
b) Non-enumerable method
c) Operational method
d) calling method

b

Explanation: The properties() is a method to get information of the properties of a particular object. properties() method is a non-enumerable method.


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

c

The ‘$’ present in the RegExp object is called a………….
a) character                         
b) matcher
c) metacharacter               
d) metadata

c

Explanation: The ‘S’ is a special metacharacter that matches the end of a string. It is used to define or access elements in jquery.


The regular expression to match any one character not between the brackets is…
a) […]                                   
b) [^]
c) [^…]                                 
d) [\D]

c

The method that performs the search-and-replace operation to strings for pattern matching is………..
a) searchandreplace()
b) add()
c) edit()                                 
d) replace()

d