SECTION 7 - Design, testing and IDEs Flashcards

1
Q

Structure/modular diagrams

A

Show the smaller tasks of a larger program. Made by decomposing program into manageable modules which are further decomposed.

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

Pros of structure/modular diagrams

A
  • Coding is easier as you are only writing code to carry out simple tasks.
  • Easier to test program as each module can be tested individually.
  • Lots of programmers can work on one program as each module is written independently.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Well-maintained program

A

Makes it easy for other programmers to understand what code means. They should be able to change parts without it affecting rest of code.

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

Features that can improve maintainability of source code

A
  • Comments: Explain what key features of program does
  • Indentation: Separates different statements in program
  • Variables should be named
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Programmer try to protect their code through defensive design by…

A
  • Anticipate how users might misuse a program, then attempt to prevent it happening
  • Ensure code is well-maintained
  • Reduce number of errors by testing
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Input validation

A

Checking if data meets certain criteria before passing through program

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

Examples of input validation

A

Range check, length check, format check

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

Authentication

A

Confirms identity of a user before they are allowed to access certain parts of program

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

A common way that programs use authentication is by using ___.

A

Passwords

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

Common way to increase security of password-based authentication

A
  • Force user to use strong passwords and change them often
  • Limit number of failed authentication attempts before account is blocked
  • Ask random selection of characters from password (Like online banking)
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

Syntax errors

A

When the interpreter or complier does understand the code you have written because it does not the follow the rules and grammar of the pro

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