CIS 150 Final Flashcards
A pictorial representation if the logical steps to solving a problem is
Flowchart
If an input file description lists “Quantity on Hand” as one of the fields, what would be an acceptable variable name
qtyOnHand
Providing the value for a memory location when it is created is called
Initializing a variable
A(n) _____ is the sequence of steps necessary to solve a problem
Algorithm
All logic problems can be solved using only these three structures
Sequence, selection, loop
A variable whose value is known only to the module in which it is declared is a _____ variable
Local
In computer programming, the equal sign is the
Assignment operator
Large programs are usually written _____
In modules
IF dueDate > DAYS_LIMIT THEN PRINT fine ELSE PRINT reciept END IF
is an example of a _____ structure
Selection
A structure chart illustrates relationships among _____
Modules
In all structured loops, the loop controlling question provides ______ the repearing structure
The only entry to or exit from
Testing a program’s logic on paper is called
Desk Checking
In any boolean expression, what type of comparison is NOT appropriate
Constant to constant
Assume you need a list of inventory items that cost more than $250 (about 60% of the items) AND that were stocked over 90 days ago (about 45 percent of the items). For efficiency, which question should you ask first?
The one that involves the invStockDate
IF a > 10 THEN DISPLAY "OK" ELSE IF b > 10 THEN DISPLAY "OK" END IF END IF
What is a more efficient way of writting this?
IF a > 10 OR b > 10
DISPLAY “OK”
END IF