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. |
Consider the following code snippet : var o = new F();The output would be : |
|||||||||||||||||||
Your Answer: Option (Not Answered) Correct Answer: Option B Explanation: The result is true: the constructor property specifies the class. |
2. |
The object whose properties are inherited by all instances of the class, and properties whose values are functions behaving like instance methods of the class, is |
|||||||||||||||||||
Your Answer: Option (Not Answered) Correct Answer: Option D Explanation: The properties of the prototype object are inhertied by all instances of the class, and properties whose values are functions behave like instance methods of the class. |
3. |
Consider the following statement var Set = sets.Set;What could be the efficiency quotient of the above two statements ? |
|||||||||||||||||||
Your Answer: Option (Not Answered) Correct Answer: Option A Explanation: A programmer can import frequently used values into the global namespace. A programmer who was going to make frequent use of the Set class from the sets namespace might import the class like that. |
4. |
The regular expression to match any one character not between the brackets is |
|||||||||||||||||||
Your Answer: Option (Not Answered) Correct Answer: Option C Explanation: The [^…] character class is used to match or draw any one character not between the brackets. |
5. |
What is being imposed on each subset to ensure that it conforms to the subset? |
|||||||||||||||||||
Your Answer: Option (Not Answered) Correct Answer: Option C Explanation: Each subset is coupled with a static verifier that parses code to ensure that it conforms to the subset. |
6. |
The main difference between the variables declared with var and with let is |
|||||||||||||||||||
Your Answer: Option (Not Answered) Correct Answer: Option B Explanation: Variables declared with var are defined throughout the enclosing function. Variables declared with let are defined only within the closest enclosing block (and any blocks nested within it, of course). |
7. |
What will be the reaction when a catch clause has no conditionals ? |
|||||||||||||||||||
Your Answer: Option (Not Answered) Correct Answer: Option C Explanation: If a catch clause has no conditional, it behaves as if it has the conditional if true, and it is always triggered if no clause before it was triggered. |
8. |
What is the function used to remove all handlers for name events? |
|||||||||||||||||||
Your Answer: Option (Not Answered) Correct Answer: Option D Explanation: The removeAllListeners(name) is used to remove all handlers from name events represented as :
|
9. |
Which of the following reads the textual contents of a URL and returns as a string? |
|||||||||||||||||||
Your Answer: Option (Not Answered) Correct Answer: Option D Explanation: Rhino defines a handful of important global functions that are not part of core JavaScript in which readUrl(url) reads the textual contents of a URL and return as a string. |
10. |
What is the command to run the node programs? |
|||||||||||||||||||
|