Help coderanch get a
new server
by contributing to the fundraiser
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Devaka Cooray
  • Liutauras Vilda
Sheriffs:
  • Jeanne Boyarsky
  • paul wheaton
  • Henry Wong
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Tim Moores
  • Carey Brown
  • Mikalai Zaikin
Bartenders:
  • Lou Hamers
  • Piet Souris
  • Frits Walraven

Sybex CSG 11, Question in Test bank is not answered correctly: tb617624.JaSE11PrgIISG.be1.54

 
Greenhorn
Posts: 10
Angular Framework Debian Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Answer to Question

Which functional interfaces complete the following code presuming variable r exists? (Choose all that apply.)

6:    ______ x = r.negate();..



Is incomplete.
The Answer states Predicate is correct answer for this line, which definitively is a true statement, but it's not the only possible answer as Bipredicate does also have a .negate() method and is listed to.

Full question and Answer is attached (Screenshot).


Question.error.JPG
Screenshot
Screenshot
 
Saloon Keeper
Posts: 3926
43
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I agree with you, it looks like an error in the question.
 
author & internet detective
Posts: 41967
911
Eclipse IDE VI Editor Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Agreed. Added to the errata list
 
Samuel Silver Moos
Greenhorn
Posts: 10
Angular Framework Debian Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Jeanne Boyarsky wrote:Agreed. Added to the errata list



Thanks for the fast handling.

I was going throw several Questions have some other findings, moste of them i have not double checked yet, but at least the one appended is wrong for sure(corrections and answer description differs), should i open new Topics, or is it ok to add it here?



tb584704.JaSE11PrgISG.c05.08.JPG
screenshot
screenshot
 
Jeanne Boyarsky
author & internet detective
Posts: 41967
911
Eclipse IDE VI Editor Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Either is fine.
 
Jeanne Boyarsky
author & internet detective
Posts: 41967
911
Eclipse IDE VI Editor Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Also, logged this errata. It is correct in the printed book for what it's worth.
 
Samuel Silver Moos
Greenhorn
Posts: 10
Angular Framework Debian Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Ok, nice to hear it's only a test-bank problem.

By the way: i found another small issue inside the testbank:

Answer explonation of Question tb584704.JaSE11PrgISG.be2.71 states:

Note that options E and F are always incorrect, as a call to this() or super() cannot come after any other statements in a constructor.



While option E would place a this(3) exacly in the correct place (like described earlyer in the answer), but of course still is the wrong answer due to the compiler error.

 
Jeanne Boyarsky
author & internet detective
Posts: 41967
911
Eclipse IDE VI Editor Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Samuel,
Can you supply the chapter/question number. The tb* thing is a key in the exam software, not something I can search by.
 
reply
    Bookmark Topic Watch Topic
  • New Topic