Chapter 5Using Loop Constructs
THE OCA EXAM TOPICS COVERED IN THIS PRACTICE TEST INCLUDE THE FOLLOWING:
- Using Loop Constructs
- Create and use while loops
- Create and use for loops including the enhanced for loop
- Create and use do/while loops
- Compare loop constructs
- Use break and continue
-
Which type of loop is best known for its boolean condition that controls entry to the loop?
- do-while loop
- for (traditional)
- for-each
- while
-
Which type of loop is best known for using an index or counter?
- do-while loop
- for (traditional)
- for-each
- while
-
Which type of loop is guaranteed to have the body execute at least once?
- do-while loop
- for ...
Get OCA / OCP Java SE 8 Programmer Practice Tests now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.