Exam 3: Understanding Structure

arrow
  • Select Tags
search iconSearch Question
flashcardsStudy Flashcards
  • Select Tags
Match each term with a statement below.
Premises:
Logically snarled program statements
Responses:
priming read
decision structure
spaghetti code
Correct Answer:
Verified
Premises:
Responses:
Logically snarled program statements
priming read
(Matching)
4.9/5
(39)

As a general rule, an eof question should always come immediately after an input statement because the end-of-file condition will be detected at input.

(True/False)
4.8/5
(41)

Why does spaghetti code have a shorter shelf life than structured code?

(Essay)
4.8/5
(36)
Match each term with a statement below.
Premises:
With this, you ask a question, and, depending on the answer, you take one of two courses of action
Responses:
nesting structures
null case
structure
Correct Answer:
Verified
Premises:
Responses:
With this, you ask a question, and, depending on the answer, you take one of two courses of action
nesting structures
(Matching)
4.8/5
(32)

One way to straighten out an unstructured flowchart segment is to use the ____ method.

(Multiple Choice)
4.8/5
(37)

A(n)____________________ can contain any number of tasks, but there is no option to branch off and skip any of the tasks.

(Short Answer)
4.9/5
(26)

With a(n)____, you perform an action or task, and then you perform the next action, in order.

(Multiple Choice)
4.9/5
(40)

The following pseudocode is an example of ____. The following pseudocode is an example of ____.

(Multiple Choice)
4.9/5
(31)

The case structure is a variation of the sequence structure and the do loop is a variation of the while loop.

(True/False)
4.9/5
(39)

The priming read is an example of a(n)____ task.

(Multiple Choice)
4.9/5
(36)

if-else examples can also be called ____ because they contain the action taken when the tested condition is true and the action taken when it is false.

(Multiple Choice)
4.9/5
(36)

Some people call the selection structure a(n)____________________ statement.

(Short Answer)
4.9/5
(34)

You may hear programmers refer to looping as ____.

(Multiple Choice)
4.9/5
(42)

Rewrite the following as a while loop: do pay bills while more bills remain to be paid

(Essay)
4.7/5
(47)

A structured program includes only combinations of the three basic structures: ____.

(Multiple Choice)
4.8/5
(39)

Why is it best to use only three programming structures?

(Essay)
4.7/5
(41)

A group of statements that execute as a single unit are called a(n)____________________.

(Short Answer)
4.9/5
(39)

The maximum number of entry points that any programming structure can have is ____.

(Multiple Choice)
4.8/5
(41)

Describe a loop structure.

(Essay)
4.8/5
(43)
Match each term with a statement below.
Premises:
A basic unit of programming logic
Responses:
module
loop structure
spaghetti code
Correct Answer:
Verified
Premises:
Responses:
A basic unit of programming logic
module
(Matching)
4.8/5
(42)
Showing 41 - 60 of 60
close modal

Filters

  • Essay(0)
  • Multiple Choice(0)
  • Short Answer(0)
  • True False(0)
  • Matching(0)