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

IBM sample test question

 
Tracy Qi
Ranch Hand
Posts: 37
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
23.Two DOM nodes are equivalent if:
I.they have the same node type and node name.
II.the node data are the same.
III.the collection of attribute names are the same.
D.I and II only
E.I and III only
F.II and III only
G.I, II and III
Answer is D.
Does anybody can give me a hint on why III is wrong? or any resource I can look at?
Thanks
 
Ajith Kallambella
Sheriff
Posts: 5782
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
An attribute is a name value pair. It is not sufficient if just the names are equal. You will have to consider the values too. For instance
EmployeeId = "10" and EmployeeId = "20" are not the same although the name of the attribute ie., EmployeeId is same in both the instances.
Hope that helps!
------------------
Ajith Kallambella M.
Sun Certified Programmer for the Java�2 Platform.
IBM Certified Developer - XML and Related Technologies, V1.
Co-author of Java 2 Certification Passport
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic