New Year Special Limited Time 70% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: 70percent

CIW 1D0-735 CIW JavaScript Specialist Exam Practice Test

Demo: 8 questions
Total 55 questions

CIW JavaScript Specialist Questions and Answers

Question 1

Consider the following code:

What code would you use to determine if the check box has been checked or not?

Options:

A.

Document.form[0].termsService.selected

B.

Document.form[0].termsService.validityState

C.

Document.form[0].termsService.checked

D.

Document .form[0].termsService.value

Question 2

Which of the following best describes how JavaScript communicates with databases when used with AJAX?

Options:

A.

It provides a limited set of database operations such as retrieving data and displaying it back to the originating Web page.

B.

It performs back-end database operations such as modifying the database schema.

C.

It is used to change database security permissions.

D.

It was designed to perform queries on databases.

Question 3

Consider the following code:

What text will display in the alert dialog box?

Options:

A.

Ear J

B.

Ar Jo

C.

Ear Jo

D.

Ar J

Question 4

Consider the following code:

What will this alert display?

Options:

A.

It appears fall has arrived

B.

It appears winter has arrived

C.

Yes It appears fall has arrived

D.

Yes It appears winter has arrived

Question 5

Considering the following code:

Var 1 ;

For (I = 1; I < 10; I ++)

What part of the code fragment initializes the counter variable?

Options:

A.

i++

B.

i < 10;

C.

i = 1;

D.

Var 1;

Question 6

Jaime needs to write a script to remove all the non-digit characters from a phone number so that all that remains are the numbers She knows that she will need to use a regular expression to search for non-digit characters and can use a method to remove all the non-digit characters. Which code should she use?

A)

B)

C)

D)

Options:

A.

Option A

B.

Option B

C.

Option C

D.

Option D

Question 7

Janice needs to create a pop-up window that will open a Web document in a new browser window. Which code statement should she use?

A)

B)

C)

D)

Options:

A.

Option A

B.

Option B

C.

Option C

D.

Option D

Question 8

Consider the following code:

The code displays a pop-up alert message if the username is less than 6 characters and submits the form. What change should be made to prevent the form from submitted if the username is less than 6 characters?

Options:

A.

The function call on line 13 should be changed to validateForm();

B.

Return false; should be added after the alert call on line 7

C.

submit false; should be added after the alert call on line 7

D.

The submit event handler on line 13 should be moved to line 16

Demo: 8 questions
Total 55 questions