Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

sample test question

 
jim yin
Ranch Hand
Posts: 111
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
13)
A retail company is in the process of defining a product catalog. The requirements specify that the product be uniquely identified by its SKU (Stock Keeping Unit) and contain a product name, a product description, and a price. Additionally, some products can have up to five accessories. Each accessory is a product by itself. Therefore, only the SKU of the accessories need to be related to the product. Finally, it is also a requirement to enable addition of a promotion code that would be effective during a specific period of time.
A developer defines the following XML Schema for the product:
<schema targetNamespace=''http://www.SampleStore.com/Account''
xmlns='http://www.w3.org/2001/XMLSchema'
xmlns:ACC= 'http://www.SampleStore.com/Account'>
<complexType name="Product">
<sequence>
<element name="SKU" type="integer"/>
<element name="Name" type="string"/>
<element name="Description" type="string"/>
<element name="UnitPrice" type="decimal"/>
<element name="Accessory" minOccurs="0" maxOccurs="unbounded" type="ACC roduct"/>
</sequence>
</complexType>
Which of the following statements is TRUE?





a) Replacing maxOccurs="unbounded" with maxOccurs="5" will make the schema definition match the requirement.

b) maxOccurs="unbounded" can be removed since by default this attribute is added to any XML Schema definition which already has an minOccurs="0" attribute.

c) The XML Schema parser will expect a definition with the name Accessory defined in the same document.

d) Type of the SKU definition must be written as type="sku"

e) Type of the UnitPrice definition must be written as type="amount"

I believe the answer for this one should be a). But somehow I don't feel good about the question which is not "well-formed". What do you think?
 
Svetlana Petrova
Ranch Hand
Posts: 50
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I agree, a) is correct. I'm using this one when going through the test.
 
Jayadev Pulaparty
Ranch Hand
Posts: 662
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I too opted for this one
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic