About Question enthuware.ocpjp.v8.2.1108 :

All the posts and topics that contain only an error report will be moved here after the error is corrected. This is to ensure that when users view a question in ETS Viewer, the "Discuss" button will not indicate the presence of a discussion that adds no value to the question.

Moderators: Site Manager, fjwalraven

Post Reply
Mushfiq Mammadov
Posts: 32
Joined: Fri Oct 16, 2015 4:33 am
Contact:

About Question enthuware.ocpjp.v8.2.1108 :

Post by Mushfiq Mammadov »

Hello.
There is a minor typo in explanation of choice 1:
1. It will always assign 0 to i because Math.random() returns a double between 0 and less than 1 and since casting operator i.e. (int) takes precedence to *, the double value returned by Math.random() will be converted to int first, which will make it 0. 0*10 will be 0. So, you should do: int r = (int) (Math.random()*11);
0*10 should be 0*11

admin
Site Admin
Posts: 10058
Joined: Fri Sep 10, 2010 9:26 pm
Contact:

Re: About Question enthuware.ocpjp.v8.2.1108 :

Post by admin »

Fixed.
thank you for your feedback!
If you like our products and services, please help us by posting your review here.

Post Reply

Who is online

Users browsing this forum: No registered users and 68 guests