MIS 525 Week 3 Quiz 1 | Devry University

MIS 525 Week 3 Quiz 1 | Devry University

Week 3 Review Questions - ONLINE VERSION 

Question 1

Snarled program logic is called _____ code.  

·         snake    

·         spaghetti 

·         string  

·         gnarly

 

Question 2

The three structures of structured programming are _____.  

·         "sequence, order, and process"  

·         "selection, loop, and iteration"  

·         "sequence, selection, and loop"  

·         "if, else, and then"

 

Question 3

A sequence structure can contain _____.  

·         any number of tasks 

·         exactly three tasks

·         no more than three tasks 

·         only one task

 

Question 4

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

·         decision structure  

·         if-then-else structure  

·         dual-alternative if structure   

·         loop structure

 

Question 5

"The structure in which you ask a question, and, depending on the answer, take some action and then ask the question again, can be called all of the following except _____."  

·         iteration  

·         loop  

·         repetition   

·         if-then-else

 

Question 6

Placing a structure within another structure is called _____ the structures.  

·         stacking  

·         untangling  

·         building   

·         nesting

 

Question 7

Attaching structures end to end is called _____.  

·         stacking 

·         untangling 

·         building  

·         nesting

 

Question 8

The statement if age >= 65 then seniorDiscount = yes is an example of a _____.  

·         sequence 

·         loop  

·         dual-alternative selection 

·         single-alternative selection

 

Question 9

"The statement while temperature remains below 60, leave the furnace on is an example of a _____."  

·         sequence 

·         loop

·         dual-alternative selection 

·         single-alternative selection

 

Question 10

The statement if age < 13 then movieTicket = 4.00 else movieTicket = 8.50 is an example of a _____.  

·         sequence  

·         loop   

·         dual-alternative selection  

·         single-alternative selection

 

 Question 11

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

·         Their flowcharts all contain exactly three processing symbols.  

·         They all have one entry and one exit point.  

·         They all contain a decision.  

·         They all begin with a process.

 

 Question 12

Which is true of stacking structures?  

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

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

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

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

 

Question 13

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

·         is the only part of the program allowed to be unstructured

·         cannot result in eof  

·         is called a priming input  

·         executes hundreds or even thousands of times in most business programs

 

 

Question 14

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

·         block  

·         family  

·         chunk  

·         cohort

 

 Question 15

Which of the following is acceptable in a structured program?  

·         placing a sequence within the true half of a dual-alternative decision  

·         placing a decision within a loop  

·         placing a loop within one of the steps in a sequence  

·         All of these are acceptable.

 

 Question 16

"In a selection structure, the structure-controlling question is _____."  

·         asked once at the beginning of the structure  

·         asked once at the end of the structure  

·         asked repeatedly until it is false  

·         asked repeatedly until it is true

 

Question 17

"In a loop, the structure-controlling question is _____."  

·         asked exactly once  

·         never asked more than once    

·         asked at both before and after the loop body executes  

·         "asked only if it is true, and not asked if it is false"

 

Question 18

Which of the following is not a reason for enforcing structure rules in computer programs?  

·         Structured programs are clearer to understand than unstructured ones.  

·         Other professional programmers will expect programs to be structured. 

·         Structured programs usually are shorter than unstructured ones. 

·         Structured programs can be broken down into modules easily.

 

 Question 19

Which of the following is not a benefit of modularizing programs?  

·         Modular programs are easier to read and understand than nonmodular ones.  

·         "If you use modules, you can ignore the rules of structure."

·         Modular components are reusable in other programs. 

·         Multiple programmers can work on different modules at the same time.

 

Question 20

Which of the following is true of structured logic?  

·         "You can use structured logic with newer programming languages, such as Java and C#, but not with older ones." 

·         Any task can be described using some combination of the three structures.  

·         Structured programs require that you break the code into easy-to-handle modules that each contain no more than five actions.  

·         All of these are true.

 

Answer Detail

Get This Answer

Invite Tutor