Instruction
- Total number of questions : 10.
- Time alloted : 10 minutes.
- Each question carry 1 mark.
- No Negative marks
- DO NOT refresh the page.
- All the best :-).
1. |
The behaviour of the instances present of a class inside a method is defined by |
|||||||||||||||||||
Your Answer: Option (Not Answered) Correct Answer: Option B Explanation: The behaviour of the instance of a class is defined by the class and is shared by all instances |
2. |
The four kinds of class members are |
|||||||||||||||||||
Your Answer: Option (Not Answered) Correct Answer: Option B Explanation: The four kinds of class members are Instance fields, Instance methods, Class fields, Class methods. |
3. |
The functions provide() and require() of Dojo toolkit and Google’s Closure library are used for |
|||||||||||||||||||
Your Answer: Option (Not Answered) Correct Answer: Option A Explanation: Both the Dojo toolkit and Google’s Closure library define provide() and require() functions for declaring and loading modules. |
4. |
The ‘$’ present in the RegExp object is called a |
|||||||||||||||||||
Your Answer: Option (Not Answered) Correct Answer: Option C Explanation: The ‘S’ is a special metacharacter that matches the end of a string. |
5. |
The Crockford’s subset doesnot include which function in JavaScript? |
|||||||||||||||||||
Your Answer: Option (Not Answered) Correct Answer: Option A Explanation: The Crockford’s subset does not include the with and continue statements or the eval() function. It defines functions using function definition expressions only and does not include the function definition statement. |
6. |
Consider the following code snippet const pi=3.14; var pi=4; console.log(pi); What will be the output for the above code snippet? |
|||||||||||||||||||
Your Answer: Option (Not Answered) Correct Answer: Option A Explanation: The above code snippet will flash an error. Attempts to alter the value or re-declaration causes errors. |
7. |
Consider the following code snippet let succ = function(x) x+1, yes = function() true, no = function() false; What convenience does the above code snippet provide? |
|||||||||||||||||||
Your Answer: Option (Not Answered) Correct Answer: Option A Explanation: The functions defined in this way behave exactly like functions defined with curly braces and the return keyword. |
8. |
What are the events generated by the Node objects called? |
|||||||||||||||||||
Your Answer: Option (Not Answered) Correct Answer: Option B Explanation: Node objects that generate events (known as event emitters) define an on() method for registering handlers. |
9. |
Rhino is originated by |
|||||||||||||||||||
Your Answer: Option (Not Answered) Correct Answer: Option B Explanation: Rhino is free software from Mozilla. You can download a copy from http://www.mozilla.org/rhino/. |
10. |
Which is a fast C++ based JavaScript interpreter? |
|||||||||||||||||||
|