ROGERS CADENHEAD
My Websites
Workbench
Drudge Retort
SportsFilter
My Books
Teach Yourself Java in 21 Days, Eighth Edition
Teach Yourself Java in 24 Hours, Eighth Edition
Teach Yourself C++ in 24 Hours |
Day 27: Creating Web Services with XML-RPC
Certification Practice
Each chapter of the book ends with a Certification Practice question that's comparable to what you could expect to be asked on a Java certification test. Here's the answer for chapter 27:
Answer (b) is correct. A for loop must have three sections separated by semi-colon (";") characters, an initialization section in which one or more variables is created, a test section that contains an expression that must be true for the loop to continue, and an increment section that changes the value of one or more variables. Even if a section is not needed, it must be separated from other sections with semi-colons. The erroneous statement can be fixed by changing it to for ( ; i < 10; i++) {.
Answers (a), (c), and (d) are incorrect.
Return to Day 27
|
|