Enter your search terms
Submit search form
Web
examineonline.googlepages.com
Online Exam
>>
Programming
>>
Java Script
>>
Java Script Tutorial
Menu
Programming
COMPTIA
GMAT
English
IQ
DataBase
OS
MCSE
CISCO
Finance
Management
Health
Soft Skills
Web Building
Multimedia
Java Script Tutorial
1 . Which of the following is NOT done with JavaScript ?
A.
Form Validation
B.
RGB Colors
C.
Browser Detection
D.
RGB Value
2 . It is usually advisable to keep as much JavaScript as possible in which section ?
A.
Head
B.
Layer
C.
Body
D.
Title
3 . JavaScript lines end with what ?
A.
comma
B.
semicolon
C.
colon
D.
Bracket
4 . Which of the following is NOT a type of popup box ?
A.
Alert
B.
Confirm
C.
Radio
D.
Text
5 . The most common way to assign a value to a variable is by using what ?
A.
Equals sign
B.
Name It
C.
CSS
D.
HTML
6 . a++; is the same as which of the following ?
A.
a=a+2;
B.
a=a+3;
C.
a=a+1;
D.
a=a+4;
7 . When comparing variables use which of the following ?
A.
==
B.
=
C.
??
D.
!=
8 . To keep the browser from performing a script as soon as it is loaded you need to write the script as a what ?
A.
function
B.
delay
C.
performance
D.
Flexibility
9 . Actions that can be detected by javascript are called ?
A.
HTML
B.
Events
C.
Array
D.
ArrayList
10 . A variable that your webpage can store on or retrieve from the users computer is known as ?
A.
Applet
B.
Java
C.
Cookie
D.
Session
11 . In JavaScript, capital letters are different from lowercase letters ?
A.
Not on windows platforms
B.
Yes
C.
No
D.
Not on Linux Platform
12 . Which is detected when the mouse moves over a link ?
A.
overMouse event
B.
onMouseOver event
C.
onRollOver event
D.
OnMouseOut event
13 . How do you read the first character in a string ?
A.
stringName.charAt(0);
B.
stringName.substring(1);
C.
stringName.charAt(1);
D.
stringName.charAt(2);
14 . Which has no syntax error ?
A.
alert("hello "+3+" times);
B.
alert("hello "+3 times);
C.
alert("hello +3+ times");
D.
alert("hello "+3 +" times);
15 . Which method will open a new window ?
A.
popUp(PageURL,WindowName,settings);
B.
window.launch(PageURL,WindowName,settings);
C.
window.close(PageURL,WindowName,settings);
D.
window.open(PageURL,WindowName,settings);
16 . Which method is used to search for a substring ?
A.
stringVariable.substring(subString)
B.
stringVariable.find(subString)
C.
stringVariable.indexOf(subString)
D.
stringVariable.indexOf(charAt(0))
17 . Inside which HTML element do we put the JavaScript?
A.
<scripting>
B.
<javascript>
C.
<js>
D.
<script>
18 . What is the correct JavaScript syntax to write "Hello World"?
A.
Hello World"
B.
document.write("Hello World")
C.
response.write("Hello World")
D.
("Hello World")
19 . Where is the correct place to insert a JavaScript?
A.
The <head> section
B.
Both the <head> section and the section are correct
C.
The <body> section
D.
The <Title> Section
20 . What is the correct syntax for referring to an external script called "xxx.js"?
A.
<script name="xxx.js">
B.
<script href="xxx.js">
C.
<script src="xxx.js">
D.
<link src="xxx.js">
Test Name :
Java Script Tutorial
Category :
Java Script
Number of Question :
20
Pass Score :
80
Test Result
Your Score :
Passing Score :
80
Result :
Copyright by
VanTuMinh
© 2007