Presentation is loading. Please wait.

Presentation is loading. Please wait.

F453 Computing Questions and Answers

Similar presentations


Presentation on theme: "F453 Computing Questions and Answers"— Presentation transcript:

1 F453 Computing Questions and Answers

2 Explain why interrupts are used in a computer system (2)
Interrupts are used to obtain processor time for a higher priority task. They are also used to avoid delays. Other answers include: Avoid loss of data As an indicator to the processor That a device needs to be serviced

3 State two sources of interrupts and explain why these sources have different job priorities (4)
SOURCE 1 – User interrupt – for example new user log on request SOURCE 2 – Power Failure/system failure REASON – New user can wait but the data must be saved before the power fails. Other answers include: Clock interrupt Software interrupt Peripheral interrupt i.e.. Printer empty.

4 Describe two reasons why scheduling is used.
Maximise number of users… with no apparent delay Maximise number of jobs processed… As quickly as possible. Other answers include Obtain efficient user of processor time dependant upon priorities

5 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 computer resources

6 Assembly language and machine code are languages used in computing
Assembly language and machine code are languages used in computing. Describe the term assembly language (2) It is a lower level language/machine specific that uses descriptive names for data stores and mnemonics for instructions. Other answers include Uses labels to allow selection Each instruction is generally translated into one machine code instruction May use Macros

7 Describe the term Machine Code (2)
Binary notation Where instructions operate on bytes of data Other answers include Set of all instructions available To the architecture.

8 State three of the tasks performed by an assembler when producing machine code. (3)
Reserves storage space for instructions and data Replaces mnemonic opcodes by machine codes Create symbol table to match label to addresses Checks syntax

9 Either an interpreter or compiler may be used with a HLL program
Either an interpreter or compiler may be used with a HLL program. Describe one feature of an interpreter. (2) Translates one line/statement… Then allows it to be run before translation of the next line OR Reports error at a time.. And stops.

10 State two features of a compiler (2)
Translates whole program as a unit Creates executable program/intermediate program Other answers include: May report a number of errors at the same time Optimisation.

11 Lexical analysis is one stage of compilation
Lexical analysis is one stage of compilation. Describe what happens during lexical analysis. (8) Once the programmer has written the code, the source program is then used as the input and tokens are created from individual symbols and from the reserved words in the program. Tokens are a fixed length string of binary digits. Once this has taken place, the variable names are loaded into a symbol table and all redundant characters such as spaces and comments are removed. The final stages of this involves error diagnostics and the code is then prepared for the syntax analysis.

12 State the three stages in order, of the machine cycles in classic Von Neumann Architecture. (2)
Fetch Decode Execute

13 Two computer architectures are reduced instruction set computer (RISC) and Complex instruction set computer (CISC) architectures. Complete the table below.

14 Compare the number of machine cycles used by RISC and CISC to complete a single instruction (2)
RISC – each task may take many cycles CISC – a task may be completed in a single cycle As instructions may be more complex that individual instructions in RISC

15 An array processor is used in some systems
An array processor is used in some systems. Explain the term array processor. (2) A processor that allows the same instruction to operate simultaneously On multiple data locations Other answers include: The same calculation on different data is very fast Single instruction multiple data.

16 Weather forecasting or airflow simulation around new aircraft.
Give one example of the type of task for which an array processor is most suitable (1) Weather forecasting or airflow simulation around new aircraft.

17 A list of cities is: Aberdeen, Belfast, Cardiff, Glasgow, Oxford, York
A list of cities is: Aberdeen, Belfast, Cardiff, Glasgow, Oxford, York. Show the steps of a serial search for York in the list. (2) Start at Belfast Look at each word in turn Until York is found.

18 A list of cities is: Aberdeen, Belfast, Cardiff, Glasgow, Oxford, York
A list of cities is: Aberdeen, Belfast, Cardiff, Glasgow, Oxford, York. Show the steps of a binary search for York in the list. (3) Look at the middle (Cardiff. Glasgow,) York is in second half of list Repeat halving Until York is found.

19 Explain one advantage of a binary search compared with a serial search when searching for an item in any large set of data (3) Usually faster because Half the data is discarded at each step/fewer items are checked.

20 Add data item at position ‘pointer’
A stack contains a number of data items. List the steps needed to attempt to add one data item to the stack. (3) If stack is full Report error and stop Increment pointer Add data item at position ‘pointer’

21 Explain how a quick sort can be used to put a set of numbers into ascending numerical order. You may use the following set of numbers: (5)

22 Give the name for one other method of sorting used in computing (1)
Insertion sort

23 State the traversal that should be used to obtain the reverse polish notation form from a binary tree. (1) Post order

24 Other than a binary tree, state what data structure may be associated with RPN (1)
Stack

25 State a symbol, often used in mathematical expressions that is not required when working with RPN
Brackets

26 A program in a particular assembly language includes the instructions: JMP CD (jump to instruction labelled CD) and CD ADD 41 ( add number 41 to number in accumulator) Explain the term opcode and give one example from information given. (2) Opcode is the mnemonic part of the instruction and it indicates what is it to do. The example given is JMP/ADD

27 State the type of addressing used by the instruction AND 41 (1)
Immediate

28 State the meaning of the term symbolic addressing and give one example from the information given.
The use of characters to represent the address of a store location. The example is CD.

29 Explain the purpose of the accumulator (2)
Temporary storage within ALU and it holds the data being processed. IT also deals with the input and output in the processor.

30 Describe indexed addressing (3)
Uses the index register and an absolute address to calculate addresses to be used

31 State the meaning of direct addressing (1)
Instruction gives to address to be used.

32 Explain why it is not possible to only use direct addressing in assembly languages (2)
Because the number of addresses available is limited by the size of the address field. Code is not relocatable.

33 Explain the term data dictionary and give two examples of the information stored.(4)
A data dictionary is a file containing descriptions of data in the database it is used by database managers when altering the database structure. It may include names of tables/columns and may define access rights. Other examples may include: Identifies foreign keys Identifies indexes Meaning of data columns Relationship between data.

34 Data description Language DDL
It has been decided to start selling pet toys. Details of toys and their suppliers need to be added to the database. State the language used to create the table TOY (1) Data description Language DDL

35 Give three benefits to a relational database compared with flat files
Avoid data duplication Easier to change data Data can be added easily


Download ppt "F453 Computing Questions and Answers"

Similar presentations


Ads by Google