• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Jeanne Boyarsky
  • Bear Bibeault
Sheriffs:
  • Rob Spoor
  • Henry Wong
  • Liutauras Vilda
Saloon Keepers:
  • Tim Moores
  • Carey Brown
  • Stephan van Hulst
  • Tim Holloway
  • Piet Souris
Bartenders:
  • Frits Walraven
  • Himai Minh
  • Jj Roberts

Sybex Practice Tests 11 - Chapter 2 - Q #18

 
Greenhorn
Posts: 9
  • Likes 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
"Which of the following statements compile and create infinite loops at runtime? (Choose two.)"

Should be:
"Which of the following statements compile and create infinite loops at runtime? (Choose three.)"


There are three correct answeres
 
Marshal
Posts: 72406
315
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Please explain more; many of us don't have that question bank.
 
Andrey Kotelnikov
Greenhorn
Posts: 9
  • Likes 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I've bought a book on Amazon "OCP Oracle Certified Professional Java SE 11 Developer Practice Tests"
That's a book full of tests.
In chapter 2, question #18 is:
""Which of the following statements compile and create infinite loops at runtime? (Choose two.)"
Variants are:
A. while (!false) {}
B. do {}
C. for( : ) {}
D. do {} while (true);
E. while {}
F. for( ; ; ) {}

Correct answer is A, D, F. So it's three options, not two as is asked.
In answeres to that book in Appendix correct answers are A, D, F

Task description is incorrect
 
I was her plaything! And so was this tiny ad:
SKIP - a book about connecting industrious people with elderly land owners
https://coderanch.com/t/skip-book
reply
    Bookmark Topic Watch Topic
  • New Topic