• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

IBM Mock Exam: 1 Information Modeling question

 
Kevin Thompson
Ranch Hand
Posts: 237
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Svetlana: Thanks for the answer on the other post!
I have been working on IBM's mock exam all day today also. I currently have 43 correct out of 44.
I think that this is the question that I have answered wrong I am not totally for sure)
QUESTION 07:
Which of the following would raise an error if the empID attribute's data type was defined as type ID in the DTD?
a) <name empID="17563">Joe Smith</name>
b) <name empID="ft:17563">Joe Smith</name>
c) <name empID="a17563">Joe Smith</name>
d) <name empID="">Joe Smith</name>
MY ANSWER:
b) and d)
thanks!
Kevin Thompson
 
Jayadev Pulaparty
Ranch Hand
Posts: 662
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I think the answer here is a,d; the reason being that attribute value of type ID cannot start with a number.
 
Svetlana Petrova
Ranch Hand
Posts: 50
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes, the answers are A and D.
I was mistaken myself with answer B also. But I thought that A,B and D all three are correct answers. But than when I found this in XML Recommendation:
"Note:
The Namespaces in XML Recommendation [XML Names] assigns a meaning to names containing colon characters. Therefore, authors should not use the colon in XML names except for namespace purposes, but XML processors must accept the colon as a name character."
I understood my mistake.
Good luck,
Svetlana.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic