JavaScript MCQ SINGLE CORRECT Question Bank
Multiple Choice Single Correct Answer
Sr No
|
Multiple Choice Single Correct Answer
|
Correct Answer
| |
1
|
______ tag is used to insert JavaScript in HTML coding.
|
<script>
| |
<script>
|
<head>
| ||
<JavaScript>
|
<JS>
| ||
2
|
Client Side scripts require _______ to execute the coding.
|
Web browser
| |
Web browser
|
Web server
| ||
PWS
|
IIS
| ||
3
|
BOM stands for ________.
|
Browser Object Model
| |
Browser Object Model
|
Browser Object Modelling
| ||
Built Object Modelling
|
Built object Models
| ||
4
|
DOM stands for _______.
|
Document Object Model
| |
Document Object Model
|
Document Object Modelling
| ||
Different Object Modules
|
Different Option Media
| ||
5
|
_______ returns the code name of the browser.
|
appCodeName
| |
appCodeName
|
appNameCode
| ||
appName
|
appNamebrowser
| ||
6
|
_____ method displays a dialog box that prompts the visitor for input.
|
prompt()
| |
display()
|
print()
| ||
visit()
|
prompt()
| ||
7
|
When a script is executed by client browser is known as _______ side scripting.
|
Client
| |
Client
|
Server
| ||
Left
|
Right
| ||
8
|
When a script is activated by client and is run on server it is known as ____ side scripting
|
Server
| |
Server
|
Client
| ||
Top
|
Center
| ||
9
|
VBScript is an example of _________ side scripting.
|
Client
| |
Client
|
Left
| ||
Server
|
Middle
| ||
10
|
_____ Scripts are used generally for validation purpose.
|
Client
| |
Response
|
Client
| ||
Request
|
Server
| ||
11
|
Server side scripts require ________ to execute the coding.
|
Web server
| |
Client
|
Web server
| ||
Web browser
|
Hyperlink
| ||
12
|
Objects are initialised using the _________ operator.
|
new
| |
new
|
open
| ||
create
|
initialise
| ||
13
|
JavaScript supports ______ types of objects.
|
Two
| |
Two
|
Three
| ||
Four
|
Five
| ||
14
|
______ returns the name of the browser.
|
appName
| |
appCodeName
|
appName
| ||
appVersion
|
appNameCode
| ||
15
|
______ returns the version information of the browser.
|
appVersion
| |
appVersion
|
appver
| ||
appversionName
|
appVersionCode
| ||
16
|
______ keyword denotes the current object in JavaScript.
|
this
| |
this
|
that
| ||
new
|
class
| ||
17
|
______ keyword is used to initialise the object.
|
new
| |
this
|
new
| ||
class
|
delete
| ||
18
|
_____ property of window object returns the location object for the window.
|
Location
| |
Location
|
URL
| ||
Place
|
Home
| ||
19
|
_____ property of window returns the name of a window
|
Name
| |
namewindow
|
windowname
| ||
name
|
Title
| ||
20
|
_____ property of window object sets the text in the status bar of a window.
|
Status bar
| |
status bar
|
status location
| ||
status
|
URL
| ||
21
|
_____ property returns a Boolean Value indicating whether a window has been clsoed or not
|
closed
| |
closed
|
exit
| ||
return
|
break
| ||
22
|
____ method displays an dialog box with a message and an OK button
|
alert()
| |
alert()
|
alertok()
| ||
ok()
|
cancel()
| ||
23
|
_____ method removes focus from the current window.
|
blur()
| |
close()
|
blur()
| ||
focus()
|
prompt()
| ||
24
|
_____ method closes the current window.
|
close()
| |
close()
|
exit()
| ||
break()
|
return()
| ||
25
|
_____ method displays a dialog box with an ok and a cancel button.
|
confirm()
| |
confirm()
|
display()
| ||
alert()
|
cancel()
| ||
26
|
_____ method calls a function or evaluates an expression after a specified number of milliseconds.
|
setTimeout()
| |
setTimeout()
|
setTimein()
| ||
timeout()
|
timein()
| ||
27
|
_____ executes a code some time in the future
|
setTimeout()
| |
setTimeout()
|
setTimein()
| ||
timeout()
|
ti
| ||
28
|
_____ method cancels the setTimeout().
|
clearTimeout()
| |
clearTimeout()
|
setTimeout()
| ||
resetTimeout()
|
setTimein()
| ||
29
|
_____ property of string object returns the character at a specified position.
|
charAt(index)
| |
charAt(index)
|
characterAt(index)
| ||
charIn(Index)
|
charto(Index)
| ||
30
|
Following event occurs when the user clicks on an element.
|
onclick
| |
onClick
|
onmousedown
| ||
click
|
onmouseover
| ||
31
|
Following event occurs when the user presses a mouse button over an element
|
onmousedown
| |
onmousedown
|
onmouseover
| ||
onmouseout
|
onmouseup
| ||
32
|
Following event occurs when the pointer is moved onto an element.
|
onmouseover
| |
onmousedown
|
onmouseout
| ||
onmouover
|
onmouseup
| ||
33
|
Following event occurs when the user releases a mouse button over an element
|
onmouseup
| |
onmousedown
|
onmouseover
| ||
onmouseout
|
onmouseup
| ||
34
|
Following event occurs when an event occurs when the user moves pointer out of an element.
|
onmouseout
| |
onmousedown
|
onmouseup
| ||
onmouseover
|
onmouseout
| ||
35
|
Following event occurs when the user is pressing a key.
|
onkeypress
| |
onkeydown
|
onkeypress
| ||
onkeyup
|
keypress
| ||
36
|
Following event occurs when the user releases a key.
|
onkeyup
| |
onkeydown
|
onkeypress
| ||
onkeyup
|
onkeyover
| ||
37
|
Following event occurs when an image is stopped from loading before completely loaded.
|
onabort
| |
onabort
|
onerror
| ||
onexit
|
onstop
| ||
38
|
Following event occurs when an image does not load properly(<body> and <frameset>)
|
onerror
| |
onabort
|
onerror
| ||
oncancel
|
onunload
| ||
39
|
Following event occurs when a document frameset has been loaded.
|
onload
| |
onload
|
onunload
| ||
overload
|
overunload
| ||
40
|
Following event occurs once a page has unloaded used with <body> and <frameset>.
|
onunload
| |
ofunload
|
onabort
| ||
onunload
|
oncancel
| ||
41
|
Following event occurs when a form element loses focus
|
onblur
| |
onblur
|
onchange
| ||
onfocus
|
onreset
| ||
42
|
Following event occurs when the content of a form element, the selection or the checked state have changed(for<input>, <select> and <textarea>)
|
onchange
| |
onblur
|
onchange
| ||
onreplace
|
onmodified
| ||
43
|
Followng event occurs when a form is cancelled
|
onreset
| |
onblur
|
onreset
| ||
oncancel
|
onselect
| ||
44
|
Following event occurs when a user selects some text (for<input) and <text area>.
|
onselect
| |
ontext
|
onselect
| ||
onhighlight
|
toselect
| ||
45
|
Following event occurs when a form is submitted.
|
onsubmit
| |
onsubmit
|
onsave
| ||
onsend
|
onclick
| ||
46
|
_______ method of string object returns the position of the last found occurrence of given character in a string.
|
lastindexof()
| |
indexof()
|
lastindexof()
| ||
indexat()
|
lastindexat()
|
Great sharing for a web newbie like me. I was searching for similar question answers, and i just found your source. It's very helpful and simple to remember really. Thanks again.
ReplyDeleteIt is very good website with full information, we are looking forward to connect with you in future. Here also you can check life of a high school student & relate your routine, along side top your academics with this free exam preparation app.
ReplyDelete