Chapter 3.3 : The while and do...while statements Flashcards

You may prefer our related Brainscape-certified flashcards:
1
Q

What are two types of statements in Java?

A
  1. simple

2. compound

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What are simple statements?

A

the basic building blocks of the program such as subroutine call statements or assignment statements

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
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,

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What is known as the test of the loop before the program executes the body of the loop?

A

The boolean expression

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What is a do while loop?

A

a loop in which the body of the loop is executed at least once

How well did you know this?
1
Not at all
2
3
4
5
Perfectly