F453 Explain Flashcards
Explain why interrupts are used in a computer system.
To obtain processor time... For a higher priority task, To avoid delays, To avoid loss of data, As an indicator to the processor… That a device needs to be serviced.
Explain why jobs are given different priorities when in a job queue.
Some jobs are more urgent than others,
Priorities are used to maximise the use of the computer resources.
Explain the term array processor.
A processor that allows the same instruction to operate simultaneously…
…on multiple data locations,
The same calculation on different data is very fast,
Single Instruction Multiple Data (SIMD).
Explain one advantage of a binary search compared with a serial search when searching for an item in any large set of data.
(usually) faster because…
…half of data is discarded at each step/fewer items are checked.
Explain how quick sort can be used to put a set of numbers into ascending numerical order.
You may use these set of numbers to help explain the quick sort routine.
30 9 46 14 22
Highlight first number in the list (the ‘search number’)
pointer at each end of list,
Repeat:
Compare numbers being pointed to…
…if in wrong order, swap,
Move pointer of non-search number,
Until pointers coincide so search number in correct position,
Split list into 2 sublists,
Quick sort each sublist,
Repeat until all sublists have a single number,
Put sublists back together.
Explain the term inheritance.
A class has all the attributes and operations of its superclass…
…and may also have attributes & operations of its own,
Example…
Explain the term object.
An instance of a class,
A real-world entity,
Holds attributes and methods.
Explain the term class.
A template for…
…a set of objects…
…that have state and behaviour.
Explain the term op code.
The mnemonic part of the instruction/that indicates what it is to do/code for the operation.
Explain the purpose of the accumulator.
Temporary storage (within ALU),
Holds data being processed/used during calculations,
Deals with the input and output in the processor.
Explain why it is NOT possible to use ONLY direct addressing in assembly languages.
Number of addresses available is limited…
…by the size of the address field
Code is not relocatable/code uses fixed memory locations.
Explain the use of primary keys in database.
Unique identifier
Explain the use of foreign keys in database.
Primary key from one table…
…used as an attribute in another…
…to link tables/provide relationship between tables.
Explain the term data dictionary in databases and give two examples of the information it stores.
A file containing descriptions of data in database, Used by database managers… …when altering database structure, Uses metadata to define the tables. Examples: Names of tables/columns, Characteristics of data (eg length, data type), Restrictions on values in columns Meaning of data columns, Relationships between data, Which programs can access data, Identifies primary keys, Identifies foreign keys, Identifies indexes, Defines access rights.
Explain the purpose of a translator
- convert from source code…
- …to object code
- detect errors in source code
Explain why intermediate code may be more useful than executable code
• can run on a variety of computers
• same intermediate code can be obtained from
different high level languages
• improves portability
Explain the term co-processor
- an additional processor
- …used for a specific task
- improves processing speed by executing concurrently
- eg maths co-processor/floating point accelerator
Explain the term backtracking and give one example of backtracking
- after finding a solution (to a goal)
- go back and follow an alternative path…
- …to attempt to find another solution
- (after step 6) step 7 is the same as step 1
Explain the term mnemonics
- a code that is easily remembered…
- …used to give the opcode/instruction
- e.g. ADD
Explain the term flow-control
• the order in which instructions are executed
• the order may be changed by a jump
instruction/conditional jump instruction
Explain why Unified Modelling Language (UML) is used
• a standard way to present (information)…
• …the design of a system…
• …which is visual, so easy to understand
• allows systems analysts, programmers and clients to
communicate
• makes system maintenance easier…
• …when modifying a system
In the context of printing, explain why spooling is used
output data to disk drive/storage device
for printing at another time
to allow sharing/on a network
job references stored in a queue/buffer
avoids delays / avoids speed mismatch
as printers are relatively slow
jobs can be prioritised
Explain one problem that may occur using paging and segmentation
disk threshing
more time spent swapping pages than processing
computer may ‘hang’
Explain the term intermediate code and its use.
simplified code / partly translated code…
…which can be run on any computer/virtual machine/improves portability…
…using an interpreter
sections of program can be written in different languages
runs more slowly than executable code
Explain the term register
a location in the processor
used for a particular purpose
(temporarily) stores data/or control information
explained example of contents held by named register