Syntax
Test
Model Test
Ebook
Quiz-1 : JavaScript basic
Quiz 2: JavaScript
Quiz 3: JavaScript Basic Level1 quiz
Quiz 4: JavaScript Model Test 6-Jan-2014
Quiz 5: JavaScript Model Test 17 Feb 2014
Quiz 6: JavaScript Model Test 23 Feb 2014
Quiz 7: JavaScript Model Test 3 Mar 2014
Quiz 8: JavaScript Model Test 6 Mar 2014
Index
Javascript Home
Basic
84
Array
7
Function
37
Control structure
18
Syntax
14
Operators
37
Objects
7
Data types & variables
45
Event
7
OOP
1
IO
2
DHTML
1
Regular Expression
1
BOM
2
DOM
4
Schools
Ebook
Question:
You define an array using-
A
var myarray = new Array();
B
var myarray = array new;
C
var new Array() = myarray;
D
var new array = myarray;
Note:
Not available
Show answer
Show Note
Report
Question:
When you plan for the JavaScript variable names, the first character must be?
A
Underscore
B
Comma
C
Hyphen
D
Letter
Note:
Not available
Show answer
Show Note
Report
Question:
Which of the following is the correct syntex of defining a variable?
A
var a_variable=10;
B
var 0a_variable=10
C
a_variable=10
D
var #a_variable=10
Note:
Not available
Show answer
Show Note
Report
Question:
Which of the follownig is the correct method to open a new window?
A
popUp(PageURL,WindowName,settings);
B
window.launch(PageURL,WindowName,settings).
C
window.exec(PageURL,WindowName,settings);
D
window.open(PageURL,WindowName,settings);
Note:
Not available
Show answer
Show Note
Report
Question:
What is the correct syntax for referring to an external script called "file.js"?
A
<script name="file.js" type=”text/javascript”></script>
B
<script href="file.js" type=”text/javascript” />
C
<script src="file.js" type=”text/javascript”></script>
D
<link src="file.js" type=”text/javascript” />
Note:
Not available
Show answer
Show Note
Report
Question:
How do you make comment in JavaScript?
A
// comment
B
/* comment */
C
<!—comment -->
D
/* comment
Note:
Not available
Show answer
Show Note
Report
Question:
Placing the "break" at the end of every case within a switch statement is________?
A
Compulsory
B
Optional
C
both
Note:
Not available
Show answer
Show Note
Report
Question:
Which of the below is used in Java script to insert special characters?
A
&
B
\
C
-
D
%
Note:
Not available
Show answer
Show Note
Report
Question:
What is
this
keyword in JavaScript?
A
The this keyword is just an operator.
B
The this keyword is a reference variable that refers to the current object
C
The this keyword is a reference variable that refers to the any object
D
None
Note:
Not available
Show answer
Show Note
Report
Question:
What is the correct syntax of creating JavaScript cookie?
A
cookie="name=value;[expires];[path];[domain];[secure]"
B
document.cookie="name=value;[expires];[path];[domain];[secure]"
C
window.cookie="name=value;[expires];[path];[domain];[secure]"
D
document.cookie="name=value;[path];[expires];[domain];[secure]"
Note:
Not available
Show answer
Show Note
Report
First
Prev
1
2
Next
Last
/2
Go
Schools
App Store
Whiteboard
Blogs
Quiz
Test
Apply Course
Games
Freelancers
Professionals
Newspapers
Terms
Privacy
Copyright © 2025. Powered by
Intellect Software Ltd