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 -
Increased validity of form submission
B -
Conservation of bandwidth
C -
Increase end-user satisfaction
D -
All of the above
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 -
setTime()
B -
setTimeout()
C -
Timeout()
D -
setElapsedTime()
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
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 -
Either a,b,c
10-
Which of the following is the minimum browser version that supports JavaScript