Exam 3: Understanding Structure

arrow
  • Select Tags
search iconSearch Question
flashcardsStudy Flashcards
  • Select Tags

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

Free
(Short Answer)
4.9/5
(32)
Correct Answer:
Verified

block

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.

Free
(Multiple Choice)
4.8/5
(36)
Correct Answer:
Verified

D

Structured programming is sometimes called ____________________-less programming.

Free
(Short Answer)
4.8/5
(37)
Correct Answer:
Verified

goto,go to,go-to

A loop must return to the ____ question at some later point in a structure.

(Multiple Choice)
4.9/5
(41)

The following pseudocode is an example of a ____ structure. get number While number is positive    add to sum    get number Endwhile

(Multiple Choice)
4.8/5
(44)

The do loop is a variation of the ____ loop.

(Multiple Choice)
4.8/5
(36)

What are the characteristics of a structured program?

(Essay)
4.9/5
(39)

Define the term structure as it relates to programming.

(Essay)
4.9/5
(32)

A ____ read is an added statement that gets the first input value in a program.

(Multiple Choice)
4.8/5
(43)

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.9/5
(41)
Match each term with a statement below.
Often can be used in multiple programs
spaghetti code
An added statement that gets the first input value in a program
case structure
With this, you ask a question, and, depending on the answer, you take one of two courses of action
structure
Correct Answer:
Verified
Premises:
Responses:
Often can be used in multiple programs
spaghetti code
An added statement that gets the first input value in a program
case structure
With this, you ask a question, and, depending on the answer, you take one of two courses of action
structure
Attaching structures end-to-end
module
Continue to repeat actions while a condition remains true
priming read
Logically snarled program statements
loop structure
Placing a structure within another structure
decision structure
A variation of the selection structure
stacking structures
A case in which no action is taken
nesting structures
A basic unit of programming logic
null case
(Matching)
4.9/5
(43)

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

(Essay)
4.8/5
(35)

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

(Essay)
4.8/5
(48)

What are the three basic structures and how can they be used?

(Essay)
4.8/5
(37)

The following pseudocode is an example of a ____ structure. if firstNumber is bigger than secondNumber then    print firstNumber Else    print secondNumber Endif

(Multiple Choice)
4.9/5
(37)

Structured programs can be easily broken down into routines or ____ that can be assigned to any number of programmers.

(Multiple Choice)
4.7/5
(28)

Structures can be stacked or connected to one another at their ____.

(Multiple Choice)
4.8/5
(33)

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

(Multiple Choice)
4.7/5
(36)

The following pseudocode is an example of a ____ structure. get firstNumber Get secondNumber Add firstNumber and secondNumber Print result

(Multiple Choice)
4.9/5
(41)

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.7/5
(39)
Showing 1 - 20 of 51
close modal

Filters

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