chapter 11 Flashcards

You may prefer our related Brainscape-certified flashcards:
1
Q

input

A

entering data into a system

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

process

A

manipulate or change data in some way, perform a calculation, find a result

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

output

A

send data out from the system, display or print data

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

variable

A

a variable is a storage location with an identifier. the value of the variable can change.

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

constant

A

a constant is a named storage location. the value of the constant can not change.

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

types of loops

A

count controlled
pre-condition
post-condition

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

count-controlled loop

A

Iterates a set number of times. A FOR loop.

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

post-conditional loop

A

a post-conditional loop must run at least once. the condition is evaluated at the end. A REPEAT…UNTIL loop

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

pre-conditional loop

A

the pre-conditional loop doesn’t always run. this evaluates the condition at the start. A WHILE loop

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

logic statement examples

A
  1. IF…THEN…ELSE…ENDIF
  2. CASE OF…OTHERWISE…ENDCASE
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

CASE statement

A

a selection of multiple pathways
each condition can be:
* a single value
* single values separated by commas
* range

CASE OF <expression>
<value1>: <statement(s)>
<value2>, <value3>: <statements(s)>
<value4> to <value5>: <statement(s)>
OTHERWISE <statement(s)> //optional; used for error trapping
ENDCASE</value5></value4></value3></value2></value1></expression>

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

modular programming

A

process of subdividing a computer program into separate sub-programs.

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

modules

A

separate software component

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

subroutine

A

a set of instructions that performs a specific task as part of a larger program.

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

procedure

A

a subroutine that doesn’t return a value

PROCEDURE <identifier> (<parameter1>: <dataType> …)
<statement(s)>
ENDPROCEDURE</dataType></parameter1></identifier>

CALL <identifier></identifier>

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

function

A

a subroutine that returns a value

FUNCTION <identifier (<parameter1>: <dataType> …) RETURNS dataType
<statement(s)>
ENDFUNCTION</dataType></parameter1>

call ← identifier()

17
Q

types of passing parameters

A

by value and by reference

18
Q

by value

A

a copy of the value is passed into the subroutine. the actual variable will not be affected.

BYVAL <identifier1> : <dataType></dataType></identifier1>

(inside heading) BYVAL <identifier1> : <dataType></dataType></identifier1>

19
Q

by reference

A

a pointer to the memory location of the variable where the value is stored is passed into the subroutine. the actual data inside the variable will be affected by any changes made.

BYREF <identifier1> : <dataType></dataType></identifier1>

(inside heading) BYREF <identifier1> : <dataType></dataType></identifier1>