MCQGeeks
0 : 0 : 1
CBSE
JEE
NTSE
NEET
English
UK Quiz
Quiz
Driving Test
Practice
Games
Quiz
javascript
Quiz 1
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
Q.1
Java Script Variable should be Case ___________.
Non Sensitive
Sensitive
Q.2
Which attribute is used to specifies that the script is executed when the page has finished parsing (only for external scripts)
parse
async
defer
type
Q.3
Integer Variable is declared using following syntax in JavaScript.
int num;
Integer num;
integer num;
var num;
Q.4
Integer Variable is declared using following syntax in JavaScript.
int num;
Integer num;
integer num;
var num;
Q.5
Underscore can be used as first letter while declaring variable in JavaScript.
True
False
Q.6
Variable declared inside JavaScript Function will be called as ____________.
Local Variables
Global Variables
Q.7
Local Variables are destroyed after execution of function.
True
False
Q.8
JavaScript is invented by ________.
Helsinki, Linus
W3 Group
Brendan Eich
James Gosling
Q.9
JavaScript was invented at _______ Lab.
AT&T Bell LAb
Google Lab
Sun Microsystem
Netscape
Q.10
Variable can hold ________ value at a time.
Multiple
Single
None of these
Double
Q.11
JavaScript Code can be called by using _________.
RMI
Triggering Event
Preprocessor
Function / Method
Q.12
JS code included inside head section is loaded before loading page.
True
False
Q.13
It is good to include JS code inside footer section in order to speed up the Page loading time of Webpage.
True
False
Q.14
Which was the first browser to support JavaScript ?
IE
Netscape
Mozilla Firefox
Google Chrome
Q.15
JavaScript is ______ Side Scripting Language.
Server
Browser
ISP
None of These
Q.16
JavaScript is designed for following purpose
To Style HTML Pages
To Execute Query Related to DB on Server
To add interactivity to HTML Pages.
To Perform Server Side Scripting Opertion
Q.17
Consider the following code snippet
function
f
() {}
;
The above prototype represents a
Function f
A custom constructor
Prototype of a function
Not valid
Q.18
The purpose of extensible attribute is to
make all of the own properties of that object nonconfigurable
to configure and bring a writable property
“lock down” objects into a known state and prevent outside tampering
all of the mentioned
Q.19
Identify the process done in the below code snippet
o
=
{
x
:
1
, y
:{
z
:[false,null,
""
]}}
; s
=
JSON
.stringify
(
o
)
; p
=
JSON
.
parse
(
s
)
;
Object Encapsulation
Object Serialization
Object Abstraction
Object Encoding
Q.20
The basic purpose of the toLocaleString() is to
return a localised object representation
return a parsed string
return a local time in the string format
return a localized string representation of the object
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)