MIS 525 Week 5 Quiz | Devry University

MIS 525 Week 5 Quiz | Devry University

Week 5 Review Questions - ONLINE VERSION

Question 1

"The structure that allows you to write one set of instructions that operates on multiple, separate sets of data is the _____."  

·         sequence  

·         selection  

·         loop  

·         case

 

Question 2

The loop that frequently appears in a program s mainline logic _____.  

·         always depends on whether a variable equals 0  

·         works correctly based on the same logic as other loops  

·         is an unstructured loop  

·         is an example of an infinite loop

 

Question 3

Which of the following is not a step that must occur with every correctly-working loop?  

·         Initialize a loop control variable before the loop starts.   

·         Set the loop control value equal to a sentinel during each iteration.  

·         Compare the loop control value to a sentinel during each iteration. 

·         Alter the loop control variable during each iteration.

 

Question 4

The statements executed within a loop are known collectively as the _____.  

·         loop body   

·         loop controls  

·         sequences 

·         sentinels

 

Question 5

A counter keeps track of _____.  

·         the number of times an event has occurred  

·         the number of machine cycles required by a segment of a program  

·         the number of loop structures within a program  

·         the number of times software has been revised

 

Question 6

Adding 1 to a variable is also called _____ it.  

·         digesting  

·         resetting  

·         decrementing 

·         incrementing

 

Question 7

Which of the following is a definite loop?  

·         a loop that executes as long as a user continues to enter valid data  

·         "a loop that executes 1,000 times" 

·         both of the above 

·         none of the above

 

Question 8

Which of the following is an indefinite loop?  

·         a loop that executes exactly 10 times  

·         a loop that follows a prompt that asks a user how many repetitions to make and uses that value to control the loop  

·         both of the above  

·         none of the above

 

Question 9

"When you decrement a variable, you _____."  

·         set it to 0 

·         reduce it by one-tenth

·         subtract 1 from it 

·         remove it from a program

 

Question 10

"When two loops are nested, the loop that is contained by the other is the _____ loop." 

·         captive 

·         unstructured  

·         inner 

·         outer

 

Question 11

"When loops are nested, _____." 

·         they typically share a loop control variable  

·         one must end before the other begins  

·         both must be the same type definite or indefinite  

·         none of the above

 

Question 12

Most programmers use a for loop _____.  

·         for every loop they write  

·         when a loop will not repeat 

·         when they do not know the exact number of times a loop will repeat  

·         when they know the exact number of times a loop will repeat

 

Question 13

"A report that lists no details about individual records, but totals only, is a(n) _____ report." 

·         accumulator  

·         final   

·         summary  

·         detailless

 

Question 14

"Typically, the value added to a counter variable is _____."  

·         0  

·         1  

·         10  

·         100

 

 

Question 15

"Typically, the value added to an accumulator variable is _____."  

·         0  

·         1  

·         the same for each iteration  

·         different in each iteration

 

Question 16

"After an accumulator or counter variable is displayed at the end of a program, it is best to _____."  

·         delete the variable from the program  

·         reset the variable to 0  

·         subtract 1 from the variable   

·         none of the above

 

 Question 17

"When you _____, you make sure data items are the correct type and fall within the correct range."  

·         validate data 

·         employ offensive programming  

·         use object orientation  

·         count loop iterations

 

 Question 18

Overriding a user s entered value by setting it to a predetermined value is known as ______. 

·         forcing 

·         accumulating 

·         validating  

·         pushing

 

 

Question 19

"To ensure that a user s entry is the correct data type, frequently you ______."  

·         "prompt the user, asking if the user is sure the type is correct"  

·         use a method built into the programming language  

·         include a statement at the beginning of the program that lists the data types allowed  

·         all of the above

 

Question 20

Variables might hold incorrect values even when they are _____.  

·         the correct data type  

·         within a required range 

·         coded by the programmer rather than input by a user   

·         all of the above

Answer Detail

Get This Answer

Invite Tutor