Question
click below
click below
Question
Normal Size Small Size show me how
Java - Ch. 4
Java Chapter 4
Question | Answer |
---|---|
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 |