2.3 New Flashcards

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

Defensive design

A

Approach to software development where every possible input from a user is considered

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

Purpose of defensive design

A

-to anticipate ways a user could misuse a program
-ensure the final program is robust and reliable for all users

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

What can developers do to anticipate errors in programs

A

Ensure the software has a way of dealing with the potential errors to ensure software does not crash

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

Examples of error in programs

A

-peripheral errors
-disk errors
-communication errors

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

Peripheral error

A

-When peripherals do not perform as intended
-eg printer runs out of paper(fix is allow user to reprinting document after refilling the paper)

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

Disk error

A

-Error that occur on a disk
-such as disk running out of space(fix=allowing user to save work on another disk)

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

Communication errors

A

Applications using online systems losing online connection to the host server(fix = automatically retry if connection resumes)

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

Authentication

A

Process of ensuring that a system is secure by asking the user to complete tasks to prove they are an authorised user of the system

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

Examples of authentication

A

-Usernames and passwords
-CAPTCHA

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

Input validation

A

Code which is used to check that an input from a user is acceptable and matches the requirements of the program

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

What are the 5 main categories of validation

A

Length check
Type check
Range check
Presence check
Format check

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

Type check

A

Checking if what is entered is a certain data type such as integers for age

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

Range check

A

Ensuring data entered falls under a particular range such as between 0-100 for age

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

Length check

A

Checks the length of a string and checks if it meets the condition

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

Presence check

A

Looks to check if any data has been entered in a field

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

Format check

A

Ensures that the data has been entered in the correct formate such as email containing @ and . symbol

17
Q

Program maintainability

A

Ensuring programmers can easily understand what a program is doing a long time after having written it

18
Q

How are programs maintained

A

-commenting of code
-white space(makes each section clear)
-indentation
-sensible variable names
-use of sub programs

19
Q

Purpose of testing programs

A

-ensure there are no errors or bugs in the code
-ensure that the code performs as it was intended
-ensure no one can gain unauthorised access to the system
-check the program solves in the initial problem and meets all requirements

20
Q

Types of testing programs

A

Iterative testing
Final testing

21
Q

Iterative testing

A

-each part of program is tested
-every pathway through the program is tested(if statements)
-done during development of program
-make changes and improvements while testing

22
Q

Final testing

A

-Testing that all parts of a program work together
-checking the program against real data to ensure it meets all of the requirements
-testing program using normal, boundary and erroneous data
-done towards end of development
-can alpha testing or beta testing

23
Q

How to identify syntax errors

A

-program will not execute when there is a syntax error (IDE provides information about the error)

24
Q

How to identify logic errors

A

-Program runs but expected output is not produced
-check obvious areas such as logical and Boolean operators or division by 0

25
Q

Categories of tests

A

Normal tests
Boundary tests
Erroneous tests
Invalid tests

26
Q

Normal test

A

When a user enters data that should be accepted in the program

27
Q

Boundary tests

A

When a user enters data that is on the edge of what is acceptable

28
Q

Erroneous tests

A

When a user enters data that is the wrong data type

29
Q

Invalid tests

A

When a user enters data that is the right data type but outside of what is accepted