2.3,2.4,2.5 Flashcards

1
Q

What is defensive design?

A

The practice of planning for contingencies in the design stage of a project.

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

What does anticipating misuse in defensive design involve?

A

Considering how an end user might accidentally or deliberately break a program and writing additional code to handle these situations.

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

What is authentication in the context of defensive design?

A

Verifying a user’s identity before they can use a system.

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

What is advised for strong passwords?

A

Passwords over a certain length with symbols and mixed-case letters.

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

What is input validation?

A

Ensuring data input by a user meets specific criteria before processing.

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

What are the types of input validation checks?

A
  • Range check
  • Type check
  • Presence check
  • Format check
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

What is maintainability in programming?

A

Techniques and methods that make code easier to debug, update and maintain.

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

What are naming conventions?

A

Defined naming conventions for variables, contents and procedures.

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

What is the camel case naming convention?

A

The first word of an identifier uses all lower case and all subsequent words start with a capital letter.

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

What does indentation in coding help with?

A

Makes it easier to see where structures begin and end.

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

What is the purpose of commenting in code?

A

Used to explain sections of code and ignored by the compiler.

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

What is testing in programming?

A

Assessing the performance and functionality of a program under various conditions.

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

What is iterative testing?

A

Each module of a program is tested as it is developed.

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

What is final/terminal testing?

A

Checking that all the modules of a program work together as expected.

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

What is a syntax error?

A

Rules of the language have been broken, so the program will not run.

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

What is a logical error?

A

The program runs but does not give the expected output.

17
Q

What is test data?

A

Values used to test a program.

18
Q

What are the types of test data?

A
  • Normal
  • Boundary
  • Invalid
  • Erroneous
19
Q

What is normal test data?

A

Data supplied to a program that is expected.

20
Q

What is boundary test data?

A

Data supplied to a program designed to test the boundaries of a problem.

21
Q

What is invalid test data?

A

Data of the correct type but outside accepted validation limits.

22
Q

What is erroneous test data?

A

Data of the incorrect type that should be rejected.

23
Q

What is a logic diagram?

A

A method of expression Boolean logic in a diagram using a set of standard symbols.

24
Q

What is a logic gate?

A

A symbol in a logic diagram that represents a single gate.

25
What does an AND logic gate do?
Accepts two inputs and produces one output; both inputs must be TRUE for the output to be TRUE.
26
What does an OR logic gate do?
Accepts two inputs and produces one output; at least one input must be TRUE for the output to be TRUE.
27
What does a NOT logic gate do?
Accepts one input and produces one output; it inverts the input.
28
What is a truth table?
A notation used in Boolean algebra to define the output of a logic gate for all possible combinations of inputs.
29
What is a high-level language?
Designed to allow the expression of a computer program reflecting the problem being solved.
30
What is a low-level language?
Close to machine code and closely related to the design of the machine.
31
What is the role of a translator in programming?
Takes a program written in one programming language and converts it to another.
32
What is a compiler?
Translates high-level language source code into a computer’s machine code.
33
What is an interpreter?
Translates and executes a program one statement at a time.
34
What is an Integrated Development Environment (IDE)?
A software application that provides comprehensive facilities for software development.
35
What are error diagnostics in an IDE?
IDE tools that provide detailed feedback on errors in code.
36
What is a run-time environment?
A configuration of hardware and software required by a particular category of application.