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. |
What is the main difference between localStorage and sessionStorage? |
|||||||||||||||||||
Your Answer: Option (Not Answered) Correct Answer: Option C Explanation: The difference between localStorage and sessionStorage has to do with lifetime and scope: how long the data is saved for and who the data is accessible to. |
2. |
One of the main advantage of using src attribute is |
|||||||||||||||||||
Your Answer: Option (Not Answered) Correct Answer: Option D Explanation: The main advantage of using the src attribute is that it simplifies your HTML files by allowing you to remove large blocks of JavaScript code from them—that is, it helps keep content and behavior separate. |
3. |
Which of the following is a global object? |
|||||||||||||||||||
Your Answer: Option (Not Answered) Correct Answer: Option C Explanation: In client-side JavaScript, the Window object is also the global object. This means that the Window object is at the top of the scope chain and that its properties and methods are effectively global variables and global functions. |
4. |
Which of the following is not an object? |
|||||||||||||||||||
Your Answer: Option (Not Answered) Correct Answer: Option C Explanation: There is no object called Position. |
5. |
What are the two incompatible versions of YUI? |
|||||||||||||||||||
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. |
Which method receives the return value of setTimeout() to cancel future invocations? |
|||||||||||||||||||
Your Answer: Option (Not Answered) Correct Answer: Option A Explanation: setTimeout() returns a value that can be passed to clearTimeout() to cancel the execution of the scheduled function. |
7. |
Which is the method that removes the current document from the browsing history before laoding the new document? |
|||||||||||||||||||
Your Answer: Option (Not Answered) Correct Answer: Option C Explanation: The replace() method is similar, but it removes the current document from the browsing history before loading the new document. When a script unconditionally loads a new document, the replace() method is often a better choice than assign(). |
8. |
What is the vendor-neutral synonym for navigator? |
|||||||||||||||||||
Your Answer: Option (Not Answered) Correct Answer: Option D Explanation: IE supports clientInformation as a vendor-netural synonym for navigator. |
9. |
Which object serves as the global object at the top of the scope chain? |
|||||||||||||||||||
Your Answer: Option (Not Answered) Correct Answer: Option D Explanation: The Window object serves as the global object at the top of the scope chain in client-side JavaScript. |