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.

1.

Which is the method to look up the objects for a range of keys?

A. ookRange()
B. penCursor()
C. ookall()
D. one of the mentioned
Answer» C. ookall()
2.

Which is the function used to look up an object?

A. ut()
B. et()
C. et()
D. ook()
Answer» D. ook()
3.

Which is the most appropriate database for developers requiring huge amount of data?

A. atabase
B. atawarehouse
C. eb databases
D. ccess
Answer» D. ccess
4.

Which is the Microsoft’s own proprietary client-side storage?

A. E User Data
B. ffline Web Applications
C. ookies
D. ll of the mentioned
Answer» B. ffline Web Applications
5.

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

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

Which is the appropriate code to begin a HTTP GET request?

A. equest.open("GET","data");
B. equest.open(GET,"data.csv");
C. equest.open("GET","data.csv");
D. equest.open("GET");
Answer» D. equest.open("GET");
7.

XMLHttpRequesr is a

A. bject
B. lass
C. oth Object and Class
D. one of the mentioned
Answer» D. one of the mentioned
8.

The other name for Comet is

A. erver Push
B. jax Push
C. TTP Streaming
D. ll of the mentioned
Answer» E.
9.

Which of the below is a lieral reverse of Ajax?

A. TTP
B. TML
C. ML
D. omet
Answer» E.
10.

The nodes that represent HTML elements are the

A. ubclass nodes
B. TML nodes
C. indow nodes
D. lement nodes
Answer» E.
11.

The Text and Comment is part of

A. haracterData
B. ocument
C. ttr
D. lement
Answer» B. ocument
12.

The node directly above a node is called

A. ibling
B. hild
C. arent
D. ncestors
Answer» D. ncestors
13.

The paragraph “p” is a part of

A. 1
B. ody
C. tml
D. oth body and html
Answer» E.
14.

The inner frame within a top-level window can be referred as

A. arent(parent)
B. arent.parent
C. arent*parent
D. one of the mentioned
Answer» C. arent*parent
15.

Which is the property of a Window object that holids the name of the frame?

A. ame
B. itle
C. escription
D. one of the mentioned
Answer» B. itle
16.

Where is the information of the userAgent property located?

A. ppId
B. ppName
C. latform
D. ppVersion
Answer» E.
17.

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

A. latform
B. ppVersion
C. oth platform and appVersion
D. one of the mentioned
Answer» D. one of the mentioned
18.

What is the vendor-neutral synonym for navigator?

A. taticData
B. urposeInformation
C. ataInformation
D. lientInformation
Answer» E.
19.

A new web browser window can be opened using which method of the Window object ?

A. reatetab()
B. indow.open()
C. pen()
D. ll of the mentioned
Answer» C. pen()
20.

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

A. hey are all browsing contexts
B. hey are all browsing informations
C. hey are all Window contexts
D. hey are all Window objects
Answer» E.
21.

What is the distinction made by the Client-side JavaScript between windows, tabs, iframes, and frames ?

A. hey are all browsing contexts
B. hey are all browsing informations
C. hey are all Window contexts
D. hey are all Window objects
Answer» B. hey are all browsing informations
22.

Nested documents in the HTML can be done using

A. rame
B. est
C. frame
D. nto
Answer» D. nto
23.

Which is the method that removes the current document from the browsing history before laoding the new document?

A. odify()
B. ssign()
C. eplace()
D. emove()
Answer» D. emove()
24.

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

A. tring
B. nteger
C. ouble
D. loat
Answer» C. ouble
25.

The length property belongs to which of the following objects?

A. indow
B. lement
C. istory
D. ocument
Answer» D. ocument
26.

What is the result of the following code snippet?window.location === document.location

A. alse
B. rue
Answer» C.
27.

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

A. elative
B. ixed
C. tatic
D. bsolute
Answer» C. tatic
28.

The return type of getElementsByClassName() is

A. OM
B. ocument
C. ode
D. odeList
Answer» E.
29.

Which of the following is the ultiate element selection method?

A. uerySelectorAll()
B. uerySelector()
C. ueryAll()
D. uery()
Answer» B. uerySelector()
30.

The events that represents occurrences related to the browser window are%!

A. Window
B. Element
C. Display
D. Handlers
Answer» B. Element
31.

The other name for Comet is%!

A. Server Push
B. Ajax Push
C. HTTP Streaming
D. All of the mentioned
Answer» E.
32.

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
33.

*$_Which of the following is the child(s) of the node type EntityReference??

A. Element
B. Text
C. Both Element and Text
D. None of the mentioned
Answer» D. None of the mentioned
34.

*$_Which method is used to compare the placement of two nodes in the DOM hierarchy (document)??

A. compareDocumentPosition()
B. cloneNode()
C. getUserData()
D. getFeature()
Answer» B. cloneNode()
35.

*$_Which of the following defines the Cookie visibility??

A. document Path
B. localStorage
C. sessionStorage
D. all of the mentioned
Answer» E.
36.

*$_How many node object properties are there??

A. 12
B. 14
C. 16
D. 17
Answer» D. 17
37.

*$_What is the constraint on the data per cookie??

A. 2 KB
B. 1 KB
C. 4 KB
D. 3 KB
Answer» D. 3 KB
38.

*$_What is the result of the following code snippet?window.location === document.location?

A. False
B. True
C. 0
D. 1
Answer» C. 0
39.

*$_What is the function used to extract arguments from the search property of a URL??

A. urlArgs()
B. url()
C. hash()
D. none of the mentioned
Answer» B. url()
40.

*$_The history property belongs to which object??

A. Element
B. Window
C. History
D. Location
Answer» D. Location
41.

*$_The nodes that represent HTML elements are the?

A. Subclass nodes
B. HTML nodes
C. Window nodes
D. Element nodes
Answer» E.
42.

*$_What is the special feature of the modern web applications??

A. Can alter contents without loading document
B. Must load the document to manipulate
C. All of the mentioned
D. None of the mentioned
Answer» B. Must load the document to manipulate
43.

*$_Where is the information of the userAgent property located??

A. appId
B. appName
C. platform
D. appVersion
Answer» E.
44.

*$_A new web browser window can be opened using which method of the Window object ??

A. createtab()
B. Window.open()
C. open()
D. all of the mentioned
Answer» C. open()
45.

*$_The inner frame within a top-level window can be referred as?

A. parent(parent)
B. parent.parent
C. parent*parent
D. none of the mentioned
Answer» C. parent*parent
46.

*$_Which is the method that operates on the return value of $()??

A. show()
B. css()
C. click()
D. done()
Answer» C. click()
47.

*$_Which of the following is used for parsing JSON text??

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

*$_Which is the appropriate code to begin a HTTP GET request??

A. request.open("GET","data");
B. request.open(GET,"data.csv");
C. request.open("GET","data.csv");
D. request.open("GET");
Answer» D. request.open("GET");
49.

*$_A key path is defined as?

A. A url that directs to the value
B. A value that is similar to hash table
C. A value that tells the database how to extract an object’s key from the object
D. None of the mentioned
Answer» D. None of the mentioned
50.

*$_Which is the method to look up the objects for a range of keys??

A. lookRange()
B. openCursor()
C. lookall()
D. None of the mentioned
Answer» C. lookall()