Study+Questions

=Study Questions=

Week 1. Study Questions
1. What is the Document Object Model (DOM)? 2. What is another name for JavaScript? 3. What is the difference between an interpreted and a compiled programming language? 4. Define the term “variable” as it relates to JavaScript. 5. What are statement operators and how are they used? 6. What is concatenation? 7. Write out an XHTML comment? A JavaScript comment? 8. List and define the data types available in JavaScript? 9. Define the purpose of a conditional statement. 10. Define the purpose of a repeat loop. 11. What is the difference between a local and global variable? 12. Give an example of when you might need to use a repeat loop. 13. What is a function? 14. What is a parameter or “argument” and how is it related to a function? 15. What are JavaScript operators and how are they used?

Week 2. Study Questions
16. Why do we use the getAttribute and setAttribute methods? 17. What are event handlers? 18. Give an example of an event handler. 19. Define childNodes, firstChild, and lastChild properties. 20. What property do we use to access the text within an XHTML element? 21. What is meant by graceful degradation of a JavaScript? 22. What is one good way to make sure that our JavaScripts are unobtrusive to the page? 23. How can we write scripts that are backwardly compatible?

Week 3. Study Questions
24. What is one way that the author’s image gallery degrades gracefully? 25. Why is it such a bad idea to use the javascript:: protocol in anchor tags? 26. What is the resulting data type returned by the get Elements ByTag Name method? 27. How does the author remove the inline event handlers and still manage to make the links work? 28. Why does the author create an addLoadEvent function? 29. Why does the author dislike the use of the onkeypress event handler? 30. What are some differences between the DOM Core and the HTML DOM? 31. The author disapproves of the document.write method; why? 32. What are three ways to dynamically add content to a web page? 33. What is one argument against the use of the innerHTML property?

Week 4. Study Questions
34. Explain the concept of progressive enhancement. 35. What property allows JS to change an element’s presentation? 36. Why is placing information in tag attributes a good idea? 37. How can you create an array with all tags in the current document? 38. Create a flowchart of the abbreviation display widget. 39. What is the purpose of the accesskey attribute? 40. What is an accessibility statement?

Week 6. Study Questions
41. Define the functionality of the setTimeout function. 42. Define the functionality of the setInterval function. 43. How do you stop a setInterval? 44. Define recursion. 45. Define Math.ceil, Math.round, and Math.floor

Week 8. Study Questions
46. Define the steps in putting together the JayScript and the Domsters website. 47. Why does the author separate the CSS into several external files? 48. What are some strategies and techniques used in form validation? 49. What is Ajax? 50. Define the term asynchronous. 51. What is the difference between AJAX and the authors term HiJAX?