MCQGeeks
0 : 0 : 1
CBSE
JEE
NTSE
NEET
English
UK Quiz
Quiz
Driving Test
Practice
Games
Quiz
Javascript
Server Side And Client Side Scripting
Quiz 2
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
Q.1
The word “document” mainly refers to
Dynamic Information
Static Information
Both Dynamic and Static Information
None of the mentioned
Q.2
Which object is the main entry point to all client-side JavaScript features and APIs?
Standard
Location
Window
Position
Q.3
Which identifier is used to represent a web browser window or frame?
frames
window
location
frame
Q.4
The setTimeout() method is used to
Make the event sleep
Register a function to be invoked after a certain time
Invoke an event after a certain time
Time for iteration
Q.5
Which of the following is a global object?
Register
Location
Window
Position
Q.6
Which property in the Window object is used to refer to a Location object?
position
area
window
location
Q.7
Which Window object method is used to display message in a dialog box?
alert()
prompt()
message()
none of the mentioned
Q.8
When will the window property come into play?
Representation convenience
Use as an extension of other objects
Use objects in the Window object
Refer to window object itself
Q.9
Which is the property that represents the content displayed in the window?
document
content
window
frame
Q.10
What is the code to start displaying the time when document loads?
onload = displayTime;
window. = displayTime;
window.onload = displayTime;
window.onload = start;
Q.11
One of the main advantage of using src attribute is
It becomes self-cached
It makes the HTML file modular
It restricts manipulation in the HTML file
It simplifies the HTML files
Q.12
How to pick a document element based on the value of its id attribute?
getElementsbyId()
getElementbyId()
both getElementsbyId() and getElementbyId()
none of the mentioned
Q.13
Which of the following is a way of embedding Client-side JavaScript code within HTML documents?
From javascript:encoding
External file specified by the src attribute of a “script” tag
All of the mentioned
None of the mentioned
Q.14
What will be done if more than one page requires a file of JavaScript code?
Downloads that many times
Retrives from the browser cache
Must be re executed
None of the mentioned
Q.15
What is the default value of the type attribute?
text/css
text/javascript
text
xml
Q.16
When does JavaScript code appear inline within an HTML file?
Between the “script” tag
Outside the “script” tag
Between or Outside the “script” tag
None of the mentioned
Q.17
Which character in JavaScript code will be interpreted as XML markup?
!
>
&
.
Q.18
Which is the root element in a HTML document?
HTML
HEAD
SCRIPT
BODY
Q.19
The main purpose of JavaScript in web browser is to
Creating animations and other visual effects
User Interface
Visual effects
None of the mentioned
Q.20
A JavaScript program can traverse and manipulate document content through
Element Object
Document Object
Both Element and Document Object
None of the mentioned
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
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