Autumn Term 2 Mr Reid Flashcards

1
Q

what is iterative testing?

A

testing the code as it’s created, altering as required

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

what are the three types of error?

A

logic,runtime,syntax

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

what do logic errors do?

A

programs operate incorrectly-not crash- so unintended results

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

what are runtime errors?

A

an error that causes the program to crash even if there’s nothing wrong with the code, only detected when the program is run, eg run out of memory, infinite recursion

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

what is casting?

A

change a var’s data type

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

what is initialising?

A

giving a var a value when you create it

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

what is assignment?

A

changing a var’s value

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

what is a transcription/transposition error?

A

errors in transferring data onto computer

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

how can data entry errors occur?

A

transcription/transposition
source doc errors

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

what is verification (not passwords)

A

checking data to make sure its been transferred correctly

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

list some verification methods

A

double entry like password entry
proofreading

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

what can incorrect data lead to?

A

loss of income, reputation; legal ramifications; incorrect processing

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

why is it important to check data?

A

so data is as accurate as possible

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

are strings primitive data types

A

yes

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

can verification detect source doc errors?

A

no

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

can validaiton detect source doc errors?

A

yes

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

how is validation different to verification?

A

process to make data is sensible and valid, can be done by computer on input. used to check data against rules. can find source doc errors

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

list 5 types of validation

A

length check: is the data the expected length?
range check: is the data a sensible amount?
lookup check: does the data exist somewhere else? eg. a title like mr, ms, prof, etc.
format check: eg is it dd/mm/yy
presence check: is it there?

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

list characteristics of a low level language (5)

A

machine code+assembly language
tricky to program as programmer must do the logic reasoning
v. fast
produces small, efficient programs
often used in integrated systems

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

list high level language characteristics

A

easier to understand/write
can make big, sophisticated programs more easily.
englishish words.
platform dependant

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

what are characteristics of assembly code?

A

low-level,uses mnemonics,has an opcode and operand,has a 1-1 relationship with binary

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

what do assemblers do?

A

translate assembly code into machine code, platform dependant

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

does assembly code have a 1:1 relationship with machine code

A

yes

24
Q

what do you use to translate assembly code into machine code?

A

an assembler

25
Q

what does the SQL command SELECT do?

A

chooses data

26
Q

what does the SQL command FROM do?

A

determines the table to grab data from

27
Q

what does the SQL command INSERT do?

A

places new data into the table

28
Q

what does the SQL command UPDATE do?

A

changes existing data

29
Q

what does the SQL command DROP do?

A

gets rid of existing data

30
Q

what does the SQL command DELETE do?

A

gets rid of existing data

31
Q

what does the SQL command WHERE do?

A

criteria to meet

32
Q

what does the SQL command OR do?

A

widens search criteria

33
Q

what does the SQL command AND do?

A

narrows search criteria

34
Q

what does the SQL command LIKE do?

A

similar to this

35
Q

what language translator is needed for the first generation?

A

no translator

36
Q

what sort of relationship do low-level to high level languages have?

A

one to many- for every high level instruction there are many low level instructions

37
Q

what is the easiest generation to code in?

A

3rd gen

38
Q

which generation would create the fastest code?

A

1st generation

39
Q

what is meant by source code?

A

the code written by the programmer

40
Q

what is used to translate assembly code?

A

assemblers

41
Q
A
42
Q

which gen of a programming language uses machine code?

A

1st gen

43
Q

what language translator is used at the end of development?

A

compiler

44
Q

which language translator produces object code and an error report?

A

compiler

45
Q

which language translator is used with the second gen?

A

assembler

46
Q

which language translator is used with the 3rd gen?

A

compiler

47
Q

which language does not convert source code into machine code?

A

interpreter

48
Q

which translator stops when it encounters an error?

A

interpreter

49
Q

what features can an IDE include?

A

pretty text, predictive text, debugging tools including variable inspection, break point, step through

50
Q

what does IDE stand for?

A

Integrated Development Environment

51
Q

how are interpreters different from compilers?

A

they translate line by line and stop when they reach an error. slower than compiled problems

52
Q

what is the opcode?

A

the instruction, eg ADD, SUB

53
Q

what is the operand?

A

the data/value being acted on by the operand

54
Q

how does the computer know whether a number is an instruction or value?

A

whether it is LDA (ing) or STA (ing) the number first

55
Q

what do LDA and STA stand for in LMC?

A

Load and Store

56
Q

what do BRZ and BRA stand for in LMC?

A

Branch when Zero and Branch Always