• 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
  • Paul Clapham
  • Tim Cooke
  • Jeanne Boyarsky
  • Liutauras Vilda
Sheriffs:
  • Frank Carver
  • Henry Wong
  • Ron McLeod
Saloon Keepers:
  • Tim Moores
  • Frits Walraven
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
Bartenders:
  • Al Hobbs
  • Piet Souris
  • Himai Minh

Question about naming conventions on the exam

 
Ranch Hand
Posts: 37
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I was wondering for those who've taken the actual exam. Are there ever intentional spelling errors that would result in compile errors? Example:


I was just curious because sometimes when I'm trying to read fast I skim more than I should Thanks!
 
Ranch Hand
Posts: 1183
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Stop skimming ;) ...

There are intentioanl spelling mistakes on the exam.
 
Jarred Olson
Ranch Hand
Posts: 37
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Cool, thanks!
 
Sheriff
Posts: 9697
43
Android Google Web Toolkit Hibernate IntelliJ IDE Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Shouldn't this



be



If you omit the class keyword, then it will not compile (in addition to the missing s in ClasOne)...
 
Sebastian Janisch
Ranch Hand
Posts: 1183
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Also, sometimes questions try to trick you by giving a question that might seem tricky because of 500 variable shifts but after all the correct answer is 'compilation fails' because of a missing semicolon. So, as the first step, always check for compilation errors. This also lets you knock off some question without spending much time.
 
Jarred Olson
Ranch Hand
Posts: 37
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Ankit Garg wrote:Shouldn't this



be



If you omit the class keyword, then it will not compile (in addition to the missing s in ClasOne)...



Yup omitted the class on accident, I fixed it though. Thanks for everyone's feedback.
 
author
Posts: 9046
21
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
The current versions of the exam really don't try this kind of trick. If there is some unusual syntax rule - like an inner class - you might get unusual syntax, like a strangely placed semicolon, otherwise not. For instance, I can't think of a single question that tries to trick you with a misspelling.

On the other hand there are lots of other kinds of tricky questions.
 
I yam what I yam and that's all that I yam - the great philosopher Popeye. Tiny ad:
Garden Master Course kickstarter
https://coderanch.com/t/754577/Garden-Master-kickstarter
reply
    Bookmark Topic Watch Topic
  • New Topic