100% satisfaction guarantee Immediately available after payment Both online and in PDF No strings attached 4.6 TrustPilot
logo-home
Exam (elaborations)

Ch03_Logic9e_Solutions Programming Logic and Design, 9th Edition

Rating
-
Sold
-
Pages
43
Grade
A+
Uploaded on
12-08-2023
Written in
2023/2024

Programming Logic and Design, 9th Edition Chapter 3 Review Questions 1. Snarled program logic is called code. a. snake b. spaghetti c. linguini d. gnarly 2. The three structures of structured programming are . a. sequence, selection, and loop b. decision, loop, and iteration c. sequence, order, and process d. loop, iteration, and refraction 3. A sequence structure can contain . a. only one task b. exactly three tasks c. no more than three tasks d. any number of tasks 4. Which of the following is not another term for a selection structure? a. loop structure b. decision structure c. dual-alternative if structure d. if-then-else structure 5. A expression has one of two values, often expressed as true or false. a. Georgian b. Boolean c. Selection d. Caesarian 6. Placing a structure within another structure is called the structures. a. untangling b. nesting c. building d. stacking 7. Attaching structures end to end is called . a. nesting b. untangling c. building d. stacking 8. When an action is required if a condition is true, but no action is needed if it is false, you use a . a. sequence b. loop c. dual-alternative selection d. single-alternative selection 9. To take action as long as a condition remains true, you use a . a. sequence b. stack c. loop d. selection 10. When you must perform one action when a condition is true and a different one when it is false, you use a . ........................................continued.....................................................

Show more Read less
Institution
Course

Content preview

Programming Logic and Design, 9e Solutions 3-1




Programming Logic and Design, 9th Edition

Chapter 3
Review Questions

1. Snarled program logic is called code.

a. snake

b. spaghetti

c. linguini

d. gnarly

2. The three structures of structured programming are .

a. sequence, selection, and loop

b. decision, loop, and iteration

c. sequence, order, and process

d. loop, iteration, and refraction

3. A sequence structure can contain .

a. only one task

b. exactly three tasks

c. no more than three tasks

d. any number of tasks

4. Which of the following is not another term for a selection structure?

a. loop structure

b. decision structure

c. dual-alternative if structure

d. if-then-else structure

,Programming Logic and Design, 9e Solutions 3-2


5. A expression has one of two values, often expressed as true or false.

a. Georgian

b. Boolean

c. Selection

d. Caesarian

6. Placing a structure within another structure is called the

structures.

a. untangling

b. nesting

c. building

d. stacking

7. Attaching structures end to end is called .

a. nesting

b. untangling

c. building

d. stacking

8. When an action is required if a condition is true, but no action is needed if it is

false, you use a .

a. sequence

b. loop

c. dual-alternative selection

d. single-alternative selection

9. To take action as long as a condition remains true, you use a .

,Programming Logic and Design, 9e Solutions 3-3


a. sequence

b. stack

c. loop

d. selection

10. When you must perform one action when a condition is true and a different

one when it is false, you use a .

a. sequence

b. loop

c. dual-alternative selection

d. single-alternative selection

11. Which of the following attributes do all three basic structures share?

a. Their flowcharts all contain exactly three processing symbols.

b. They all begin with a process.

c. They all have one entry and one exit point.

d. They all contain a conditional test.

12. Which is true of stacking structures?

a. Two incidences of the same structure cannot be stacked adjacently.

b. When you stack structures, you cannot nest them in the same program.

c. Each structure has only one point where it can be stacked on top of another.

d. When you stack structures, the top structure must be a sequence.

13. When you input data in a loop within a program, the input statement that precedes

the loop .

a. is the only part of the program allowed to be unstructured

, Programming Logic and Design, 9e Solutions 3-4


b. cannot result in eof

c. is called a priming input

d. executes hundreds or even thousands of times in most business programs

14. A group of statements that executes as a unit is a .

a. block

b. family

c. chunk

d. cohort

15. Which of the following is acceptable in a structured program?

a. placing a sequence within the true branch of a dual-alternative decision

b. placing a decision within a loop

c. placing a loop within one of the steps in a sequence

d. All of these are acceptable.

16. In a selection structure, the structure-controlling condition is .

a. tested once at the beginning of the structure

b. tested once at the end of the structure

c. tested repeatedly until it is false

d. tested repeatedly until it is true

17. When a loop executes, the structure-controlling condition is .

a. tested exactly once

b. never tested more than once

c. tested either before or after the loop body executes

d. tested only if it is true, and not asked if it is false

Written for

Institution
Course

Document information

Uploaded on
August 12, 2023
Number of pages
43
Written in
2023/2024
Type
Exam (elaborations)
Contains
Questions & answers

Subjects

Get to know the seller

Seller avatar
Reputation scores are based on the amount of documents a seller has sold for a fee and the reviews they have received for those documents. There are three levels: Bronze, Silver and Gold. The better the reputation, the more your can rely on the quality of the sellers work.
BROWSEGRADES76 Chamberlain College Nursing
Follow You need to be logged in order to follow users or courses
Sold
53
Member since
4 year
Number of followers
41
Documents
520
Last sold
5 months ago

4.3

12 reviews

5
7
4
2
3
2
2
1
1
0

Trending documents

Recently viewed by you

Why students choose Stuvia

Created by fellow students, verified by reviews

Quality you can trust: written by students who passed their tests and reviewed by others who've used these notes.

Didn't get what you expected? Choose another document

No worries! You can instantly pick a different document that better fits what you're looking for.

Pay as you like, start learning right away

No subscription, no commitments. Pay the way you're used to via credit card and download your PDF document instantly.

Student with book image

“Bought, downloaded, and aced it. It really can be that simple.”

Alisha Student

Frequently asked questions