Defensive design section 6 Flashcards

1
Q

What is defensive design

A

1) anticipate how uses might misuse the program
2) ensure code is maintain
3) reduce the number of errors in code

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

input sanitation

A

removing any unwanted characters before passing through the data

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

input validation

A

checking if data meets certain criteria before passing data

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

range check

A

data is within specific range

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

presence check

A

checks data has actually been entered

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

check digit

A

numerical data has been entered accurately

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

Format check

A

data has correct format

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

look up table

A

checks data values against acceptable values

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

length check

A

correct length

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

Authentication

A

confirm the identity of a user before they’re allowed to access certain places

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

ways to increase security

A

1) force users to use strong passwords
2) limit the number of failed authentication
3) ask for random selection of characer

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

what is a well maintained programe

A

makes it easy for other programmers to understand what the code does

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

comments

A

are useful for explaining what the key features of a program do

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

indentation

A

can be used to seperate different statements in the program

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

variables

A

should be named so that refer to what they actually do

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

What does IDE mean

A

integrated development environment

17
Q

what is an IDE

A

a piece of software that provides features to help a programmer to develop their program

18
Q

name the the features of the interface

A
code editor
run time environment
explorer window
output window
error diagnostics
break point
19
Q

What is a code editor, what does it feature.

A

where the code is written

most will have line numbering, auto-colour coding for things like strings, auto correct e.g.

20
Q

What is a run time environment, how does it help with testing?

A

allows the code to be run quickly within the IDE

can help identify logic errors in the program

21
Q

What is an explorer window

A

will help navigate through programs

22
Q

What is an output window

A

to show the output from a program when it is run

23
Q

What are error diagnostics, how does it help with testing?

A

help to find and fix errors

tell you the location of the error and suggest ways to fix it

24
Q

What are break points.

A

common debugging tool, they can stop the program on certain lines so you can gather information like the value of variables as the program is running

25
what are the common features inside an IDE
translator auto documentation Graphical user interface (GUI)
26
what does the translator do
will translate the source code into machine code
27
what does Auto documentation do
helps with the maintenance and can extract certain features of a program this information is stored in a separate doc
28
what does GUI do
helps the programmer design a user interface by building it up graphically rather than having to design it