Christmas assessment 2017 Flashcards

1
Q

state five different scheduling algorithms

A
  • first come first served
  • round robin
  • shortest job first
  • shortest remaining time
  • multilevel feed back queues
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

what is the propose of scheduling?

A
  • to make the most efficient use of the processor
  • to be fair to all applications
  • to provide a reasonable response time
  • prevent processes from failing to run/deadlock/starvation.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

what is paging?

A
  • splitting parts of a program into equal sized pieces

- uses physical divisions

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

what is segmentation?

A

-splitting parts of a program into unequal sized pieces

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

what are the similaritys of paging and segmentation?

A
  • both are ways of splitting up memory
  • both use virtual memory to swap parts of programs
  • allows programs that are larger than memory to run
  • allows programs to be stored in memory non contiguosly
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

explain the fetch-decode-execute cycle.

A

fetch- the next instruction is fetched from main memory
decode- the instructions are translated/ split into opcode and operand
execute- the opcode is carried out on the operand

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

what are the registers that are used in the Von Neumann architecture?

A
  • program counter
  • memory address register
  • memory data register
  • current instruction register
  • accumulator
  • index register
  • interrupt register
  • memory buffer register
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

features of cisc

A
  • cisc is more complex
  • cisc has a longer instruction set
  • cisc had many address modes
  • cisc may have more registers
  • cisc takes many cycles to complete one instruction
  • cisc has a varable number of bytes
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

features of risc

A
  • risc is simpler
  • risc has a shorter instruction set
  • risc request more ram
  • risc takes one machine cycle to complete one instruction
  • risc has a fixed number of bytes
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

what are the three basic programming constructs?

A

iteration- FOR, WHILE, REPEAT UNTIL
selection- IF,SWITCH,CASE,SELECT
sequence- line 1, line 2, line 3

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

what is abstraction?

A

abstraction is the process of separating ideas from reality this is a means of hiding detail and only using relevant information it is a representation of reality showing important features and excluding irreverent ones

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

how can programmers use re-usable components?

A

software is modular for example objects and functions. modules can be transplanted into new software or can be shared through the use of program libraries

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

explain two advantages of re-using components.

A

modules are already tested so programs are more reliable.

less development time as programs can be shorter and modules can be shared.

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

what is an identifier?

A

a name or symbol given to a variable/subroutine.

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

what is +?

A

a concatenation operator

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

what does x = “ “ do?

A

it initialises the value of x giving it a starting value