CIW JavaScript Specialist (1D0-735) Free Practice Test
Question 1
Consider the following code:

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

What is the result if this code is run in a browser?
Correct Answer: D
Question 2
Loni needs to create a scriptable button in her Web form that does not submit the form but instead, calls a custom function What HTML code should she use?
A)

B)

C)

D)

A)

B)

C)

D)

Correct Answer: B
Question 3
Consider the following code:
<img onmousout=" sofaPic (this) " src="sofa.jpg" alt="sofa">
Which of the following is true based on the above code?
<img onmousout=" sofaPic (this) " src="sofa.jpg" alt="sofa">
Which of the following is true based on the above code?
Correct Answer: C
Question 4
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)

B)

C)

D)

Correct Answer: D
Question 5
Consider the following code.

Which of the following will occur if the user's response is 25?

Which of the following will occur if the user's response is 25?
Correct Answer: D
Question 6
Marshall's computer previously contracted malware because he unknowingly clicked on an infected link in a pop-up window. What can he do to secure the Web browser so that he is protected in the future?
Correct Answer: B