Calculate the normalised binary floating-point representation of +201.125 in this system Show your working
Mantissa: 0110010010, Exponent: 001000. Also award working marks for converting to binary: 11001001.001; exponent shift: ×2⁸
Calculate the denary value of the given normalised binary floating-point number Show your working Mantissa: 1010110011 Exponent: 000101
–20.8125
Identify four features of a RISC processor
Low number of instruction formats; Single-clock cycle instructions; Fixed-length instructions; Many general-purpose registers
Describe circuit switching as a method of data transmission
A dedicated circuit is required; established before transmission begins; lasts for the whole transmission; data travels the same route continuously; usually bidirectional
State one benefit and one drawback of circuit switching
Benefit: No need to reassemble data; arrives in order. Drawback: No other transmission can use the circuit when it’s in use
Describe how the layers of the TCP/IP protocol stack interact with each other
Each layer accepts input from the layer above or below; interfaces between layers only interact directly; headers are added as packets move down the layers; operations handled by software; user interacts at the application layer; hardware at the link layer
Explain what is meant by a hashing algorithm in the context of file access
A mathematical formula used to calculate an address from a key field
Outline two methods of overcoming hash collisions
Describe the user-defined data type set
A composite data type of unordered elements of the same data type; supports set operations like union and intersection
Write pseudocode statements to declare the set data type SymbolSet to hold the following set of mathematical operators using the variable Operators
TYPE SymbolSet = SET OF CHAR; DEFINE Operators (‘+’, ‘-‘, ‘*’, ‘/’, ‘^’) : SymbolSet
Write the Boolean logic expression that corresponds to the given truth table as the sum-of-products
T = A.B.C.D + A.B.C.D + A.B.C.D + A.B.C.D + A.B.C.D + A.B.C.D
Complete the Karnaugh map for the given truth table
See grid in mark scheme – filled correctly with 1s and 0s
Draw loop(s) around appropriate group(s) in the K-map to produce an optimal sum-of-products
Correct groups drawn around adjacent 1s
Write the Boolean logic expression from your answer to part (c) as the simplified sum-of-products
T = A.D + B.D
Use Boolean algebra to write your answer to part (d)(i) in its simplest form
T = D.(A + B)
Describe the process of segmentation for memory management
Logical address space divided into segments; each has a name and size; during execution segments are mapped to physical memory using a segment map table; segments are indexed with offsets
Explain what is meant by disk thrashing
Occurs when excessive paging happens in virtual memory; high disk access rates; more time spent swapping pages than processing
State one reason why the attributes would be declared as PRIVATE
To ensure that the attributes are only accessible using the class’s own methods/within the class
Complete the class diagram for Pet to include additional attributes and methods
Attributes: PetName : STRING, OwnerName : STRING; Constructor(); SetPetID(APetID : STRING); SetDateRegistered(RegDate : DATE); GetPetName(); GetOwnerTelephone()
Complete the BNF for the given syntax diagrams
<operator> ::= + | – | * | /; <label> ::= <letter><digit> | <letter><digit><digit>; <equation> ::= <label> = <label><operator><label>
</label></operator></label></label></equation></digit></digit></letter></digit></letter></label></operator>
Draw a syntax diagram for password
Starts with letter or symbol, then digit, then one or two symbols – see diagram
Write the BNF for password
<password> ::= <letter><digit><symbol> | <letter><digit><symbol><symbol> | <symbol><digit><symbol> | <symbol><digit><symbol><symbol>
</symbol></symbol></digit></symbol></symbol></digit></symbol></symbol></symbol></digit></letter></symbol></digit></letter></password>
Complete the linked list to represent the given binary tree
Add 4 more nodes with correct data and pointers for Orange, Yellow, Indigo, Violet; use -1 for null pointers