The moose likes Associate Certification (SCJA/OCAJ) and the fly likes McKenzie's Mock Exam Question 4-26 on pg. 94 has a misprint in question and answer Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


JavaRanch » Java Forums » Professional Certification » Associate Certification (SCJA/OCAJ)
Reply Bookmark "McKenzie Watch "McKenzie New topic
Author

McKenzie's Mock Exam Question 4-26 on pg. 94 has a misprint in question and answer

Todd Patrick
Ranch Hand

Joined: Jan 30, 2004
Posts: 31

Question 4-26 on page 94 has a misprint in the question.

The question asks:

Which of the following properly initializes a double to the value of 22.11?

The question should ask:

Which of the following properly initializes a double to the value of 10.11?

On the same page, the available answers are:

a) double d == 10.11;
b) double d = new Float(10.11);
c) double d = 10.11F;
d) double d = 10.11D;


Answers on page 110 for this question are listed as the following with option c corrected according to the explanation.

a) double d == 10.11;
b) double d = new Float(10.11);
c) double d = 10.11d;
d) double d = 10.11D;


Therefore b,c & d are correct.


--Todd
 
 
subject: McKenzie's Mock Exam Question 4-26 on pg. 94 has a misprint in question and answer
 
WebSphere development made easy
without the weight of IBM tools
http://www.myeclipseide.com

cast iron skillet 49er

more from paul wheaton's glorious empire of web junk: cast iron skillet diatomaceous earth rocket mass heater sepp holzer raised garden beds raising chickens lawn care CFL flea control missoula heat permaculture