Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Marcus Green Exam 2, Captialization

 
Bill Krieger
Ranch Hand
Posts: 53
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Question 21 asks:
How does the set collection deal with duplicate elements?
Based on the answer, it's clear this question is asking about the Set interface which extends the Collection interface. It seams to me that the word "Set" should be capitalized. Or somehow make it clear what is actually being asked about here.
Question 39 asks whether the following is true:
4) The set interface is designed for unique elements
This answer is given as being true, but I don't believe it should be. Not unless it's changed to:
4) The Set interface is designed for unique elements
The Set interface may be designed for unique elements, but there is no set interface in the standard Java libraries. I've seen mock exams that try to trip you up on these issues, e.g., you get a compile error because the code uses While instead of while. I naturally assumed that was the point of this question. That is, don't fall for the bogus "set" interface and go treating it like the "Set" interface.
 
Marcus Green
arch rival
Rancher
Posts: 2813
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You are quite correct, I have updated that question to use the upper case S on the name of the interface. I generally try to ensure my questions test knowledge rather than observational skill which I believe is the approach taken in the real exam.
However I also want to make sure that my questions are as unambiguous and accurate as possible, so I am very, very greatful for corrections such as yours. Many thanks.
Marcus
------------------

http://www.jchq.net Mock Exams, FAQ,
Tutorial, Links, Book reviews
Java 2 Exam Prep, 2nd Edition by Bill Brogden and Marcus Green
=================================================
JCHQ, Almost as good as JavaRanch
=================================================
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic