MCQOPTIONS
Saved Bookmarks
This section includes 14 Mcqs, each offering curated multiple-choice questions to sharpen your Javascript knowledge and support exam preparation. Choose a topic below to get started.
| 1. |
*$_Which is the function used to call a function in every time duration?? |
| A. | callafter() |
| B. | setInterval() |
| C. | setTimeout() |
| D. | setTime() |
| Answer» C. setTimeout() | |
| 2. |
*/*_What is the purpose of the userAgent property?? |
| A. | Identifying the data |
| B. | Identifying the client |
| C. | Both Identifying the data and client |
| D. | None of the mentioned |
| Answer» C. Both Identifying the data and client | |
| 3. |
*/*_What is the purpose of the area element?? |
| A. | Area of the text |
| B. | Shape and coordinates of the hotspot |
| C. | Shape and area of the hotspot |
| D. | None of the mentioned |
| Answer» C. Shape and area of the hotspot | |
| 4. |
*/*_Which event handler is triggered when the user’s mouse moves away from a link?? |
| A. | onMouseOver |
| B. | onMouseOut |
| C. | onMouse |
| D. | onMouseOnto |
| Answer» C. onMouse | |
| 5. |
%_Which is the property used to position the object in the left of the screen?_% |
| A. | object.position = left |
| B. | object = position.left |
| C. | object.style.left |
| D. | none of the mentioned |
| Answer» D. none of the mentioned | |
| 6. |
_ Which of the following is not a navigator method?$? |
| A. | postEnabled |
| B. | reference |
| C. | preference |
| D. | all of the mentioned |
| Answer» D. all of the mentioned | |
| 7. |
_ Which is the element that follows the use of “img”?$? |
| A. | area |
| B. | usemap |
| C. | map |
| D. | any element can follow the use of “img” |
| Answer» D. any element can follow the use of ‚Äö√Ñ√∫img‚Äö√Ñ√π | |
| 8. |
_ Which event handler is triggered when the user’s mouse moves onto a link?$? |
| A. | onMouseOver |
| B. | onMouseOut |
| C. | onMouse |
| D. | onMouseOnto |
| Answer» B. onMouseOut | |
| 9. |
_Which function is used to clear the timer value?$? |
| A. | clearTimervalue() |
| B. | clearTimeout() |
| C. | clear() |
| D. | flush(timer) |
| Answer» C. clear() | |
| 10. |
What is the purpose of the preference method in a navigator?$? |
| A. | Set Browser preference |
| B. | Set Netscape preference |
| C. | Both Set Browser & Netscape preference |
| D. | None of the mentioned |
| Answer» C. Both Set Browser & Netscape preference | |
| 11. |
Which are the special tags used for image mapping?$? |
| A. | map and area |
| B. | map and usemap |
| C. | only map |
| D. | only usemap |
| Answer» B. map and usemap | |
| 12. |
How do we create and preload an image object in JavaScript?$? |
| A. | Use new keyword |
| B. | Call Image() |
| C. | Both Use new keyword and Call Image() |
| D. | None of the mentioned |
| Answer» D. None of the mentioned | |
| 13. |
Which is the function that calls another function after a time interval?? |
| A. | setTimeout() |
| B. | setTime() |
| C. | callafter() |
| D. | none of the mentioned |
| Answer» B. setTime() | |
| 14. |
What is the purpose of the platform[] property in a navigator? |
| A. | Platform of the script |
| B. | Platform where the image map was designed |
| C. | Platform where the browser was compiled |
| D. | All of the mentioned |
| Answer» D. All of the mentioned | |