Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
The moose likes Mock Exam Errata and the fly likes JavaCaps Mock exam Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of OCA Java SE 8 Programmer I Study Guide this week in the OCAJP 8 forum!
JavaRanch » Java Forums » Certification » Mock Exam Errata
Bookmark "JavaCaps Mock exam" Watch "JavaCaps Mock exam" New topic

JavaCaps Mock exam

Nils Widmer

Joined: Aug 17, 2001
Posts: 13

31. The statement X %= 5, can best described as?
A) A equals a divided by 5;
B) A equals A in 5 digit percentage form
C) A equals A modulus 5.
D) None of the above

well spelling errors, and that is not the only one...


Joined: Jul 18, 2001
Posts: 1
The answer is c)
Nils Widmer

Joined: Aug 17, 2001
Posts: 13
nope, its D)
Jane Griscti
Ranch Hand

Joined: Aug 30, 2000
Posts: 3141
Hi deep_sal,
Please read the JavaRanch Name Policy and re-register using a name that complies with the rules.
Thanks for your cooperation.
Jane Griscti
Sun Certified Programmer for the Java� 2 Platform

Jane Griscti
SCJP, Co-author Mike Meyers' Java 2 Certification Passport
Jimmy Blakely
Ranch Hand

Joined: Jul 10, 2001
Posts: 57
X %= 5
is equivalent to...
X = X % 5
which written out is ...
X equals X modulus 5
thus making answer D correct.
Having the author change the identifiers didn't help.
I agree. Here's the link:
subject: JavaCaps Mock exam
It's not a secret anymore!