Tutor Marked Assignment JS TMA-03
In a Nutshell - CIW Course Section 2 Part A
JS TMA-03 - CD Access Code: 10962
Q1. The image object is subordinate to the document object:
- a) True
- b) False
Q2. The JavaScript object hierarchy model divides objects into three groups, which are they?
- a) language objects, form objects, browser objects
- b) browser objects, form field objects, layered objects
- c) layered objects, form objects, browser objects
- d) language objects, browser objects, for field objects
Q3. The history object is subordinate to the window object in the JavaScript hierarchy:
- a) True
- b) False
Q4, Match the following syntax with their description:
- a) self
- b) name
- c) window
- d) defaultStatus
- 1) String value containing the default status bar text
- 2) String value containing the name of the window or frame
- 3) String value containing the name of the current window
- 4) An alternative name for self or name
Q5. If x is a string, go(x) will go back to the page in the history list with a URL that matches x.
- a) True
- b) False
Q6. Match each object with the correct description.
- a) Location
- b) History
- c) Image
- d) Document
- 1) Has a lst modified property that is used to return the date and time at which the document was most recently saved.
- 2) Often used to create buttons that animate whenever a mouse passes over them.
- 3) Allows the user to move backwards and forwards to previously visited pages.
- 4) Sends the user to a particular URL.
Q7. Which of the following statements correctly relates to an object:
- a) An object is a package of data that is classed under a single name.
- b) In JavaScript you cannot create your own objects for storing data.
- c) In JavaScript it is common to use objects that have been built into the language.
- d) In JavaScript you can create your own objects for storing data.
Q8. Match each of the properties/methods (preceding the name with windowName.document.) to their correct description.
- a) close()
- b) write()
- c) open()
- d) fgColor
- 1) Prepares the new window to accept a data stream
- 2) Writes a data stream dynamically into the new window
- 3) Ends the data stream and forces the text to display
- 4) Specifies the text colour for a document in another window
Q9. Which objects are named with a capital letter:
- a) layered objects
- b) browser objects
- c) language objects
- d) form objects
Q10. Which of the following are event handlers for the image object?
- a) onShow
- b) onError
- c) onLoad
- d) onAbort
Q11. What of the following is correct?
| a) | <INPUT TYPE="button"
VALUE="Click Here" onClick="location.href='http://www.ciwcourse.co.uk':"> |
| b) | <INPUT TYPE="button"
VALUE="Click Here" onClick="location.href='http://www.ciwcourse.co.uk':"> |
| c) | <INPUT TYPE="button"
VALUE="Click Here" onClick="location.href='http://www.ciwcourse.co.uk':"> |
| d) | <INPUT TYPE="button"
VALUE="Click Here" onClick="location.href='http://www.ciwcourse.co.uk':"> |
 :
Hint: You could be quoted on this answer.
Q12. Match the document object property to the correct description:
- a) fgColor
- b) bgColor
- c) alinkColor
- d) vlinkColor
- 1) Represents the colour of visited links
- 2) Represents the colour of active links
- 3) Represents the text colour of the document
- 4) Represents the background colour of the document

