7B: understanding source code Flashcards

1
Q

difference between developing software + maintaining existing software

A

the need to understand existing solution

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

how can documentation assist in understanding source code

A

source of info to assist interpretation
- algorithm: means of understanding logic of solution

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

benefits of reading original documentation

A

can help understand inputs, variable types, processes, outputs
- modifications: may alter logic of code, therefore documentation should reflect that

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

creating algorithms from source code

A

done when original algorithms unavailable
- can help understanding of program

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

main steps in creating algorithms from source code

A
  1. identifying control structures
  2. understanding variable uses
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

identifying control structures

A

for structured techniques: very straightforward
for non-standard control structures: use flowchart + modify to be standard once flow/logic understood

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

understanding variables which have been used

A

to understand: purpose of each variable, how processing achieves purpose
- name of identifier should give clue on its function

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