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

CIW 1D0-735 - CIW JavaScript Specialist

Page: 2 / 2
Total 55 questions

How does AJAX use the XMLHttpRequest object"?

A.

It changes a portion of a Web page so only the affected part of the page will be reloaded

B.

It provides Web page compatibility with mobile device browsers

C.

It performs code validation on the server-side in order to speed up the process of validation

D.

It provides backward-compatibility with older browser versions

Ashton need to write out the items in any array as a list, with their array index number followed by their value. Which block of code will accomplish this?

A)

B)

C)

D)

A.

Option A

B.

Option B

C.

Option C

D.

Option D

Consider the following code:

What is the result if this code is run in a browser?

A.

25

10

20

30

B.

25

10

20

30

C.

the code contains a logic error and would display a blank screen.

D.

5

2

4

6

Joseph is designing a Web form for new patient enrollment in a doctor's office He wants to ensure that users enter valid information on the form He also wants to make sure that hackers cannot submit malicious code to gain access to information about other patients. What technique should he use?

A.

He should secure the Web pages through SSL (Secure Sockets Layer) certificates

B.

He should write a script to compare the information the user entered with the information on the Internet that is publicly available about the user

C.

He should write regular expressions to check that the data values entered match the requirements

D.

He should add the required attribute to the e-mail and phone fields on the form

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)

A.

Option A

B.

Option B

C.

Option C

D.

Option D

Consider the following code:

The JavaScript function above will display the following:

A.

The package will be delivered to P.O. Box 789 Central City Florida 54321 Company headquarters are located in 123 Main Street Anytown Arizona 98765

B.

The package will be delivered to 123 Main Street Anytown Arizona 98765 Company headquarters are located in P.O Box 789 Central City Florida 541321

C.

The package will be delivered to Arizona Company headquarters are located in Florida

D.

The package will be delivered to Florida Company headquarters are located in Arizona