Home > Certified Internet Web Professional > Quizzes > 1D0-635: CIW JavaScript Specialist Exam Practice Test 2
1D0-635: CIW JavaScript Specialist Exam Practice Test 2
Fast practice, instant feedback. Timer auto-submits when time’s up.
Avg score: 0% Most missed: “Which is the best technique to test a script for cross-browser compatibility?”
1D0-635: CIW JavaScript Specialist Exam Practice Test 2
Time left 00:00
25 Questions

1. Which of the following is a valid variable name in JavaScript?
2. Which statement will open this Web document in a new browser window?
3. Which of the following will correctly modify the value of an X/HTML element's attribute within the DOM?
4. Consider the following code: What is the expected result of this script?
5. When using AJAX, what is the purpose of the XMLHttpRequest object?
6. Which of the following is a browser security issue that JavaScript developers should remember when developing a script?
7. Consider the following code: Will this function generate an error?
8. Consider the following code: When an invalid e-mail 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?
9. Consider the following code: What will this alert display?
10. Which of the following is a practice associated with the security risk known as cross-site scripting (XSS)?
11. Consider the following code: What is the expected result when you run this script in the browser?
12. Consider the following select list: Which of the following will select the third option in the list?
13. Suppose you define two variables as follows: var x =5; var y=5"; Which statement will return the mathematical sum of these variables?"
14. Which statement about the JavaScript form object is true?
15. Which statement is true about the getElementByID() method?
16. Consider the following code: What is the appropriate parameter for the alert() method in line 5 to reference the text in the firstName text box?
17. What basic code is needed to define a function in JavaScript?
18. You want to display a series of elements. Which choice demonstrates the correct syntax for an array in JavaScript?
19. Consider the following statement: for (X; Y; Z) What does Z represent in this code?
20. Maria, a 22-year old student, is testing her JavaScript application, which includes the following code: Assuming Maria enters truthful information, what is the value of z after executing this code?
21. Consider the following code: What is the expected result when you run this script in the browser?
22. Which script block will display Hello World in the browser when the script is run?
23. Which of the following is a reason why a developer would use a JavaScript library?
24. Which is the best technique to test a script for cross-browser compatibility?
25. Which of the following comparison statements will return true?