Java Chapter 4
Quiz yourself by thinking what should be in
each of the black spaces below before clicking
on it to display the answer.
Help!
|
|
||||
---|---|---|---|---|---|
Specifying the order in which statements (actions) execute in a program is called... | program control
🗑
|
||||
What are the three types of selection statements? | if statement, if...else statement, switch statement.
🗑
|
||||
A switch statement is an example of this kind of selection statement. | Multiple
🗑
|
||||
The do…while statement performs the action(s) in its body (blank) or more times. | one
🗑
|
||||
while and for statements perform the action(s) in their bodies (blank) or more times | zero
🗑
|
||||
Connecting the exit point of one to the entry point of the next. | Control-statement stacking
🗑
|
||||
A diamond in UML represents... | A decision symbol
🗑
|
||||
In UML Workflow continues along a path determined by the symbol’s (blank), which can be true or false. | guard conditions
🗑
|
||||
A solid circle in UML represents... | The initial state
🗑
|
||||
A solid circle surrounded by a hollow circle in UML represents... | The final state
🗑
|
||||
In a repetition statement,eventually, the condition will become (blank). At this point, the repetition terminates, and the first statement after the repetition statement (blank). | false, executes
🗑
|
||||
When the action in the body of a while loop never becomes false the result is... | an infinite loop
🗑
|
||||
The difference between a merge and decision symbol in UML is not the shape but the number of (blank) leaving the shape. | arrows
🗑
|
||||
During integer division what is truncated? | Any remainder
🗑
|
||||
A special value called a sentinel value (also called a signal value, a dummy value or a flag value) can be used to indicate... | “end of data entry.”
🗑
|
||||
Sentinel-controlled repetition is often called (blank)because the number of repetitions is not known before the loop begins executing. | indefinite repetition
🗑
|
||||
c = c +3 can be written as c+=3 with the... | addition compound assignment operator
🗑
|
Review the information in the table. When you are ready to quiz yourself you can hide individual columns or the entire table. Then you can click on the empty cells to reveal the answer. Try to recall what will be displayed before clicking the empty cell.
To hide a column, click on the column name.
To hide the entire table, click on the "Hide All" button.
You may also shuffle the rows of the table by clicking on the "Shuffle" button.
Or sort by any of the columns using the down arrow next to any column heading.
If you know all the data on any row, you can temporarily remove it by tapping the trash can to the right of the row.
To hide a column, click on the column name.
To hide the entire table, click on the "Hide All" button.
You may also shuffle the rows of the table by clicking on the "Shuffle" button.
Or sort by any of the columns using the down arrow next to any column heading.
If you know all the data on any row, you can temporarily remove it by tapping the trash can to the right of the row.
Embed Code - If you would like this activity on your web page, copy the script below and paste it into your web page.
Normal Size Small Size show me how
Normal Size Small Size show me how
Created by:
lapetti
Popular Computers sets