CIS 150 Final Flashcards

(32 cards)

1
Q

A pictorial representation if the logical steps to solving a problem is

A

Flowchart

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

If an input file description lists “Quantity on Hand” as one of the fields, what would be an acceptable variable name

A

qtyOnHand

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Providing the value for a memory location when it is created is called

A

Initializing a variable

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

A(n) _____ is the sequence of steps necessary to solve a problem

A

Algorithm

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

All logic problems can be solved using only these three structures

A

Sequence, selection, loop

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

A variable whose value is known only to the module in which it is declared is a _____ variable

A

Local

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

In computer programming, the equal sign is the

A

Assignment operator

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

Large programs are usually written _____

A

In modules

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q
IF  dueDate > DAYS_LIMIT THEN
   PRINT fine
ELSE
   PRINT reciept
END IF 

is an example of a _____ structure

A

Selection

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

A structure chart illustrates relationships among _____

A

Modules

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

In all structured loops, the loop controlling question provides ______ the repearing structure

A

The only entry to or exit from

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

Testing a program’s logic on paper is called

A

Desk Checking

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

In any boolean expression, what type of comparison is NOT appropriate

A

Constant to constant

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

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?

A

The one that involves the invStockDate

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q
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?

A

IF a > 10 OR b > 10
DISPLAY “OK”
END IF

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

In all structured loops, the loop controlling question provides _______ the repeating structure

A

The only entry to or exit from

17
Q

A loop control variable is _______

A

Used to determine whether the loop will continue

18
Q

What is an example of an indefinite loop?

A

Reading records until the eof

19
Q

An array consists of a series of _______

A

Variables in memory of the same data type

20
Q

For an array totalPay, totalPay[7] is known as _____

21
Q

The size of an array is indicated by______

A

The number of elements in the array

22
Q

A subscript must be ________

A

Numeric with no decimal places

23
Q

An array initialized with Team Names that do not change during the execution of a program is a_______

A

Compile-time array

24
Q

A(n) ______ is when each element in an array is associated with an element in the corresponding position in another array

A

Parrallel Array

25
Sending a copy of data from one method to another is known as______ a variable
Passing
26
A methods name and its argument list constitute the method's _______
Signiture
27
When a method returns nothing it is known as a ______ method
Void
28
The value in a method's return statement that is sent from the called method back to the calling method must _______
Match the data type at the beginning of the method header
29
When a calling method passes a variable to a called method, they exhibit ______ coupling
Data
30
You should try to minimize ______ and maximize ______
Minimize coupling, maximize cohesion
31
Encapsulation
Info hiding (data is COMPLETELY contained within modules) allows for reuse and rapud application saves time and increases reliability. (You don't know the code for v-look up, just the questions in the interface
32
Class
Category of things that defines the attributes of its objects and methods can be applied to objects