2 Flashcards

1
Q

things that keep a program maintained?

A

comments

indentation

suitable variable names

sub programs

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

what is defensive design?

A

anticipates how users might misuse their program then attempt to prevent that

ensure code is well maintained

reduce errors through testing

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

two types of errors?

A

logic error

syntax error

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

what is a syntax error?

A

when the compiler/interpreter doesnt understand part of the code because it doesnt follow the programming language

causes the whole code to not run

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

what is a logic error?

A

when the compiler or interpreter is able to run the program but it does something unexpected

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

what are the two types of testing?

A

iterative testing

final testing

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

what is iterative testing?

A

testing the program while it is being developed

repeating a section of code

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

what is final testing?

A

testing the whole program when it is finished to check it works as intended

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

what is normal data?

A

what the user is likely to input

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

what is boundary data?

A

values at the limit of what the program can handle

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

what is invalid data?

A

inputs with the correct dats type that should be rejected by the program

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

what is erroneous data?

A

incorrect data type that should be rejected by the program

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

what is a trace table?

A

give a simple way of testing if code works correctly

keeps track of values and variables as you go through the code

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

what is a translator?

A

translates the code from high level to low level for the computer to read

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

example of high level language?

A

python

CC+

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

example of low level language?

A

machine code

assembly language

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

what type of code do computers only understand?

A

machine code
1s and 0s

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

two types of translators?

A

compilers

interpreters

19
Q

what is a compiler?

A

translates a high level language directly into machine code

creates one executable file

20
Q

what is an interpreter?

A

take each instruction and call sub routines to carry out that instruction

SIMPLE:

translates and runs the source code one instruction at a time and doesn’t create an executable file

21
Q

what does IDE stand for?

A

integrated development environment

22
Q

what is an IDE?

A

a piece of software that provides features to help a programmer develop their program

23
Q

examples of IDE’s?

A

error diagnostics

syntax highlighting

automatic indents

24
Q

what is error diagnostics?

A

helps the programmer find where they made a mistake

25
what is syntax highlighting?
displays different variables of the code in colours
26
what is computational thinking?
steps taken to find the best solution to a complex problem
27
what are the three types of computational thinking?
decomposition algorithmic thinking abstraction
28
what is decomposition?
breaking a complex problem down into smaller more manageable problems to solve individually
29
what is algorithmic thinking?
a logical way of getting the problem to the solution
30
what is abstraction?
removing useless details from a problem and focusing on the important parts
31
what is pseudocode?
not an actual programming language but follows a similar structure to roughly read like one shows steps without displaying finer details (syntax)
32
advantages of pseudocode?
quick and easy to write easy to understand for beginners easy to convert into any programming language
33
what is a flowchart?
diagram used to represent data in a program
34
why are flowcharts important?
help programmers develop the most efficient coding because they can clearly see where the data is going to end up
35
start/stop
rounded rectangle
36
input/output
parallelogram
37
process
rectangle
38
decision
diamond
39
arrow
arrow
40
diamond
decision
41
input/output
parallelogram
42
rounded rectangle
start/stop
43
rectangle
process