Chapter 7 Algorithms, Psuedocode, etc Flashcards

1
Q

Stages of the program development life cycle

A

Analysis
Design
Coding
Testing

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

What is Analysis (PDLC)

A

Analysis is a process of investigation, which leads to finding out the purpose and specifications of the program

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

What is Design (PDLC)

A

Shows how the program should be developed using the program specifications from analysis

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

What is Coding (PDLC)

A

Writing the program(s) itself and iterative testing

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

What is Testing (PDLC)

A

testing program code with the use of test data

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

What is abstraction - analysis

A

Key elements for a solution are kept and unnecessary info is discarded.

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

What is decomposition - analysis

A

A complex problem is broken down into smaller parts that can be solved easily.

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

Methods used for design

A

Structure diagram
Flowcharts
Pseudocode

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

What is a top-down design

aka

A

Constant breaking down of a computer system into a set of smaller sub-systems until each sub-system only performs 1 operation.

aka stepwise refinement

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

Components of a computer system (decomposition)

A

Inputs
Processes
Outputs
Storage

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

What is input - decomposition

A

Data used by the system that needs to be entered while the system is active

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

What is processes- decomposition

A

Tasks that need to be performed by a program using the input data and prev. stored data.

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

What is output - decomposition

A

Information that needs to be displayed or printed for the users.

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

What is storage - decomposition

A

Data that needs to be stored in files on an appropriate media for use in the future.

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

What is linear search

A

An algorithm that inspects each item in a list in turn to see if the item matches the value searched for

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

What is bubble sort

A

Makes multiple passes through a list comparing each element with the next element and swapping them, until no more passes/swaps can occur.

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

What is validation

A

Automated checks carried out to ensure that data is reasonable before it is accepted.

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

Types of validation

A

Range checks
Length checks
Type checks
Presence checks
Format checks
check digits

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

Range checks

A

Checks that the value of a number is between an upper and lower bound.

20
Q

explain Length checks

syntax om
pseudocode
python

A

Ensures that the data entered is a specific number of characters long.

pseudo: LENGTH()
py: len()

21
Q

Type checks

A

Checks that the data entered is of a specific type

22
Q

Presence checks

A

Checks if data has been entered

23
Q

Format checks

A

Checks if the characters entered follow the pre-defined pattern

24
Q

Check digits

A

An additional digit that is added to the number to make sure the entered number is error-free.

25
What is verification
Makes sure that has been accurately copied/transferred from another sources and input into a computer
26
What is double entry
Makes users enter data twice
27
What is screen/visual check
Manual check that is completed by the user that enters the data.
28
What is a trace table
Used to record results from each step in an algorithm
29
What is normal data
Data that is accepted by a program
30
What is abnormal data
Data rejected by a program
31
What is extreme data
smallest/largest data value that is accepted by a program
32
What is boundary data
smallest/largest data value accepted by a program along with smallest/largest data value rejected by a program
33
What is pseudocode
Simple method of showing an algorithm. Describes what the algorithm does by using English key words that are similar to those used in high-level programming language without the strict syntax rules.
34
what is an algorithm
Ordered set of steps to solve a problem
35
what is a flowchart
a diagram that shows the steps required for a task and the order in which steps are performed.
36
What is a structure diagram
Shows the design of a CS in a hierarchical way, which each level giving a detailed breakdown of the system into sub systems.
37
What is iterative testing
modular tests are conducted, code amended, and tests repeated until the module performs as required.
38
How is top-down design used for large computer systems what does this do
t several programmers can work independently to develop and test different sub-systems for the same system at the same time. This reduces the development and testing time.
39
What are the begin/end symbols called in flowcharts shape
terminator flowchart symbols elliptical
40
What is the process symbol called in flowcahrts shape
Process flowchart symbols rectangle
41
Shape of input/output
Parallelogram
42
Shape of decision in pseudocode
diamond always 2 flow lines - one YES one NO a question mark eg x > b ?
43
What does a flow line show
direction of flow
44
What to use for linear search in psuedocode
repeat until loop found variable - boolean counter - integer
45
What is a computer system made out of
made up of sub-systems, which are made up of further sub-systems