2.3 Producing Robust Products Flashcards

(19 cards)

1
Q

What is anticipating misuse?

A

Planning ahead to take steps against potential misuse like

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

What is input sanitisation?

A

Checking and cleaning up data that has been input like removing special characters to prevent an SQL injection

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

What is validation?

A

Checking if input data follows a specific criteria and should be followed?

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

What is verification?

A

Checking whether data entered is correct

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

What is authentication and what are some examples?

A

Ensuring only authorised users can gain access to a system though usernames, passwords, PIN’s, email

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

What do different types of checks do?

A
  • Range check - checks data is within a certain range
  • Presence check - checks data has actually been entered and not kept blank
  • Length check - checks the length of an input is within a certain amount
  • Type check - Checks data is a certain data type
  • Format check - checks data is entered in a certain way
  • Lookup Table - a table of acceptable entries, AKA a list
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Why use sub programs?

A

Allows you to reuse code, making it easier to test.

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

Why use naming conventions?

A

Ensure purpose of variable is immediately understood

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

Why use indentation?

A

Improve readability and clearly show each block of code

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

Why use comments?

A
  • People looking at your code can see what it is doing/performing
  • Important in collaboration, to understand others ideas
  • Enhanced readability
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

What are syntax errors?

A

Errors which break the grammatical rules of the programming language and stop it from being run/translated

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

What are logic errors?

A

Errors which produce unexpected output

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

What is normal test data?

A

Data which should be accepted by a program without causing errors

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

What is boundary test data?

A

Data of the correct type which is on the very edge of being valid

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

What is erroneous data?

A

Data of the incorrect data type which should be rejected by a computer system

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

What is invalid data?

A

Data of the correct data type which should be rejected by a computer system

17
Q

What is iterative testing?

A
  • Takes place during development program
  • Programmer develops a module, tests it and repeats until module works as expected
18
Q

What is final/terminal testing?

A
  • Takes place after development and before program released to the intended user
  • Takes place after all modules have been individually tested to ensure whole program works as expected
19
Q

Purpose of testing?

A

Ensure program works correctly no matter what input the user enters