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 localStorage and sessionStorage belongs to |
|||||||||||||||||||
Your Answer: Option (Not Answered) Correct Answer: Option A Explanation: Browsers that implement the “Web Storage” draft specification define two properties on the Window object: localStorage and sessionStorage. Both properties refer to a Storage object—a persistent associative array that maps string keys to string values. |
2. |
What is the code to start displaying the time when document loads? |
|||||||||||||||||||
Your Answer: Option (Not Answered) Correct Answer: Option C Explanation: The above code starts displaying the time when the document loads. |
3. |
The setTimeout() method is used to |
|||||||||||||||||||
Your Answer: Option (Not Answered) Correct Answer: Option B Explanation: The setTimeout(), which registers a function to be invoked after a specified amount of time. |
4. |
When a program contains extensive use of event handlers, which of the following is necessary? |
|||||||||||||||||||
Your Answer: Option (Not Answered) Correct Answer: Option B Explanation: Nested functions are common in client-side JavaScript, because of its extensive use of event handlers. |
5. |
What does Dojo and YUI have in common? |
|||||||||||||||||||
Your Answer: Option (Not Answered) Correct Answer: Option A Explanation: Like Dojo, it is a large, all-encompassing library with language utilities, DOM utilities, UI widgets, and so on. There are actually two incompatible versions of YUI, known as YUI 2 and YUI 3. |
6. |
The setTimeout() belongs to which object? |
|||||||||||||||||||
Your Answer: Option (Not Answered) Correct Answer: Option B Explanation: The setTimeout() method of the Window object schedules a function to run after a specified number of milliseconds elapses. |
7. |
The decodeURIComponent() is defined by |
|||||||||||||||||||
Your Answer: Option (Not Answered) Correct Answer: Option B Explanation: The decodeURIComponent() is a global function defined by client-side JavaScript. |
8. |
The navigator property belongs to which of the following object? |
|||||||||||||||||||
Your Answer: Option (Not Answered) Correct Answer: Option C Explanation: The navigator property of a Window object refers to a Navigator object that contains browser vendor and version number information. |
9. |
What will happen if the first argument of open() is omitted? |
|||||||||||||||||||
Your Answer: Option (Not Answered) Correct Answer: Option B Explanation: When the first argument of the open() is omitted, the about:blank is opened. |
10. |
Which of the following is/are of Text nodes? |
|||||||||||||||||||
|