• 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Bear Bibeault
  • Jeanne Boyarsky
  • paul wheaton
Sheriffs:
  • Junilu Lacar
  • Paul Clapham
  • Knute Snortum
Saloon Keepers:
  • Stephan van Hulst
  • Ron McLeod
  • Tim Moores
  • salvin francis
  • Carey Brown
Bartenders:
  • Tim Holloway
  • Frits Walraven
  • Vijitha Kumara

Mock exam issue  RSS feed

 
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I encountered something weird while evaluating one of the online mock exams:
In the solution it says: "Option E is incorrect because the return keyword is missing", and I agree, but for some reason, it marks option E as a correct answer (see attachment)
Capture.PNG
[Thumbnail for Capture.PNG]
 
Marshal
Posts: 63795
209
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Beware of screenshots; they are often difficult to read. Please also always say where such material comes from, to reduce copyright problems.

So, I tried your code on JShell. Remember, as you suggested, that you must write a statement or multiple statements inside {}, and simple expressions don't take {} or ; in a λ:-I think you are right; the code shown in E doesn't actually compile. I think you will have to report that to the exam owners.
 
Tom Jacobs
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I found this in one off the mock exams on https://testbanks.wiley.com, for the Java OCA 8 Programmer I Study Guide. I selected a mix of 70 questions from the bonus exams 1 and 2 and randomized the questions.
 
Campbell Ritchie
Marshal
Posts: 63795
209
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank you for telling us the source of that question. Try their customer service link to report that problem.
 
Campbell Ritchie
Marshal
Posts: 63795
209
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank you for telling us the source of the question; try their customer support link to report that problem.
 
If you open the box, you will find Heisenberg strangling Shrodenger's cat. And waving this tiny ad:
global solutions you can do in your home or backyard
https://coderanch.com/t/708587/global-solutions-home-backyard
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!