Object-Oriented Software Design Chapter 7 Questions For Unless Nested Within Repeating Control Structure Order Together And

subject Type Homework Help
subject Pages 4
subject Words 425
subject Authors Randy Pausch, Wanda P. Dann

Unlock document.

This document is partially blurred.
Unlock all pages and 1 million more documents.
Get Access
page-pf1
Questions for Chapter 7
1) Unless nested within a repeating control structure, Do in order, Do together, and If/Else
control statements are expected to be executed exactly how many times?
2) Give two examples of control structures that are generally expected to execute
repeatedly.
3) Give a reason for describing the Loop statement as a counted loop.
4) If a block of program code is composed of nested Loop statements and the outer loop
count is 3 and the inner loop count is 5, how many times does the inner loop execute?
5) A Loop in which the count is infinity must of course, eventually stop. What action
triggers the stop of a so-called infinite loop?
6) What distinguishes a Loop control construct from a While control construct, in terms of
what is known about the number of times a block of code will be repeated?
7) Conditional expressions used in a While statement have the same components as
conditional expressions used in what other control construct?
8) Although in some programs a While statement should be infinite, in most programs a
While statement should eventually end. How can you make sure a While statement will
eventually end?
9) Is it possible that the instructions within a While statement might never be executed at
all? If not, explain why not. If so, give an example.
10) The Begin-During-End event is a variation on what kind of repetition control construct?
11) Exercise 3 below includes a textual storybook. Sketch a flowchart for the loop.
page-pf2
page-pf3
12) For exercise 5 below, a) create a textual storyboard, and b) sketch a flowchart.
Do the following steps in order
The hop method can be defined as is done in exercise 5 (see the html or the world itself
page-pf4

Trusted by Thousands of
Students

Here are what students say about us.

Copyright ©2022 All rights reserved. | CoursePaper is not sponsored or endorsed by any college or university.