Tutor Marked Assignment JS TMA-05
In a Nutshell - CIW Course Section 2 Part A
JS TMA-05 - CD Access Code: 18315
Q1. Which of the following are properties of the form object?
- a) form
- b) name
- c) width
- d) length
- e) reset
- f) target
- g) elements
- h) encoding
Q2. What benefits arise from using JavaScript to validate forms?
- a) More accurate form entries
- b) Quicker feedback for users
- c) Reduced bandwidth usage
- d) Reduced server load
- e) Improved communication security
Q3. A list box allows the selection of only a single item from the list.
- a) True
- b) False
Q4. Which of the following is the simplest of all JavaScript objects.
- a) checkbox
- b) textarea
- c) button
- d) select
Q5. Which property can be used to find the number of options within a select object?
- a) length
- b) size
- c) count
- d) options
Q6. Which of the following are methods of the form object?
- a) reset()
- b) clear()
- c) enter()
- d) submit()
Q7. A form named "orderForm" contains a checkbox called "over18". Which of the following would correctly access the checkbox property that indicates if the CHECKED attribute was used in the <INPUT> tag?
- a) document.orderForm.over18.checked
- b) orderForm.over18.checked
- c) document.orderForm.over18.defaultChecked
- d) orderForm.over18.defaultChecked
Q8. Which of the following are valid parameters used in the header of a cookie?
- a) name = value
- b) path = domain
- c) expires = date
- d) status = value
- e) modified = date
Q9. The HTTP header for a cookie is limited to what size?
- a) 40 bytes
- b) 400 bytes
- c) 4 Kbytes
- d) 40 Kbytes
Q10. What is the maximum number of cookies that can be stored by a single domain?
- a) 10
- b) 20
- c) 30
- d) 40
Q11. Internet Explorer uses how many types of file to set cookies?
- a) 1
- b) 2
- c) 3
- d) 4
- e) 5
Q12. When a member of a subdomain sets a cookie, it becomes available to all other subdomains of the larger domain of which it is a member.
- a) True
- b) False
Q13. TCP is a __________ protocol, which means that it is _________-oriented.
- a) stateless, connection
- b) stateful, user
- c) stateless, user
- d) stateful, connection
Q14. What is the correct syntax to assign a cookie using JavaScript?
- a) document.cookie.name=value
- b) document(cookie)=name=value
- c) document.cookie=name=value
- d) cookie.name=value
Q15. Cookies cannot be used for any purpose.
- a) True
- b) False

