"SDD" Flashcards
three different types of design methods
rapid application development, agile methodologies, top down design // waterfall
Memory write operation
> the processor sets up the address bus with the register memory address by placing it in MAR
the processor sets up the data bus with the value to be stored in memory by placing it in MDR
CU activates write line on control bus
the address bus opens the relevant memory location at that address
the contents of the memory data register are released and sent along the data bus into the memory location
pre-defined function: random letter lowercase // character
randomletter=int(randrange(97,122)
chr(randomletter)
efficient
ability to solve the problem without using too much memory and processing time
Memory read operation
> the processor sets up the address bus with required memory address by placing in the MAR
CU activates the read line on the control bus
the address bus opens the relevant memory location at that address
the contents of the memory location are released, sent along the data bus and into the MDR
data is then decoded and executed
what is corrective maintenance
fixing the bugs that slipped though the testing stage by updating the section of code containing the error. This is then released as a software patch
Most expensive to cheapest
Registers, USB/Flash Memory,CPU Cache, RAM
Registers, CPU Cache, RAM, USB/Flash Memory
standard algorithm for: counting occurrences (8)
- 1 occurrences = 0
- 2 take in value to find
- 3 for each item
- 4 if current item = value to find then
- 5 occurrences = occurrences + 1
- 6 end if
- 7 next item in list
- 8 display occurrences
IN
By Value
IN/OUT
By Reference
portable
ability of the program to be run on different operating systems
what is module library
contains a set of pre-written and pre-tested subroutines of code that are available to programmers
Largest to smallest capacity
Registers, USB/Flash Memory,CPU Cache, RAM
USB/Flash Memory, RAM, CPU Cache, Registers
an advantage of using agile design methodologies
they should respond to unpredictability and cope with rapid change.
pre-defined function: length
len()
the ____ bus identifies the location
address
7 stages of software development
analysis design implementation testing documentation evaluation maintenance
low level language
represented by 1’s and 0’s. processors only understand these digits. this is known as machine code. harder for us to understand
what is adaptive maintenance
takes into account new conditions such as the customer getting new hardware or software. it updates your software to work under new conditions such as a new operating system
agile methodologies
a repetitive process that increases bit by bit through iterative and incremental development - are able to respond to unpredictability and cope with rapid change
what does the NON-MASK-ABLE INTERRUPT line do
Message from peripheral device causes the processor to stop processing current task. Current data is stored in a temporary area called the stack. The processor deals with the interrupt. The data is then retrieved from the stack and the task is resumed. This cannot be ignored or prevented.
(used to indicate that an interrupt to the fetch/execute cycle is taking place that cannot be ignored)
what are dry runs / trace tables in systematic testing
a mental run of the program where the programmer examines the code one step at a time
an execution error is when
the program crashes due to unexpected input whilst it was running
ascii (#bits)
(7bits) 2^7=128
how to get binary for negative number
find the binary representation
flip the bits (turn the 1’s into 0’s and vice versa)
add 1
systematic testing involves
going through a progression from testing the subroutines and working your way up to testing the entire system. The sort of testing is planned in advance and followed in a logical order.
Fastest to slowest
Registers, USB/Flash Memory,CPU Cache, RAM
Registers, CPU Cache, RAM, USB/Flash Memory
what does the RESET line do
resets the computer to its initial switch on state
binary addition rules
0+0=0
1+0=1
0+1=1
1+1=1 0 (2)
what does the INTERRUPT line do
Message from peripheral device causes the processor to stop processing current task. Current data is stored in a temporary area called the stack. The processor deals with the interrupt. The data is then retrieved from the stack and the task is resumed.
(used to indicate that an interrupt to the fetch/execute cycle is taking place)
a procedural program has
a clear start and endpoint and follows through the path to give solution
three different types of programming languages
procedural, object orientated, declarative
storing video depends on the:
length / time (seconds)
frame rate (fps)
bit depth (bits)
number of pixels in one frame (pixels)
high level language
is similar to human languages easier to understand and spot errors and is more readable