Monday, September 06, 2010
Link Dir
Download
Resources
Music
Home
IT Quiz Menu
Quizzes Home Page
General Quizzes and Trivia
PC Troubleshooting
Networking Guide
Info Tech Glossary
Code Bank
Web Development
IT Quizzes Category
ASP
ASP 2
ASP ADO
ASP Server Side Include
ASP.NET
C# .NET
CISCO-CCNA
Computer Hardware
Computer Technolgy
Computer Trivia
CSS
Database Management
HTML
IIS 6 Administration
Java
JavaScript
Javascript Fundamental
Linux
MCSE 70-291
Network Plus
Networking
Networking 2
OSI Model
PERL
PHP
Project Management
Search Engine Optimization
Server Administrator
SQL
SQL Advanced
SQL Server Administration
VB.NET
Web Designer
Windows 2000 Server
Windows 2003 Server Adminstration
XHTML
XML
Search Web Link
Search Software
Quizzes Main Page
IT Quizzes
Javascript Fundamental Quiz
Javascript Fundamental Quiz
There are 20 questions in this quiz. Good luck!
Passing grade is 70% = C.
1)
You are a junior web designer. Your company assigns you to work on a JavaScript project. Which of the following are the advantages of using JavaScript for form validation?
a)
Conservation of client CPU resources
b)
Increased validity of form submission
c)
Conservation of bandwidth
d)
Increase end-user satisfaction
e)
Either BCD
2)
Your company assigns you to work on a JavaScript project. With the DATE object, which of the following allows you to call a function based on an elapsed time?
a)
setElapsedTime()
b)
Timeout()
c)
setTimeout()
d)
setTime()
3)
You are working on a JavaScript project. What is used to restart the inner most loop?
a)
Abort
b)
Breakloop
c)
Stop
d)
Continue label
4)
You work on a JavaScript project. Which of the following correctly describe the relationships of JavaScript and "objects"?
a)
JavaScript is Object-oriented
b)
JavaScript is Object-based
c)
JavaScript is Object-driven
d)
JavaScript has no relationship with objects
5)
You work on a JavaScript project. How do you prompt users with messages and at the same time requesting user inputs?
a)
Alert()
b)
Display()
c)
Prompt()
d)
Confirm()
6)
Which of the following is the correct syntax of FOR?
a)
for ( increment; initialize; test)
b)
for ( initialize; test), increment
c)
for ( initialize; test; increment)
d)
for ( test; initalize; increment)
7)
In your JavaScript code, how do you find out which character occurs at the 5th position in a string "How are you"?
a)
Substring()
b)
String()
c)
Stringlength()
d)
CharAt()
8)
Which of the following do you use for a multi-way branch?
a)
If
b)
Ifthen
c)
Ifelse
d)
switch
e)
for
9)
You want to design a form validation mechanism. Using string methods, which of the following are the steps involved ?
a)
Check for the presence of certain characters
b)
Check the position of substrings
c)
Test the length of data
d)
Check the variable type of the strings
e)
Either ABC
10)
Which of the following is the minimum browser version that supports JavaScript
a)
Navigator v2.0
b)
Mozilla V1.5
c)
IE 2.0
d)
Navigator V1.0
11)
Under which of the following conditions will you need to include semi colons on a line of code?
a)
When you have multiple statements on multiple lines
b)
When you have multiple statements on a line
c)
When you have single statement on multiple lines
d)
When you have single statement on a line
12)
Which of the following are the valid JavaScript versions?
a)
Version 1.2
b)
Version 1.1
c)
Version 1.3
d)
Version 1.4
e)
All of the above
13)
Which of the following languages will you consider as being similar to JavaScript?
a)
C
b)
C++
c)
Pascal
d)
PHP
e)
Either A & C
14)
You plan the coding of your project. When must the object references be ready?
a)
at run time
b)
at compile time
c)
at debug time
d)
at code time
15)
Which of the following correctly describe cookies ?
a)
Often referred to as "persistent cookies"
b)
Often referred to as "persistent HTML"
c)
Small memory-resident pieces of information sent from a server to the client
d)
Small memory-resident pieces of information sent from a client to the server
e)
Either AB&C
16)
A program written by JavaScript is driven by
a)
Events
b)
Classes
c)
Objects
d)
DLL
e)
Components
17)
What are JavaScript relations with the underlying operating platform?
a)
Platform dependent
b)
Platform linkage
c)
Platform independent
d)
Platform binding
18)
When you plan for the JavaScript variable names, the first character must be?
a)
Underscore
b)
Comma
c)
Hyphen
d)
Letter
e)
Either A&D
19)
Which of the following correctly describe JavaScript as a language?
a)
It is based on object creation
b)
It focuses on component building
c)
It focuses on logic flow
d)
It emphasis on SCRIPTING
20)
When authoring web page with Javascript, why should you explicitly include the window object into your codes?
a)
this is a good practice
b)
this is REQUIRED
c)
this ensures browser compatibility
d)
this ensures OS compatibility
E-mail this Quiz to a friend
Bookmark this Quiz