Programming Flashcards

(60 cards)

1
Q

Order of development methologies

A

Analysis, Design,Implementation, testing, documentation, evaluation

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

analysis (Sytstem anayist)

A

what customer wants,when,how much going to pay,leagl,insurence

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

design

A

pseudo code, flowcharts, structure diargrams

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

implementation

A

start to code

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

testing

A

try program, test it

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

documentation

A

user manual, service instructions, tests

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

evaluation

A
  • efficient?,
  • do it better?,
  • learn things,
  • what can gain for next time,
  • meet customer requirements
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

iteration

A

when you go back to a stage to change something

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

functional requirements

A

what is the system going to do to meet requiremnts, consits of inputs,processes,outputs

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

design stage

A

create series of steps that can be converted to code during implemtation, consider functional requirements

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

structre diagrams

A

visual design technique, start at top when reading, then do each branch before moving onto next

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

flowcharts

A

visual desgin technique, more detail than structure diagrams

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

pseduo code

A
  • written,
  • iniditation code,
  • similar to english language,
  • hints towards programming language but without restricions
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

real data type

A

decimal data type

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

point of data types

A

computer need to know whether storing graphics,numbers,words therefore have to advise data type for varible

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

naming conventions when naming a varible

A

must start with a lowercase letter, cannot contain spaces, can have numbers and symbols,must be meaningful

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

what is the + in code?

A

Concationations

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

nesting an if statement

A

times when logical to nest if statements, means second if will only fun if first true

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

fixed loop

A

repeats a set of intructions a specific number of times

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

conditional loop

A

runs till conition is met or while condition true

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

simple conditions

A

only one condition being checked

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

complex conditions

A

multiple conditions being checked

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

logic operators

A

and, or, not

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

and operator

A

both must be true

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
25
or operator
one must be true
26
not operator
reveres the truth value
27
functions
random, length, round
28
random function
provides a random value from between the limits, need to import random at start
29
length function
returns the length of string, numbers of items in a list or array
30
round function
only works with real(decimal numbers) rounds to a certain number of decimal places
31
boolean varible
holds one of two values, true or false, must be wrote with capital, used to control decisions in a program
32
boolean flag
boolean flag used to signal if something has happend or not, often used to track status or trigger actions
33
array
* used to store multiple values in a single varible, * groups related values * , makes code shorter, cleaner, easier to manage
34
creating arrays
colors=["red","green","blue"]
35
changing a value
colors[1]="yellow"
36
adding a new item
colors.append("purple")
37
removing an item
colors.remove("yellow")
38
length of array
array_length=len(colors) print(array_length)
39
looping through array
for i in range(len(colors)) print(colors[i])
40
why test
to ensure meets end user requirments, always use same data type
41
three conditions need to test
normal, extreme,exeptional
42
normal
data that should be accepted
43
extreme
sits on boundries of data being entered
44
exeptional
should not be accepted
45
types of errors
syntax,execution,logic
46
execution error
prevents the program from running, e.g refering to a varible that is not declared
46
syntax error
breaking rules of language, e.g not closing brackets
47
types of programming
machine code, high level language
47
how to make code readable
interanl commentry, white space, meaningful varible names, inditation
47
logic error
does not stop the program from running, and & or mixed up
48
readablity of code
ensure code is readable so that other programmers can understand
49
high level language
similar to english, needs to be translated before run
49
machine code
understood by computer, binary
49
translators
before code run needs to be translated into machine code, interperters and compilers
50
interperter
does not produce object code, translates and executes each line of the program
51
advantages of interperters
errors highlighted imidentally so easier to fix, can run partial code or under developed code
52
disadvantages of interperters
translation not saved, if code repeated (loop) translated many times
53
compiler
translates entire program at once, lists errors
54
advantages of compilers
if no errors does not need to be translated again, translator program no longer required once translated
55
disadvatages of compilers
if syntax errors will not run, errors may be harder to correct as not idteifed till whole code translated