The Program Development Life Cycle Flashcards

1
Q

A clearly defined problem that is already
half the solution.

A

Problem Definition (Step 1)

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

• Break down the problem into
smaller parts
• Identify the input (data you
start with) and output (the
desired result

A

Problem Analysis (Step 2)

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

• Create a step-by-step plan to
solve the problem.
• Algorithms can be written in
plain language, as a picture
(flowchart), or in a code-like
way (pseudocode).

A

Algorithm Design and Representation (Step 3)

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

EXPRESSING OUR SOLUTION
THROUGH HUMAN LANGUAGE

A
  1. Get the list of names, let’s call this
    nameList
  2. Get the name to look for, let’s call this the
    keyname
  3. Compare the keyname to each of the
    names in nameList
  4. If the keyname is the same as a name in
    the list, add 1 to the count
  5. If all the names have been compared,
    output the result
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

EXPRESSING OUR SOLUTION
THROUGH A PSEUDOCODE:

A
  1. Get nameList.
  2. Get keyname.
  3. Set count=0.
  4. Compare keyname to nameList.
  5. If keyname = name in nameList, then
    count + 1
  6. Else, display count.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

A schematic representation of a sequence of operations, as in a manufacturing process or computer program. A graphical representation of the sequence of operations in an information system or program. Shows how data flows from source documents through the computer to final distribution to users.

A

Flowchart

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

Symbols in order:

A

Terminal Symbol (oval shaped)
Input/output Symbol (rectangle with parallel end)
Process Symbol (rectangle shaped)
Flowline Symbol (cross arrow)
Decision Symbol (diamond plane shaped)
Connector Symbol (Circle)

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

After constructing the algorithm,
it is now possible to create the
source code. Using the algorithm
as a basis, the source code can
now be written using the chosen
programming languag

A

Coding and Debugging (Step 4)

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

Types of Errors

A
  1. Compile-Time Error or Syntax Errors
  2. Runtime Errors
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

Occurs if there is a syntax error in
the code.

A

Compile-Time Error or Syntax Error

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

Compilers are not perfect, and so they cannot catch all errors at compile time. This is especially true for logic errors, such as infinite loops.

A

Runtime Errors

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