Deal of The Day! Hurry Up, Grab the Special Discount - Save 25% - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

XML Exam I10-001 Topic 2 Question 96 Discussion

Actual exam question for XML's I10-001 exam
Question #: 96
Topic #: 2
[All I10-001 Questions]

Select which of the following correctly describes (1) and (2) in the XML Schema document below when the content of the "Flag" element must be an integer of 0 or 1.

<(1) value="0"/>

<(2) value="1"/>

Show Suggested Answer Hide Answer
Suggested Answer: C

Contribute your Thoughts:

I'm not even going to bother with this question. It's just asking me to choose between a bunch of XML Schema keywords that I can never remember. I'll just guess and hope for the best.
upvoted 0 times
...
Sylvia
4 days ago
This is a piece of cake! The correct answer is B. Using 'xs:enumeration' is the way to go when you want to restrict an element to specific values.
upvoted 0 times
...
Otis
5 days ago
A? No, no, that's not right. The 'Flag' element is meant to be either 0 or 1, not a range of values.
upvoted 0 times
...
Krissy
14 days ago
I'm not sure, but I think xs:minInclusive and xs:maxInclusive could also work to define a range of values.
upvoted 0 times
...
Jin
16 days ago
I agree with Trinidad. Using xs:enumeration makes sense for specifying a limited set of values.
upvoted 0 times
...
Shantell
18 days ago
Hmm, this is tricky. I think the answer is B, since the XML Schema is clearly defining an enumeration for the 'Flag' element.
upvoted 0 times
...
Trinidad
30 days ago
I think the correct answer is B) (1) xs:enumeration (2) xs:enumeration.
upvoted 0 times
...

Save Cancel