Unit 8 - Logic & Languages Flashcards

(55 cards)

1
Q

What is a Binary Situation?

A

It is when something can only be one of two states.

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

What is a Boolean Operator?

A

It is a word like AND, OR, NOT.

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

What is the AND function?

A

The output is only True if both inputs are True.

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

What is the OR function?

A

The output is True if either of the inputs is True.

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

What is the NOT function?

A

If the input is True then the output is False.
If the input is False then the output is True.

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

What is a Truth Table?

A

It is a table showing possible combinations of inputs and their corresponding outputs.

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

What is Defensive Design?

A

it is a software development approach to create a robust and reliable program by planning potential errors or misuse.

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

What is Data Validation?

A

The process of checking data to ensure it is accurate, consistent and reliable by comparing it to a set of rule.

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

What are the types of Validation checks?

A
  • Range Check
  • Type Check
  • Length Check
  • Prescence Check
  • Format Check
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

What is Range Check?

A

It is checking is a number or date is within a sensible range.

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

What is Type Check?

A

It is checking if the data is of the right type (Integer/String).

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

What is Length Check?

A

It is checking if the text entered is too long or too short.

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

What is Prescence Check?

A

It is checking if data has been entered.

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

What is Format Check?

A

It is checking the format is correct.

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

What is Verification?

A

It is when data is double-checked to be correct.

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

What is an Authentication routine?

A

It is a routine used to make sure someone is who they really are.

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

What is Anticipating misuse?

A

It is when a program limits the amount of entries to make it harder for hackers.

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

What are ways to make a program maintainable?

A
  • Sub-programs
  • Appropriate naming
  • Indentation
  • Commenting
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
19
Q

How does using Sub-programs help?

A

They can be used multiple times in a program so it reduces the amount of code.

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

How do good names help?

A

It makes the code easier to read and understand.

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

How does Indentation help?

A

It makes it possible to tell which lines are part of different structures.

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

How does Commenting help?

A

They help you understand your code when you look at it later.

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

What is a Syntax Error?

A

It is an error where code written doesn’t conform to the rules of the language.

24
Q

What is a Logic Error?

A

It is a flaw in the program’s code that causes it to produce incorrect results.

25
What tests could be run?
- Normal Data - Boundary Data - Invalid Data - Erroneous Data
26
What is Normal Data?
27
What is Boundary Data?
28
What is Invalid Data?
29
What is Erroneous Data?
30
What is a High-level language?
31
What is a Low-level language?
32
What are examples of a High-level Language?
- Python - Java - C# - C++
33
What are examples of a Low-level Language?
- Assembly Code - Machine Code
34
What is a Query Language?
35
What is a Markup Language?
36
What are examples of a Query Language?
- SQL
37
What are examples of a Markup Language?
- HTML - XML
38
What is Machine Code?
39
What is Assembly language?
40
What are two ways to translate a High-level language?
- Interpreter - Compiler
41
What is an Interpreter?
42
What is a Compiler?
43
What are the advantages of High-level Code?
- Easy to learn - Faster to write - Easier to understand and debug
44
What are the advantages of Low-level Code?
- It can run very quickly - The code requires less RAM - Some statements can be used to directly control some components
45
What is the intermediate stage in translation called?
46
What is Bytecode?
47
What is an Integrated Development Environment (IDE)?
48
What issues are there with writing code in a text editor?
- There are no line numbers - There is no Syntax highlighting - There is no ability to run the code inside the editor - There is no assistance to debug the code
49
What are examples of IDEs?
- Visual Studio - Eclipse - IDLE
50
What are features of an IDE?
51
How do Line Numbers help?
52
How does Syntax Highlighting help?
53
How do Error Diagnostics help?
54
How does a Code Debugger help?
55
How does a Run-time Environment help?