paper 2 dk Flashcards

(31 cards)

1
Q

BY REF or BY VAL

A

By value
- If variable is used the value cant be changed within the procedure
By reference
- The value passed in can be changed by the procedure

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

how to test to expose a fault

A
  • dry run
  • write output statements to track the code
  • breakpoint/ single stepping/ report window
  • try test values to see which fail
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

disadvantage of a linked list

A

more complex
store pointer and data

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

meaning of up and down arrows in waterfall model diagram

A

down - result from one stage is passed to the next
up - more work required at the previous stage to complete the current stage

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

procedure call pseudocode

A

CALL PROCEDURE()

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

state of queue is front and end pointers same

A

one data item in it

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

3 thinsg that take place during design

A
  • data structures decided on
  • algorithms / flowcharts/ pseudocode created
  • program structure and modules created
  • test method chosen
  • programming lang chosen
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

advantages of having less modules

A

+ only have to change one module if spec changes
+ less repetitive code
+ aids reusability

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

insertion sort

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

concatenation pseudocode

A

&

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

principle of RAD

A

minimal planning/ flexible process

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

2 reasons for adaptive maintenance

A
  • requirements change
  • new tech available
  • change in legislation
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

procedure interface

A

provides a mechanism to allow calling a program to pass data
defines the parameters giving their data type and order
- Must match the procedure/function definition
- Parameters must match those in the definition – in type and in order

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

+ constant

A
  • only needs to be changed once
  • prevents input error
  • makes program easier to understand
  • less repeated code
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

file operations - input, process, output

A

write file - output
read file - input

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

additional info needed for walkthrough

A

source code or inputs and expected outputs
- structure/ design of algorithm needs to be known
- so all paths can be tested

17
Q

stepwise refinement

A

decomposition breaks problems down into smaller parts
these parts are written as a series of steps where each can be written in a high level lang

18
Q

program development lifecycle

A

analysis
design
coding
testing
maintenance

19
Q

walkthrough

A

used predefined test cases where another member dry runs the pseudocode - check specific areas

20
Q

ADT

A
  • Collection of data and a set of operations on that data
21
Q

loops

A
  • Count controlled
  • Pre condition
  • Post condition
22
Q

waterfall

A
  • Each stage completed before the next is begun, fully documented, low customer involvement
23
Q

iterative

A
  • Subset of requirements is developed then expanded or enhanced – repeated until full system has been developed, working parts produced at each iteration, high customer involvement
24
Q

RAD

A
  • Different parts of requirements are developed in parallel using prototyping to provide early user involvement, minimal planning, reuses pre written code, high customer involvement
25
dry run
– developer works through a module manually and documents results in a trace table
26
walkthrough
– formalised dry run using pre defined test cases, another member dry runs the pseudocode
27
white box
– testing how each procedure works, involves testing the structure and logic of every path
28
alpha
– tested by in house development team
29
black box
– tests inputs and outputs
30
maintenance
- corrective – corrects errors in use - perfective – improves performance of program - adaptive – alters program to perform new tasks
31
things produced after analysis
requirement spec system objectives problems with existing system