File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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
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
jQuery in Action, 3rd edition