MCQOPTIONS
Saved Bookmarks
This section includes 55 Mcqs, each offering curated multiple-choice questions to sharpen your Javascript knowledge and support exam preparation. Choose a topic below to get started.
| 51. |
XMLHttpRequest is a ____________ |
| A. | Object |
| B. | Class |
| C. | Both Object and Class |
| D. | Array |
| Answer» D. Array | |
| 52. |
What is the main difference between localStorage and sessionStorage? |
| A. | Lifetime |
| B. | Scope |
| C. | Both Lifetime and Scope |
| D. | Storage Location |
| Answer» D. Storage Location | |
| 53. |
Which of the following is a feature of the HTTP response? |
| A. | Mandatory response body |
| B. | Optional response body |
| C. | URL being released |
| D. | Optional set of response headers |
| Answer» B. Optional response body | |
| 54. |
Which of the following property refers to the root element of the document? |
| A. | documentElement |
| B. | elementdocument |
| C. | rootdocument |
| D. | none of the mentioned |
| Answer» B. elementdocument | |
| 55. |
Which of the following function is used as a consequence of not including semicolons, commas or whitespace in the Cookie value? |
| A. | encodeURIComponent() |
| B. | encodeURI() |
| C. | encodeComponent() |
| D. | encode() |
| Answer» B. encodeURI() | |