Unit 8 - Systems Software & Robust Programming Flashcards

1
Q

What is Input validation?

A

Checking input meets certain rules, e.g. the type of data.

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

What is Anticipating misuse?

A

Creating precautions for unintended use of the program

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

What is Authentication?

A

Entering data twice or checking from an alternative source.

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

Explain the Use of sub programs.

A

Creating reusable code where bugs can easily be fixed.

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

What are Naming conventions?

A

Good use of variables and sub program names makes programs easier to read.

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

What is Indentation?

A

Makes programs easier to read.

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

What is Commenting?

A

Helps programmers understand what a program does and how it does it.

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

What is a Syntax error?

A

A syntax error is one where the code written doesn’t conform to the rules of the language.

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

What is a Logical error?

A

A logical error is when a code runs in a way that is not intended by the programmer, but usually does not prevent it from running.

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

What are the 4 types of test data and what do they mean?

A

Normal data: Data that fits within all parameters with ease; Boundary data: Data which is just above or below the minimum or maximum requirements; Invalid data: Data which does not fit within the parameters; Erroneous data: Data which is the wrong type.

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

Give 3 examples of a High-level Programming language.

A

Python, Java, C#

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

Give an example of a Query language.

A

SQL

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

Give 2 examples of Markup languages.

A

HTML, XML

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

Give an example of a Low-level Programming language.

A

Assembly language

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

What is machine code?

A

Code that is read by the machine and is highly difficult to read by people

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

Name 3 advantages of a low-level language

A

A program written in a low-level language can run very quickly, the code will usually require less RAM and statements in a low-level language can be used to control and manipulate specific hardware components.

17
Q

What do Compilers and Interpreters do?

A

Translates a high-level language into machine code.

18
Q

Name 4 differences between a Compiler and an Interpreter.

A

A compiler translates the whole program

19
Q

What is assembly language?

A

Assembly language is a low-level language. It is assembled into machine code before it’s run.

20
Q

What are IDEs?

A

IDEs are Integrated Development Environments. They have a number of tools and features that help programmers when they are programming.

21
Q

Name 4 functions that an IDE introduces to help in programming.

A

Line numbers – Give a number to each line of code; Syntax highlighting – Different colours for code that has different meanings, such as keywords, strings or variables; Breakpoints, stepping and watching variables – The ability to pause code when running and then run each line of code separately whilst watching the values stored in variables as they change.

22
Q

How much memory do integers take up?

A

Integers use around 2 bytes of memory.

23
Q

How much memory do float values take up?

A

Float values use around 4 bytes of memory.

24
Q

How much memory do char values take up?

A

Char values use around 1 byte of memory.

25
Q

How much memory do string values take up?

A

String values use up 1 byte per character in the string.