Exam 3: Understanding Structure
Exam 1: An Overview of Computers and Programming60 Questions
Exam 2: Elements of High-Quality Programs60 Questions
Exam 3: Understanding Structure60 Questions
Exam 4: Making Decisions60 Questions
Exam 5: Looping60 Questions
Exam 6: Arrays60 Questions
Exam 7: File Handling and Applications60 Questions
Select questions type
Match each term with a statement below.
Premises:
Logically snarled program statements
Responses:
priming read
decision structure
spaghetti code
Correct Answer:
Premises:
Responses:
(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:
Premises:
Responses:
(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 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)
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)
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)
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)
Match each term with a statement below.
Premises:
A basic unit of programming logic
Responses:
module
loop structure
spaghetti code
Correct Answer:
Premises:
Responses:
(Matching)
4.8/5
(42)
Showing 41 - 60 of 60
Filters
- Essay(0)
- Multiple Choice(0)
- Short Answer(0)
- True False(0)
- Matching(0)