MCQOPTIONS
Saved Bookmarks
This section includes 183 Mcqs, each offering curated multiple-choice questions to sharpen your Javascript knowledge and support exam preparation. Choose a topic below to get started.
| 151. |
Which is the method that removes the current document from the browsing history before laoding the new document?? |
| A. | modify() |
| B. | assign() |
| C. | replace() |
| D. | remove() |
| Answer» D. remove() | |
| 152. |
The paragraph “p” is a part of? |
| A. | h1 |
| B. | body |
| C. | html |
| D. | Both body and html |
| Answer» E. | |
| 153. |
If the window has child windows, how will the browsing histories be affected?? |
| A. | Numerically interleaved |
| B. | Chronologically interleaved |
| C. | Both Numerically and Chronologically interleaved |
| D. | None of the mentioned |
| Answer» C. Both Numerically and Chronologically interleaved | |
| 154. |
What is the vendor-neutral synonym for navigator?? |
| A. | staticData |
| B. | purposeInformation |
| C. | dataInformation |
| D. | clientInformation |
| Answer» E. | |
| 155. |
Nested documents in the HTML can be done using? |
| A. | frame |
| B. | nest |
| C. | iframe |
| D. | into |
| Answer» D. into | |
| 156. |
Which object serves as the global object at the top of the scope chain?? |
| A. | Hash |
| B. | Property |
| C. | Element |
| D. | Window |
| Answer» E. | |
| 157. |
Which of the following is a single global function defined in the jQuery library?? |
| A. | jQuery() |
| B. | $() |
| C. | Queryanalysis() |
| D. | None of the mentioned |
| Answer» B. $() | |
| 158. |
Which of the following is a heavily overloaded function?? |
| A. | jQuery() |
| B. | $() |
| C. | script() |
| D. | Both jQuery() and $() |
| Answer» E. | |
| 159. |
XMLHttpRequesr is a? |
| A. | Object |
| B. | Class |
| C. | Both Object and Class |
| D. | None of the mentioned |
| Answer» D. None of the mentioned | |
| 160. |
Which of the following use the Web SQL Database?? |
| A. | Chrome |
| B. | Firefox |
| C. | IE |
| D. | All of the mentioned |
| Answer» B. Firefox | |
| 161. |
Which of the following is a feature of the IndexedDB API?? |
| A. | Simplifies the transaction management |
| B. | Need not manage the transaction at all |
| C. | Enhances the storage |
| D. | None of the mentioned |
| Answer» B. Need not manage the transaction at all | |
| 162. |
Which is the storage that allows the caching of web pages and their associated resources?? |
| A. | Web Databases |
| B. | FileSystem API |
| C. | Offline Web Applications |
| D. | All of the mentioned |
| Answer» D. All of the mentioned | |
| 163. |
What is the main difference between localStorage and sessionStorage?? |
| A. | Lifetime |
| B. | Scope |
| C. | Both Lifetime and Scope |
| D. | None of the mentioned |
| Answer» D. None of the mentioned | |
| 164. |
Which is the object on which the event occured or with which the event is associated? |
| A. | event type |
| B. | event target |
| C. | both event type and even target |
| D. | none of the mentioned |
| Answer» C. both event type and even target | |
| 165. |
Which form of event propogation handles the registered container elements? |
| A. | Event Propogation |
| B. | Event Registration |
| C. | Event Capturing |
| D. | Default Actions |
| Answer» D. Default Actions | |
| 166. |
What does the following code snippet mean?#log>span |
| A. | Span child after log declaration |
| B. | Specific span child of id greater than log |
| C. | Span child less than log |
| D. | Any span child of the element with id as log |
| Answer» E. | |
| 167. |
What is the purpose of the Node object property ownerDocument? |
| A. | Returns the root element |
| B. | Returns the last element |
| C. | Returns the parent node |
| D. | Returns the immediate node |
| Answer» B. Returns the last element | |
| 168. |
Which of the following is not the value the key property will hold if the key is a function key? |
| A. | F8 |
| B. | F2 |
| C. | Home |
| D. | Left |
| Answer» B. F2 | |
| 169. |
What does a Node object represent? |
| A. | Single node |
| B. | Set of nodes |
| C. | Sequence of nodes |
| D. | Node array |
| Answer» B. Set of nodes | |
| 170. |
The setTimeout() belongs to which object? |
| A. | Element |
| B. | Window |
| C. | Location |
| D. | None of the mentioned |
| Answer» C. Location | |
| 171. |
The URL property belongs to which of the following object? |
| A. | Document |
| B. | Element |
| C. | Location |
| D. | All of the mentioned |
| Answer» B. Element | |
| 172. |
The decodeURIComponent() is defined by |
| A. | Server-side JavaScript |
| B. | Client-side JavaScript |
| C. | Both Server-side and Client-side JavaScript |
| D. | None of the mentioned |
| Answer» C. Both Server-side and Client-side JavaScript | |
| 173. |
The central object in a larger API is known as |
| A. | Document Object Material |
| B. | Document Object Model |
| C. | Binary Object Model |
| D. | None of the mentioned |
| Answer» C. Binary Object Model | |
| 174. |
What is the code snippet to go back to a history twice? |
| A. | history(2); |
| B. | history(-2); |
| C. | history.go(-2); |
| D. | history.go(2); |
| Answer» D. history.go(2); | |
| 175. |
The navigator property belongs to which of the following object? |
| A. | Document |
| B. | Window |
| C. | Navigator |
| D. | Location |
| Answer» D. Location | |
| 176. |
Each tab in the single web browser window is called as |
| A. | Browser Information |
| B. | Browsing context |
| C. | Both Browser Information & Browsing context |
| D. | None of the mentioned |
| Answer» C. Both Browser Information & Browsing context | |
| 177. |
What will happen if the first argument of open() is omitted? |
| A. | Error Page |
| B. | Remains in the same page |
| C. | about:blank |
| D. | None of the mentioned |
| Answer» C. about:blank | |
| 178. |
Which is the element that has a src property to initiate HTTP GET request? |
| A. | img |
| B. | iframe |
| C. | script |
| D. | both img and script |
| Answer» E. | |
| 179. |
The localStorage and sessionStorage belongs to |
| A. | Window object |
| B. | Element object |
| C. | Hash object |
| D. | DOM object |
| Answer» B. Element object | |
| 180. |
The type that specifies what kind of event occured is |
| A. | event type |
| B. | even target |
| C. | both event type and even target |
| D. | none of the mentioned |
| Answer» B. even target | |
| 181. |
The process by which the browser decides which objects to trigger event handlers on is |
| A. | Event Triggering |
| B. | Event Listening |
| C. | Event Handling |
| D. | Event propogation |
| Answer» E. | |
| 182. |
Which of the following key property holds the key name as a string? |
| A. | keyName |
| B. | key |
| C. | keyName(string) |
| D. | Nameofkey(string) |
| Answer» C. keyName(string) | |
| 183. |
When is the mouseout event fired? |
| A. | When mouse is no longer over an element |
| B. | When mouse is over an element |
| C. | When mouse is hovered |
| D. | None of the mentioned |
| Answer» B. When mouse is over an element | |