Paper 2 Robustness Flashcards

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

What is meant by the term ‘Validation’?

A

Validation is an automatic check to ensure that data entered is sensible and feasible.

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

State 3 methods of writing maintainable code.

A

comments
descriptive names for variables, constants and subprograms
indentation

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

Explain the differences between input sanitation and input validation

A

Validation checks if the input meets a set of criteria (such as input being a string). Sanitization modifies the input to ensure that it is valid (such as forcing input to be Uppercase)

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

What is meant by the term ‘Iterative Testing’?

A

Iterative testing is carried out while a program is being developed. The programmer writes a section of code (module) then tests it. The module may work fine, but more likely the programmer will amend or fix the code, and test it again. The process repeats (iterates) until the module works as intended.

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

What is a ‘Syntax’ error?

A

A syntax error is an error where you have broken the syntax rules of the programming language such that the compiler or interpreter is not able to understand what you meant to take place, and thus it has to stop compiling your program (or in an interpreted language, stop execution.)

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

What is a ‘Logic’ error?

A

Logic errors occur when there is a fault in the logic or structure of the problem. For example parts of a program may:

  • be in the wrong sequence
  • have the wrong Boolean expression
  • use the wrong data type
  • be missing altogether
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

What is a ‘Run-Time’ error?

A

A runtime error occurs when a program is syntactically correct but contains an issue that is only detected during program execution.

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

What is meant by the term ‘Acceptance Testing’?

A

Acceptance Testing is a level of software testing where a system is tested for acceptability. The purpose of this test is to evaluate the system’s compliance with the business requirements and assess whether it is acceptable.

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

Explain the need for comments to be used during programming.

A

Commenting involves placing Human Readable Descriptions inside of computer programs detailing what the Code is doing. Proper use of commenting can make code maintenance much easier, as well as helping make finding bugs faster. Further, commenting is very important when writing functions that other people will use. Remember, well documented code is as important as correctly working code.

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

Identify different types of authentication that can be used by computer systems.

A
Password-based authentication. 
Multi-factor authentication. 
Certificate-based authentication. 
Biometric authentication.
Token-based authentication.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

What do we mean by the term “Normal testing”?

A

Sensible, possible data that the program should accept and be able to process

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

What do we mean by the term “Extreme testing”?

A

Extreme values are used in testing to make sure that all normal values will be accepted and processed correctly. e.g.
In a system that was designed to accept and process test marks (percentages), then extreme test values would be: 0 (lowest possible value) 100 (highest possible value)

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

What do we mean by the term “Erroneous testing”?

A

Data that the program cannot process and should not accept. e.g.
In a system that was designed to accept and process test marks (percentages), then test values : -100 or 1000 should NOT be accepted.

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