Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 7

Quiz 2 – Web Tools for Technical Writers

1. What are the three primary DITA topic types?


Answer:

Concept
Reference
Task

2. What are the two map types?


Answer:

DITA Map
Bookmap

3. What does DITA stand for?


Answer:

Darwin Information Typing Architecture

4. To create XHTML or HTML from DITA you need which two of the following:
A. XML parser
B. XSTL processor
C. XSL-FO processor

Answer:

A and B

5. To create PDF from DITA you need which two of the following:
A. XML parser
B. XSTL processor
C. XSL-FO processor
Answer:

A and B

6. Name a document-centric open standard


Answer:

DocBook

7. Name a topic-based open standard


Answer:

DITA
8. Name the three DITA elements you would need to have an image with a caption
(be sure to use the actual DITA element names, case-sensitive)
Answer:
<fig> <image> <title>

<fig>
<title>Beautiful Picture </title>
<image href=”images/Beautiful Picture.jpg”</image>
</fig>

9. State one reason people attending a DTIA class should care about the command-line

Answer:
DITA OT is run at the command line and knowing how to use it is a valuable career
skill.

10. Name an open source tool that transforms DITA XML source content into
deliverables
like PDF, HTML, and help systems.

Answer:
DITA Open Toolkit (DITA OT)

11. Which of this following is a true statement (pick the best answer)?

A. DITA must be valid.


B. DITA must be well-formed.
C. DITA enables reuse.
D. DITA is an XML vocabulary.
E. All of the above are true.
Answer:

E: All of the above.

12. Which standards body curates DITA?

A. OASIS (Organization for the Advancement of Structured Information Standards)


B. ISO (International Organization for Standardization)
C. ECMA (European Computer Manufacturers Association)
D. W3C (World Wide Web Consortium)
Answer:

A: OASIS

13. The concept topic

A. Answers "What is . . . " questions


B. Presents "Just the facts . . ."
C. Answers "How do I . . ." questions
D. Enables order and hierarchy of a set of topics
Answer:
A: Answers the “What is…” questions.
14. Which of the following provides syntax for adding
- Frontmatter and backmatter
- Parts, chapters, and appendices
- Book metadata

A. DITA map
B. Bookmap
C. Relationship table
D. All of the above
Answer:

B: Bookmap

15. The ________ is responsible for establishing the framework in which consistent,
reliable content is produced and delivered to customers and doing so in a way that
promotes the business goals of the organization.

A. DITA OT
B. Bookmap
C. Information Architect
D. Command line
Answer:

C: Information Architect

16. List four duties of the Information Architect

Answer:
1. Investigate, understand, articulate customer requirements.
2. Define a DITA environment optimized to reflect customer requirements.
3. Define business roles optimized to support customer requirements.
4. Model Metadata.

17. Which standards body curates HTML?

A. OASIS (Organization for the Advancement of Structured Information Standards)


B. ISO (International Organization for Standardization)
C. ECMA (European Computer Manufacturers Association)
D. W3C (World Wide Web Consortium)
Answer:

D: W3C
18. Create an HTML document that has an html root element, an h1 element, and a p
element. Place any text you like in the h1 and p elements.
Answer:
<html>
<h1>Hello World</h1>
<p>This is from the presentation.</p>
</html>

19. Which standards body curates CSS?

A. OASIS (Organization for the Advancement of Structured Information Standards)


B. ISO (International Organization for Standardization)
C. ECMA (European Computer Manufacturers Association)
D. W3C (World Wide Web Consortium)
Answer:

D: W3C

20. To associate CSS to an HTML file internally, you would use which of the following
elements?

A. style
B. link
C. script
Answer:

A: style
21. To associate JavaScript to an HTML file externally, you would use which of the
following elements?

A. style
B. link
C. script
Answer:

C: script
22. Which standards body curates JavaScript?

A. OASIS (Organization for the Advancement of Structured Information Standards)


B. ISO (International Organization for Standardization)
C. ECMA (European Computer Manufacturers Association)
D. W3C (World Wide Web Consortium)
Answer:

C: ECMA
23. Create code for an external JavaScript file called switch.js, with a function called
mySwitcher.
The function mySwitcher finds an HTML element with an Id of "ski-1" and replaces its
text with "skiing is expensive."
Answer:

switch.js

function mySwitcher(){
document.getElementById(“ski-1”).innerHTML=”Skiing is expensive.”;
}
24. Create code for an external CSS file called myski.css. The CSS file sets the
background-color of the HTML body element to lightblue, and it sets the color of the
HTML element h1 to blue, and sets the left margin to 50px.
Answer: myski.css

body {
background-color:lightblue;
}
h1 {
color:blue;
margin-left:50px;
}

25. The W3C maintains a CSS validation service.


A. True
B. False

Answer:

Optional – answer the following for any question you answered incorrectly on Quiz 1. For each
question you answered incorrectly on quiz 1, that you answer correctly here, a point will be added
to your quiz 1 grade. Note, everyone has a fresh chance to answer question 2 below. If you
answer correctly you will receive an extra point on quiz 1.

3. Create a DTD that defines the following elements (remember, XML is case-
sensitive):

PRIMER contains exactly one INTRO followed by one or more CONCLUSION

INTRO contains zero or more PARAGRAPH

CONCLUSION contains zero or more PARAGRAPH

PARAGRAPH contains text (parsed character data)


Answer:

<?xml version=”1.0” encoding=”utf-8”?>


<!DOCTYPE PRIMER [
<!ELEMENT PRIMER (INTRO,CONCLUSION+)>
<!ELEMENT INTRO (PARAGRAPH)*>
<!ELEMENT CONCLUSION (PARAGRAPH)*>
<!ELEMENT PARAGRAPH (#PCDATA)>
]>
4. Create a valid XML file that is valid against the DTD you created in question 3
(remember, XML is case-sensitive).

You may add an internal DTD declaration, or an external declaration.


Answer:

<?xml version=”1.0” encoding=”utf-8”?>


<!DOCTYPE PRIMER [
<!ELEMENT PRIMER (INTRO,CONCLUSION+)>
<!ELEMENT INTRO (PARAGRAPH)*>
<!ELEMENT CONCLUSION (PARAGRAPH)*>
<!ELEMENT PARAGRAPH (#PCDATA)>
]>
<PRIMER>
<INTRO>
<p>My name is Patty Hubbert</p>
</INTRO>
<CONCLUSION>
<p>This is the conclusion</p>
</CONCLUSION>
</PRIMER>

24. Given the same DTD as in question 23, is the following valid XML? If not, state 1
reason?

<?xml version="1.0" encoding="utf-8"?>


<!DOCTYPE mtdoc SYSTEM "doc.dtd">
<mydoc number="1">
<begin version="2">
<p>This is the start.</p>
</start>
<middle>This is the 1st<p>middle.</p>
</middle>
<middle>This is the 2nd<p>middle.</p>
</middle>
<conclude>
<p>This is the conclusion.</p>
</conclude>
</mydoc>
Answer:
Yes this code is valid.
25. Assume you have a directory with three files:

saxon9.jar
book.xml
book.xsl
Given the following command-line:

java -jar saxon9.jar -o book.html book.xml book.xsl

Which of this following is a true statement (pick one)?

A. book.xsl is the XSLT script.


B. saxon9.jar is the XSL processor.
C. book.html is the desired output.
D. book.xml is the source XML file.
E. All of the above are true.
Answer:

E. All of the above are true.

You might also like