Design, Testing and IDEs Flashcards

You may prefer our related Brainscape-certified flashcards:
1
Q

What do Structure diagrams show?

A

Smaller tasks of a larger program

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

Advantages of Structure Diagram

A

Easier/simpler to code smaller tasks
Lots of programmers can work on different parts of the program independently
Easier to test smaller sections of program
Easier to fix smaller sections without effecting the rest of the program

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

How to make your program ‘Well-maintained’

A

Comments - to explain key features of a program, help other programmers understand your program

Subprograms - easier for other programmers to see how different parts of a program work

Variables, sub programs and parameters - need to be named so programmers know what they do

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

What is defensive design?

A

Contingency planning using validation, maintainable code and testing

Anticipate how users may use the program unexpectedly -> and prevent it from happening

Make code well-maintained

Test code to reduce number of errors

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

Input Validation

A

Checking if data meets certain criteria before passing into the program

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

Types of input validation

A

Range Check - checks data is within a specified range
Presence Check - checks data has been actually entered
Format Check - checks data is in the correct format
Look-up Table - checks data against a table of acceptable values
Length Table - checks data is the correct length

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

What is authentication?

A

Confirms identity of a user before they can access certain data
e.g. passwords

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

How to increase the security of a password

A

Use strong passwords, change them regularly
Limit number of failed attempts

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

What are syntax errors

A

when the compiler does not understand something in the code as it doesn’t follow the rules or grammar of the programming language

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

What are logic errors

A

when the compiler can run the program but the output is unexpected

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

Types of Testing

A

Iterative Testing
Final (terminal) testing

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

What is iterative testing

A

program is tested while being developed
Used for: small errors, preventing larger errors occurring later on in development

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

What is final (terminal) testing

A

program is tested after developing (at the end).
Whole program is tested at the same time

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

What is a test plan?

A

Outlines what you are testing and how
It should cover all possible paths through a program.

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

What types of test data should be used?

A

Normal Data - an expected input
Boundary Data - values at the limit of what the input can be
Invalid Data - correct data type but rejected by program
Erroneous Data - wrong data type and rejected by program

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

Purpose of validation

A

to ensure that data entered is sensible and possible.