2.3 Producing Robust Programs Flashcards

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

Types of defensive design and explain them

A

Anticipate how users will misuse it and prevent it
Reduce errors in code
Well-maintain code
authentication

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

Input validation

A

Checking data meets certain criteria before it is inputted into code

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

Types of input validation

A

Range Check
Presence Check
Format Check
Look-up table
Length Check

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

How is authentication defensive design

A

Confirms the identity of someone before they have access to the computer

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

How would you do authentication

A

Passwords
Limited amount of tires
Random letters in password

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

How should you maintain code

A

Comments
Sub-programs
Indentations
Naming conventions

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

Syntax error

A

An error in the grammatical rules of the code that produces an error result

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

Logic error

A

When the computer program is able to be run but not give the desired result

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

Iterative testing

A

The program is tested while it’s being developed, a par of it is tested and problems can be solved

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

Terminal testing

A

Program is tested at the end of the development process and the whole program is tested

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

Types of data testing

A

Normal
Boundary
Invalid
Erroneous

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

Normal data

A

Data that will give a result and what users will normally input

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

Boundary data

A

Values at the limit of the program

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

Invalid data

A

Data rejected by the program

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

Erroneous data

A

Data of the wrong data type

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