Chapter 3.3 : The while and do...while statements Flashcards
1
Q
What are two types of statements in Java?
A
- simple
2. compound
2
Q
What are simple statements?
A
the basic building blocks of the program such as subroutine call statements or assignment statements
3
Q
What are compound statements?
A
Used to organize simple statements into complex structures which are called control structures because they control the order in which the statements are executed,
4
Q
What is known as the test of the loop before the program executes the body of the loop?
A
The boolean expression
5
Q
What is a do while loop?
A
a loop in which the body of the loop is executed at least once