Sunteți pe pagina 1din 5

ACCP I10 SEMESTER 2

XML Simplified
MODULAR QUIZ
FOR
Module 5_6 Stylesheets. XSL and XSLT.

Module 5 Stylesheet.

1...Cascading Style Sheets derived the term cascade from the ability to mix and match
rules from different sources.
True|False

2..Cascading Style Sheets lack support to define spacing between data,
True|False

3....A CSS style sheet is associated with an XML document using the processing
instruction xml-stylesheet.
True|False

4...Style sheets allow you to mix presentation markup with data,
True|False

5....Style sheets contain one or more rules about the appearance of data
True|False

6...Simple selectors match occurrence of an element based on a condition
True|False

7...ID selectors are used to define style rules for unique elements.
True|False

8...In simple selectors you define same property declarations for multiple elements by specifying
a comma separated list of element names.
True|False

9...ID selector match elements which have an id attribute.
True|False

10...Universal selectors match every occurrence of parent and child elements
True|False

11...Can you match the properties with the corresponding descriptions?
A...font-style
B..font-weight
C...font-size: small
D..font-family
E..font-size

A...To display an element's data in italics.
B...To display an element's data in bold.
C...To display an element's data in a small font.
D..To display an element's data in Times New Roman,
E...To display an element's data a big font


12...Can you match the properties with the correspoding descriptions?
A..margin
B..padding
C...border
D..position
E..text-align

A...To insert space around an element
B...To insert space between the text and border of element's box,
C...To display an outline around the element's data,
D...To place element's data at the specified location,
E...To place element's data in the center,


13..Declarations are sorted by weight and origin
True|False

14...Inheritance enables one entity to acquire the properties of another entity,
True|False

15...A child element inherits the properties of an ancestor element only if it is an
immediate child,
True|False

16...Declarations are sorted by the order specified.
True|False

17...There is always only one style rule defined for every element
True|False

Module 6 - XSL and XSLT.

1..Can you match the XSL elements againts their correspoding descriptions?
A..xsl:import
B..xsl:variable
C...xsl:namespace-alias
D..xsl:template
E..xsl:output

A...Used to add one stylesheet to another,
B...Allow to set a variable in the xsl file.
C...Allow the stylesheet to alias one namespace prefix for another in the result tree,
D...Used to build templates,
E...Allow stylesheet authors to specify how they wish the result tree to be output


2...CSS uses complex elements to format the documents
True|False

3..XSL describes how the XML document should be displayed,
True|False

4...XSL elements can be used to perform complex calculations.
True|False

5...XSL is a stylesheet application specifically for HTML,
True|False

6...CSS is a simple, styling-based approach that does not require advanced programming
skills
True|False

7...Can you match the XSL elements againts their correspoding descriptions?

A...Puts a conditional test against the content of the XML file (xsl:if)
B..Adds literal text to the output. (xsl:text)
C...Extracts the value of a selected node. (xsl:value-of)
D..Applies a template repeatedly. (xsl:for-each)
E....Inserts a multiple conditional test against the XML file (xsl:choose)


Answer

Module 5 Stylesheet.
Question Answer
1 True
2 False
3 True
4 False
5 True
6 False
7 True
8 True
9 True
10 False
11 font-style
font-weight
font-size: small
font-family
font-size
12 margin
padding
border
position
text-align
13 True
14 True
15 False
16 True
17 False

Module 6 - XSL and XSLT.
Question Answer
1 xsl:import
xsl:variable
xsl:namespace-alias
xsl:template
xsl:output
2 False
3 True
4 True
5 False
6 True
7 xsl:if
xsl:text
xsl:value-of
xsl:for-each
xsl:choose

S-ar putea să vă placă și