2.3 Robust Programming Flashcards

1
Q

What are examples of defensive design features?

A
  • Authentication
  • Verification
  • Validation
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What is authentication?

A
  • Checking correct user is entering a system
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What is verification?

A
  • User input correct data
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What is validation?

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

What is input sanitation?

A
  • Filtering input data
  • Remove potential malicious code / SQL injection risk
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

How can code be made more maintainable?

A
  • Comments
  • Indentation
  • Appropriate variable names
  • Subprograms
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

What are ways to create appropriate variable names?

A
  • snake_case ( underscores )
  • camelCase ( capitals )
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

What are features of IDE?

A
  • Syntax highlighting
  • Error diagnostics
  • Run time environment
  • Editor
  • Translator
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

What are the advantages of IDE?

A
  • Syntax highlighting ; more readable
  • Error diagnostics ; finds bugs
  • Run time environment ; see program change
  • Editor ; write code
  • Translator ; saves time
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

What are the two types of testing?

A
  • Iterative ( subprograms)
  • Terminal ( entire code )
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

What are the three types of test data?

A
  • Valid
  • Extreme / boundary
  • Invalid / erroneous
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

What is valid data?

A
  • Sensible
  • Processable data
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

What is extreme data?

A
  • Falls at the boundary of possible ranges
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

What is invalid data?

A
  • Erroneous
  • Cannot be processed
How well did you know this?
1
Not at all
2
3
4
5
Perfectly