Explore topic-wise MCQs in Javascript.

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.

51.

*$_Which is the most appropriate database for developers requiring huge amount of data??

A. Database
B. Datawarehouse
C. Web databases
D. Access
Answer» D. Access
52.

*$_Which is the function used to store a value??

A. setItem()
B. set()
C. storeItem()
D. store()
Answer» B. set()
53.

*/*_Which property specifies the property of the event??

A. Type
B. Target
C. Manner
D. All of the mentioned
Answer» B. Target
54.

*/*_The events that are not directly tied to a specific input device are?

A. User interface events
B. Device-independent events
C. Device-dependent events
D. All of the mentioned
Answer» C. Device-dependent events
55.

*/*_The C in CSS stands for?

A. Continuous
B. Cascaded
C. Contentional
D. Cascading
Answer» E.
56.

*/*_Which of the following property allows you to specify an element’s position with respect to the browser window??

A. relative
B. fixed
C. static
D. absolute
Answer» C. static
57.

*/*_The return type of getElementsByClassName() is?

A. DOM
B. Document
C. Node
D. NodeList
Answer» E.
58.

*/*_Which method receives the return value of setInterval() to cancel future invocations??

A. clearInvocation()
B. cancelInvocation()
C. clearInterval()
D. None of the mentioned
Answer» D. None of the mentioned
59.

*/*_How many Node object methods are available??

A. 18
B. 19
C. 20
D. 21
Answer» B. 19
60.

*/*_Which of the following are the parameters passed to the keymap after installation??

A. Key property
B. Key name
C. Keydown event’s object
D. Key stroke
Answer» D. Key stroke
61.

*/*_When is the mouseover event fired??

A. When mouse is moved over a new element
B. When mouse is clicked
C. When mouse is both moved and clicked
D. None of the mentioned
Answer» B. When mouse is clicked
62.

*/*_Which event can be fired on any scrollable document element??

A. Window
B. Scroll
C. Load
D. Unload
Answer» C. Load
63.

*/*_Which of the following are not key event properties??

A. Code key
B. Alt Key
C. Ctrl Key
D. Shift Key
Answer» B. Alt Key
64.

*/*_Which API allows scripts in a document from one server to exchange messages with scripts??

A. Cross-Document Messaging API
B. Web application API
C. Both Cross-Document Messaging API & Web application API
D. None of the mentioned
Answer» B. Web application API
65.

*/*_Which event is triggered sooner when the document and its elements are ready to manipulate??

A. DOMContentLoaded
B. readystatechange
C. Both DOMContentLoaded & readystatechange
D. None of the mentioned
Answer» D. None of the mentioned
66.

*/*_Which of the following property specifies the string of text that was entered??

A. message
B. data
C. string
D. text
Answer» C. string
67.

*/*_Which are the events that have default actions that can be canceled by event handlers??

A. Submit and form-related events
B. Reset and form-related events
C. Submit and reset events
D. None of the mentioned
Answer» D. None of the mentioned
68.

*/*_Which property is used to obtain browser vendor and version information??

A. modal
B. version
C. browser
D. navigator
Answer» E.
69.

*/*_Which of the below is a lieral reverse of Ajax??

A. HTTP
B. HTML
C. XML
D. Comet
Answer» E.
70.

%_Which are the events that have default actions that can be canceled by event handlers?_%

A. Submit and form-related events
B. Reset and form-related events
C. Submit and reset events
D. None of the mentioned
Answer» D. None of the mentioned
71.

%_Which of the below is a lieral reverse of Ajax?_%

A. HTTP
B. HTML
C. XML
D. Comet
Answer» E.
72.

%_How can the nodes in the node list be accessed?_%

A. Key
B. Index number
C. Looping
D. All of the mentioned
Answer» C. Looping
73.

%_How to associate an object to a key on a node?_%

A. getUserData()
B. cloneNode()
C. setUserData(key,data,handler)
D. none of the mentioned
Answer» D. none of the mentioned
74.

%_Which attribute is used to extend the lifetime of a cookie?_%

A. higher-age
B. increase-age
C. max-age
D. lifetime
Answer» D. lifetime
75.

%_Which of the following Node types have a node value equal to null?_%

A. Document
B. DocumentFragment
C. DocumentType
D. All of the mentioned
Answer» E.
76.

%_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. none of the mentioned
Answer» B. encodeURI()
77.

_ To which object does the location property belong?$?

A. Window
B. Position
C. Element
D. Location
Answer» B. Position
78.

_ What is the return type of the hash property?$?

A. Query string
B. Packets
C. String
D. Fragment identifier
Answer» E.
79.

_ What is the purpose of the assign() method?$?

A. Only loading
B. Loading of window and display
C. Displays already present window
D. Unloading of window
Answer» C. Displays already present window
80.

_ The Text and Comment is part of$?

A. CharacterData
B. Document
C. Attr
D. Element
Answer» B. Document
81.

_ What is the datatype of the go() method’s parameter?$?

A. String
B. Integer
C. Double
D. Float
Answer» C. Double
82.

_ Which of the below properties can be used for browser sniffing?$?

A. platform
B. appVersion
C. both platform and appVersion
D. none of the mentioned
Answer» D. none of the mentioned
83.

_ What is the distinction made by JavaScript between windows, tabs, iframes, and frames ?$?

A. They are all browsing contexts
B. They are all browsing informations
C. They are all Window contexts
D. They are all Window objects
Answer» E.
84.

_ When will the fourth argument to open() useful?$?

A. When the second argument names a retired window
B. When the first argument names an existing window
C. When the second argument names an existing window
D. When the first argument names a retired window
Answer» D. When the first argument names a retired window
85.

_ Which is the code that asks for the set of all div elements in a document?$?

A. var divs = $(div);
B. var divs = jQuery("div");
C. var divs = $("div");
D. var divs = #("div");
Answer» D. var divs = #("div");
86.

_ Which of the following is a utility function in jQuery?$?

A. jQuery.each()
B. jQuery.parseJSON()
C. jQuery.noConflict()
D. None of the mentioned
Answer» D. None of the mentioned
87.

_ 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
88.

_ In the IndexedDB database, database is defined as$?

A. A collection of objects
B. A collection of named object stores
C. Objects collection
D. None of the mentioned
Answer» C. Objects collection
89.

_ Which is the function used to look up an object?$?

A. put()
B. set()
C. get()
D. look()
Answer» D. look()
90.

_ Which object supports Filesystem API?$?

A. Element
B. File
C. Window
D. DOM
Answer» C. Window
91.

_ Which is the function used to retrieve a value?$?

A. get()
B. retrieve()
C. getItem()
D. retrieveItem()
Answer» D. retrieveItem()
92.

_ When will the browser invoke the handler?$?

A. Program begins
B. Any event occurs
C. Specified event occurs
D. None of the mentioned
Answer» D. None of the mentioned
93.

_ The high-level events among the following events are$?

A. User interface events
B. Device-independent events
C. Device-dependent events
D. All of the mentioned
Answer» B. Device-independent events
94.

_ Which of the following is the Web application equivalent to querySelectorAll()?$?

A. #()
B. &()
C. $()
D. None of the mentioned
Answer» D. None of the mentioned
95.

_ Which property lays the element according to the normal flow?$?

A. relative
B. absolute
C. fixed
D. static
Answer» B. absolute
96.

_ 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
97.

_ Which property is used to obtain browser vendor and version information?$?

A. modal
B. version
C. browser
D. navigator
Answer» E.
98.

_ What is the property textContent?$?

A. Sets the textual content of a node
B. Returns the textual content of a node
C. Sets & Returns the textual content of a node
D. None of the mentioned
Answer» D. None of the mentioned
99.

_ Which method is used to remove a binding?$?

A. Unbind()
B. removebind()
C. remove(Bind b)
D. unbind()
Answer» E.
100.

_ How to detect and respond to mouse drags?$?

A. Registering a mouseover handler
B. Releasing a mousedown handler
C. Registering a mousedown handler
D. None of the mentioned
Answer» D. None of the mentioned