• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

for loop increment clause Mock Exam 1 (Java OCA 8 Programmer I Study Guide, Sybex)

 
Aleksandra Pestova
Ranch Hand
Posts: 36
2
Firefox Browser Java Notepad
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Option D slightly confused me.

I haven't chosen it, because to me it sounded like: for statements always contain an increment clause.
However, it can also be, for instance, a decrement statement or no update statement at all.

How is it with such type of questions at the exam? Is it asked more clearly? Or have I just misunderstood it because of my English?

 
for_increment.JPG
[Thumbnail for for_increment.JPG]
 
Paul Clapham
Sheriff
Posts: 21583
33
Eclipse IDE Firefox Browser MySQL Database
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I can't speak for the test writers, but I'm a native speaker of English and I would agree with your interpretation of that option. "For loops contain an increment clause" is the same as "For loops must contain an increment clause" or "For loops always contain an increment clause". It's NOT the same as "For loops may contain an increment clause" or "For loops sometimes contain an increment clause".
 
Ryan McGuire
Ranch Hand
Posts: 1093
5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Paul Clapham wrote:I can't speak for the test writers, but I'm a native speaker of English and I would agree with your interpretation of that option. "For loops contain an increment clause" is the same as "For loops must contain an increment clause" or "For loops always contain an increment clause". It's NOT the same as "For loops may contain an increment clause" or "For loops sometimes contain an increment clause".


Just to ad my two cents...
I disagree with the strict "must" interpretation.  If someone told me, "Americans eat cheese," I would agree, because a significant number of my countrymen do indeed enjoy a nice aged cheddar, even though there are those that are lactose intolerant and never touch the stuff.  So yes... for loops contain increment statements.

However I do agree that it is a poorly worded question.  I hate questions that require a yes/no answer when the answer is, "some do and some don't."
 
Paul Clapham
Sheriff
Posts: 21583
33
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ryan McGuire wrote:Just to ad my two cents...
I disagree with the strict "must" interpretation.  If someone told me, "Americans eat cheese," I would agree, because a significant number of my countrymen do indeed enjoy a nice aged cheddar, even though there are those that are lactose intolerant and never touch the stuff.  So yes... for loops contain increment statements.

However I do agree that it is a poorly worded question.  I hate questions that require a yes/no answer when the answer is, "some do and some don't."


Yeah, that's true... but in the context of a test where your answer has to be yes or no, you can't interpret the question in such a way that its answer is "maybe" or "sometimes" or "sort of".
 
Jeanne Boyarsky
author & internet detective
Marshal
Posts: 35279
384
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Aleksandra,
Yes, we could have made that clearer. On the real exam, there is on occasion "tricky" English. However, the real exam tells you how many answers are correct. So if you know 3 answers are correct, you have to find the best three answers.
 
Aleksandra Pestova
Ranch Hand
Posts: 36
2
Firefox Browser Java Notepad
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank you all very much!

It's a big relief, that in the exam there is a number of correct answers given.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic