MCQGeeks
0 : 0 : 1
CBSE
JEE
NTSE
NEET
English
UK Quiz
Quiz
Driving Test
Practice
Games
Quiz
Javascript
Document Object Model And Event Handling
Quiz 2
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
Q.1
The C in CSS stands for
Continuous
Cascaded
Contentional
Cascading
Q.2
Which is one of way to query a document for an element or elements?
With a specified id attribute
Matching the specified CSS selector
With the specified tag name
All of the mentioned
Q.3
Which of the following can be used to select HTML elements based on the value of their name attributes?
getElementByName()
getElementsByName()
getElementsName()
getElementName()
Q.4
Which of the following property refers to the root element of the document?
documentElement
elementdocument
rootdocument
none of the mentioned
Q.5
In the IndexedDB database, database is defined as
A collection of objects
A collection of named object stores
Objects collection
None of the mentioned
Q.6
The central object in a larger API is known as
Document Object Material
Document Object Model
Binary Object Model
None of the mentioned
Q.7
The return type of getElementsByClassName() is
DOM
Document
Node
NodeList
Q.8
The paragraph “p” is a part of
h1
body
html
Both body and html
Q.9
The node directly above a node is called
sibling
child
parent
ancestors
Q.10
What will happen if the first argument of open() is omitted?
Error Page
Remains in the same page
about:blank
None of the mentioned
Q.11
The Text and Comment is part of
CharacterData
Document
Attr
Element
Q.12
Which object serves as the global object at the top of the scope chain?
Hash
Property
Element
Window
Q.13
The nodes that represent HTML elements are the
Subclass nodes
HTML nodes
Window nodes
Element nodes
Q.14
The navigator property belongs to which of the following object?
Document
Window
Navigator
Location
Q.15
Each tab in the single web browser window is called as
Browser Information
Browsing context
Both Browser Information & Browsing context
None of the mentioned
Q.16
Which is the property of a Window object that holids the name of the frame?
name
title
description
none of the mentioned
Q.17
When will the fourth argument to open() useful?
When the second argument names a retired window
When the first argument names an existing window
When the second argument names an existing window
When the first argument names a retired window
Q.18
What is the vendor-neutral synonym for navigator?
staticData
purposeInformation
dataInformation
clientInformation
Q.19
Which is the preferred testing nowadays for scripting?
Software testing
Feature testing
Blackbox testing
Whitebox testing
Q.20
Nested documents in the HTML can be done using
frame
nest
iframe
into
Q.21
What is the distinction made by the Client-side JavaScript between windows, tabs, iframes, and frames ?
They are all browsing contexts
They are all browsing informations
They are all Window contexts
They are all Window objects
Q.22
What is the distinction made by JavaScript between windows, tabs, iframes, and frames ?
They are all browsing contexts
They are all browsing informations
They are all Window contexts
They are all Window objects
Q.23
What is the code snippet to go back to a history twice?
history(2);
history(-2);
history.go(-2);
history.go(2);
Q.24
If the window has child windows, how will the browsing histories be affected?
Numerically interleaved
Chronologically interleaved
Both Numerically and Chronologically interleaved
None of the mentioned
Q.25
The length property belongs to which of the following objects?
Window
Element
History
Document
Q.26
The inner frame within a top-level window can be referred as
parent(parent)
parent.parent
parent*parent
none of the mentioned
Q.27
Which of the below properties can be used for browser sniffing?
platform
appVersion
both platform and appVersion
none of the mentioned
Q.28
Where is the information of the userAgent property located?
appId
appName
platform
appVersion
Q.29
A new web browser window can be opened using which method of the Window object ?
createtab()
Window.open()
open()
all of the mentioned
Q.30
What is the datatype of the go() method’s parameter?
String
Integer
Double
Float
0 h : 0 m : 1 s
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
Report Question
×
What's an issue?
Question is wrong
Answer is wrong
Other Reason
Want to elaborate a bit more? (optional)
Support mcqgeeks.com by disabling your adblocker.
×
Please disable the adBlock and continue.
Thank you.
Reload page