Validation, Testing and Debugging Flashcards

1
Q

Name 2 types of static Testing

A

Program Inspection

Static program analysis

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

What is program inspection

A

Have others check your program (Manual)

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

What is static program analysis

A

Check for good practice (Automatic)

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

Name 2 types of dynamic testing

A

Manual Testing

Automatic Runtime checks (Engine checks)

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

What are the 3 possible methods for handling error

A

Ignore
Fail Fast
Fail safe

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

What is Fail Safe

A

The application continues to run in the best way possible and the error is acknowledged

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

What is Fail Fast

A

The error is reported and the application stops running

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

What method of handling errors is the practice to use

A

Fail Fast

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

Why is Fail Fast Safer than fail safe

A

Ignoring the error will be risky and will be likely to cause future errors

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

What are the 4 stages in the debugging process

A

Identify problem
Identify Cause of problem
Fix Problem
Evaluate solution

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

When might it be hard to fix the problem in a code

A

If the code is not yours

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

What is a black Box test

A

Tells use what the software should do, works for design specs, i.e we are given inputs what are the outputs

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

What is white box testing

A

Works from implementation, tells us what the software doe do

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

What is unit testing

A

Contains one or more tests to run on your code

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

What is an assert statement

A

Fast way to write a check that holds within a unit test

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

What is stress testing

A

To push the software beyond its normal operational limits

17
Q

What can fixing a problem cause

A

A problem somewhere else

18
Q

What is an alpha test

A

The whole piece of software is used by people, often the developers themselves

19
Q

What is a beta test

A

The software is released to a small number of people, they are not the developers

20
Q

What is runtime checking

A

If a piece of code encounters an error that it doesn’t know how to deal with it will raise an exception

21
Q

What are some general in built exceptions in python e

A

BaseException
Exception
Runtime error

22
Q

What are some specific in built python exceptions

A

Arithmetic Error
Lookup error
Type error

23
Q

What does an exception cause

A

The program to stop

24
Q

What are advantages and disadvantages of runtime checking

A

It is neater than if then else statements but it is more expensive