Summer Exam Specific Flashcards
What occurs during the fetch stage? (4 things)
- address from the program counter is copied to the memory address register
- the instruction held at that address is copied to the memory data register
- simultaneously the contents of the program counter is increased by 1
- the value of the memory data register is copied to the current instruction register
What occurs during the decode stage?
the contents of the CIR is split into opcode and operand, happens in the decoder
Addresses sent to MAR, Actual data to MDR or ALU/ACC
What occurs during the execute phase?
the opcode is executed on the data
What is the clock speed?
the number of clock cycles completed per second
What is cache memory?
the CPU’s onboard memory which can be accessed a lot faster than main memory
What is the function of the STA mnemonic?
to store the value in the accumulator at the given memory address
What is the function of the BRP mnemonic? (2 things)
- to branch to a given address if the value in the accumulator is positive
- it is a conditional branch
What is the function of the opcode? (2 things)
- to specify the instruction to be performed and the addressing mode
- the operand holds a value, related to the data on which the instruction is to be performed
What are the 4 addressing modes?
immediate addressing
direct addressing
indirect addressing
indexed addressing
What is a class? (2 things)
- a template for an object that defines the state and behaviour of an object
- on object is an instance of a class
What are 2 disadvantages of object orientated languages?
- requires a different style of thinking, which can be difficult for programmers accustomed to other paradigms to pick up
- generally unsuitable for smaller problems
What does ROM stand for?
read only memory
What is meant by the term non-volatile in storage?
information is not lost when power is lost
Is ROM volatile or non-volatile?
non-volatile
What are the 3 functions of the BIOS when running tests upon computer start up?
- POST which ensures all hardware is correctly connected and functional
- checks the CPU clock, memory and processor
- tests for external memory devices
What does POST stand for?
power on self test
Which of these scheduling algorithm are pre-emptive or non pre-emptive?
FCFS, SRT, SJF, MLFQ, RR
pre-emptive - RR, SRT, MLFQ
non-pre-emptive - FCFS, SJF
What is an advantage of using multilevel feedback queues for scheduling?
hard to implement
What is an advantage of using multilevel feedback queues for scheduling?
services most urgent interrupts first
What is server side processing?
when a client sends information to a server for processing
What is client side processing?
when information is processed on a local device
What is the pagerank algorithm?
the algorithm used to determine the order, when showing web results for a search engine query
What 2 factors determine a page rank?
- the number of incoming links it has from other web pages
- the page rank of the web pages that link to it
What are protocols?
a set of rules defining how 2 devices communicate with each other