• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Test Question for XML cert.

 
octavyn pittman
Ranch Hand
Posts: 134
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The following sample question's official answer is D.
I picked C. Why do you suppose D better than C?
They seem equivalent and if anything "Status" seems ambiguous and could later refer to someother type of status as well...
Select the best answer.
13. To capture whether a customer is active or inactive, which of these XML models is the best?
a) <!attlist Customer Active CDATA #REQUIRED>
b) <!attlist Customer Active (1 | 0) "1">
c) <!attlist Customer ActiveStatus (yes | no) "yes">
d) <!attlist Customer Status (active | inactive) "active">
OP
 
enoc chen
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In fact, you can choose (b), (c), or (d). However, the question is asking for the best (descriptive) answer, then (d) is most descriptive value for the question. And the datatype of attribute value (active or inactive) are also mentioned in the question.
 
octavyn pittman
Ranch Hand
Posts: 134
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thx. I understand that b,c, and d are all acceptable answers. B is out because 1 or 0 doesn't really describe the data at all--1 could be either active or inactive. While D mirrors a straightforward interpretation of the question--status with two possible values of active or inactive--I still question whether this is the best value, because of the reason I stated above. Another status could later be needed for say, paid and unpaid. That is why I thought the ActiveStatus would be more descriptive.
However, D does contain the advantage of it's data explicitly stating that the status IS unquestionably active or inactive. But I can't help but think that I would be inclined to go with C because the attribute actually describes what data is being held.
OP
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic