Your browser does not support JavaScript. You will need to view non-JavaScript portions of this page.

CGS 2820: Summer Term 2004
On-Line Quizzes

In order to forward you your test results please enter your name & email address below:

Enter First Name followed by a space then your Last Name here



Enter E-mail Address here:



CHAPTER TWO: WORKING WITH DYNAMIC CONTENT AND STYLES

DHTML Tutorial 2 Quiz Masters:

Kathryn (kathrync@tampabay.rr.com) [Text Input]

John Taylor (jtaylor@hcc.cc.fl.us) [Consultant]


Multiple Choice [One Answer Only]


Question 1

________ content is material on a Web page that is added, usually after the page has already been loaded and shown by the Web browser and usually in response to actions or requests by the user.

a) Real-time
b) Active
c) Dynamic
d) Passive

Question 2

To create dynamic content with Netscape, you must use its ________ tag.

a) <DIV>
b) <LAYER>
c) <ILAYER>
d) All of the above

Question 3

The <LAYER> tag encloses document content in a __________.

a) matrix
b) line
c) file
d) container

Question 4

What is the syntax to insert an H1 ehader within a layer?

a)<H1 ID=layer>Header Text</H1>
b) <LAYER ID=H1>Header Text</LAYER>
c) <LAYER ID=Header><H1>Header Text</H1></LAYER>
d) <H1><LAYER ID=Header>Header Text</LAYER>

Question 5

The __________ property of the <LAYER> tag specifies the coordinates of the viewable region of the layer.

a) VIEWABLE
b) HEIGHT
c) DISPLAY
d) CLIP

Question 6

Which of the following is a value of the VISIBILITY property of the <LAYER> tag?

a) REVEAL
b) UNHIDE
c) INHERIT
d) All of the above

Question 7

If you want to use relative positioning in Netscape, you must use the _______ tag.

a) <LAYER>
b) <ILAYER>
c) <RELLAYER>
d) <NOLAYER>

Question 8

To insert content in a layer, you use the ____________ method.

a) write()
b) read()
c) add()
d) insert()

Question 9

The syntax for inserting content in a layer is: __________

a) id.document.write(dynamic content)
b) document.write(dynamic content)
c) document.id.document.write(dynamic content)
d) write(dynamic content)

Question 10

The command to close the input stream is: ____________

a) id.document.close()
b) document.id.document.close()
c) document.close()
d) close()

Question 11

Which of the following is a property of the JavaScript Border style attribute in Internet Explorer?

a) borderLeftStyle
b) borderWidth
c) borderStyle
d) All of the above

Question 12

Which of the following is a property of the JavaScript Text style attribute in Internet Explorer?

a) letterColor
b) textDepth
c) wordSpacing
d) All of the above

Question 13

The position and float properties are both ___________.

a) changeable via JavaScript
b) recognized by Internet Explorer
c) read-only
d) All of the above

Question 14

The syntax for disabling a style sheet is: ________

a) <DISABLE STYLE>
b) <STYLE ID=id_name DISABLED>
c) <DISABLE SHEET>
d) <STYLE=DISABLED>

Question 15

You can import a style sheet using the __________ tag.

a) <SHEET>
b) <LINK>
c) <IIMPORT>
d) All of the above

Question 16

You can import a style sheet using the __________ statement.

a) @link
b) @import
c) +sheet
d) +link

Question 17

You can work with individual style declarations or __________ within a style sheet.

a) rules
b) mandates
c) parameters
d) attributes

Question 18

When display is set to _______, the object will not be shown on the page.

a) no
b) none
c) nodisplay
d) noshow

Question 19

Setting the display value to ______ unhides an object.

a) *
b) ""
c) &
d) @

Question 20

When you use the __________ property, an object, though invisible, will still occupy space on the page.

a) style
b) display
c) visibility
d) show

Question 21

Netscape provides its own language for creating dynamic styles, called _____.

a) NSS
b) CSS
c) NASS
d) JASS

Question 22

How would the CSS style declaration, H1 {color:red}, be expressed in JASS?

a) tags.H1.color="red"
b) H1.color="red"
c) color.H1="red"
d) tags.H1="red"

Question 23

If you need to set several style attributes at once, you can use the _______keyword to group the attributes together.

a) group
b) cluster
c) with
d) this

Question 24

What is the JASS equivalent of the CSS style, #Intro {color:red}?

a) Introlids.color="red"
b) color.ids="red"
c) Intro.color.ids="red"
d) ids.Intro.color="red"

Question 25

If the tag in the HTML file is <H1 ID=Title>C B</H1>, the JavaScript command, Title.insertAdjacentText)"BeforeEnd", "A D:); will change the text of the H1 header to ___________.

a) C B A D
b) A D C B
c) C A B D
d) D A B C

Question 26

For which of the following types of elements does JASS support styles?

a) tags
b) classes
c) IDs
d) All of the above

Question 27

The value in a JASS style tag is placed within __________.

a) parantheses
b) double quotation marks
c) angle brackets
d) slashes

Question 28

JASS styles are applied within a set of <STYLE> tages with the TYPE property set to ______________.

a) "text/css"
b) "text/javascript"
c) "text/style"
d) "text/Netscape"

Question 29

What is the JASS equivalent of the CSS style declaration, P B {color:"red"}?

a) contextual(tags.P, tags.B).color="red"
b) tags.P,tags.B).color="red"
c) document(tags.P, tags.B).color="red"
d) None of the above

Question 30

To change the color and fond size of the Quote object on the page to 16 pt. red in Internet Explorer, you could enter the following command: ______________.

a) {cssText color=red font-size=16}
b) Quote.cssText color=red fond-size=16
c) style.cssText quote="color:red font-size: 16 pt"
d) Quote.style.cssText="color:red font-size: 16 pt"



True/False Questions


Question 31

The Z-INDEX property of the <LAYER> tag specifies the stackinig order of the layer, relative to the other layers.

a) The statement above is TRUE.
b) The statement above is FALSE.


Question 32

The syntax for linking to an external file is <LAYER ID=id URL=URL></LAYER>

a) The statement above is TRUE.
b) The statement above is FALSE.


Question 33

The properties for the <ILAYER>tag are the same as those for the <LAYER>tag.

a) The statement above is TRUE.
b) The statement above is FALSE.


Question 34

The first document.write() command will replacer whatever content was previously in the layer; subsequent document.write() commands will append to the layer.

a) The statement above is TRUE.
b) The statement above is FALSE.


Question 35

The syntax for the <IFRAME> tag is <IFRAME SRC=URL WIDTH=value HEIGHT=value>

a) The statement above is TRUE.
b) The statement above is FALSE.


Question 36

External style sheets cannot be changed.

a) The statement above is TRUE.
b) The statement above is FALSE.


Question 37

Attribute names in JASS follow the same naming convention employed by the Internet Explorer style objects.

b) The statement above is TRUE.
a) The statement above is FALSE.


Question 38

If you format headers using <A> tags, Netscape treats them as underlined, linked text.

a) The statement above is TRUE.
b) The statement above is FALSE.


Question 39

To change the source of a layer, the JavaScript syntax is: document.src.id=URL.

a) The statement above is TRUE.
b) The statement above is FALSE.


Question 40

Introduced in version 2.0, the <LAYER> tag encloses document content in a container in Netscape.

a) The statement above is TRUE.
b) The statement above is FALSE.



Fill-in-the-Blank


Fill in the Blank with the word(s) that best fits the definition:

(hint: use vocabulary from the checkboxes below)


Question 41

The CLIP property of the <LAYER> tag specifies the coordinates of the region of the layer.

Question 42

The syntax for linking to an external file is <LAYER ID=id =URL> </LAYER>

Question 43

The <DIV> tag is used to create -level elements in standard HTML.

Question 44

In the conversion to JavaScript, the name of the CSS attribute background-image becomes

Question 45

The property determines whether an object is positioned absolutely or relatively on the page.

Question 46

By changing the (two words) used by a page, you can simultaneously affect the style for all of the elements on your Web page.

Question 47

JASS stands for (four words).

Question 48

JASS supports styles for four different types of .

Question 49

The attribute has the advantage that it not only hides an object, but also causes the rest of the page to flow into the space that the object previously occupied.

Question 50

In Netscape, the <> tag places content within the natural flow of a document, so the layers will not overlap.



I have


Please add a comment below



The 'Muddy Water' Issues that I need help on are as follows:





I need class review on the following vocabulary words from this chapter:

Dynamic content <LAYER> CLIP JASS <ILAYER>

event handler inner property outer property style sheet stacking



When you have completed this quiz, press the ALL DONE-CHECK TEST button below to check the test! Then you may go back and change the incorrect answers before you submit the test. You may check the answers as many times as you need until you achieve a perfect grade. Sometimes the pop-up box does not appear when you click on the button after checking the test the first time. If this happens, minimize the test and the answer box will be behind the browser. close the box and maximize the test to continue checking the test and finally submitting it.



When you have finished checking the test, press the SUBMIT button to send answers to your instructor


Back to CGS 2820 Course Menu Page



Users whose browser does not support JavaScript, when you have completed this quiz click the submit button below to send answers to your instructor