1D0-635 CIW JavaScript Specialist

Loading demo links...

Showing 1–3 of 10 questions

Question 1

Consider the following code:

What is the expected result of this script?

Select an option, then click Submit answer.

  • When you leave the page, the alert box will display.

  • The page will ignore the function, so a blank page will display on entry and exit.

  • When you enter the page, you will be warned that there is unfinished JavaScript to run. D. When you leave the page, there will be a JavaScript error because you cannot unload an alert box.

Question 2

Consider the following code:

When an invalid e-mail address is entered, an alert is displayed to the user, but the form submission is not interrupted. What changes need to be made to the script in order to abort the submission if an invalid e-mail address is entered?

Select an option, then click Submit answer.

  • Add return false after the alert() statement.

  • Change return to validate in the function call.

  • Add validate false after the alert() statement.

  • Remove the return keyword from the function call and put it in front of the alert() statement.

Question 3

Which of the following is a browser security issue that JavaScript developers should remember when developing a script?

Select an option, then click Submit answer.

  • JavaScript cannot be disabled in the client and will always run.

  • JavaScript functionality is immune to viruses, trojans and malware.

  • JavaScript is a cross-platform scripting language and will generate consistent results regardless of the client or server being used.

  • Certain JavaScript functionality may be blocked by some browsers, which prevents the script from running as expected for all users.