9618/33 · Oct/Nov 2024
Download PDFNumbers are stored in a computer using binary floating-point representation with: • 10 bits for the mantissa • 6 bits for the exponent • two’s complement form for both the mantissa and the exponent.
Calculate the normalised binary floating-point representation of +201.125 in this system. Show your working. Mantissa Exponent Working
Calculate the denary value of the given normalised binary floating-point number. Show your working. Mantissa: 1 0 1 0 1 1 0 0 1 1 Exponent: 0 0 0 1 0 1 Working Answer
Reduced Instruction Set Computers (RISC) is a type of processor. Identify four features of a RISC processor. 1 2 3 4
Describe circuit switching as a method of data transmission.
State one benefit and one drawback of circuit switching as a method of data transmission. Benefit Drawback
The TCP/IP protocol may be viewed as a stack that contains four layers: Application, Transport, Internet, Link. Describe how the layers of the TCP/IP protocol stack interact with each other.
Explain what is meant by a hashing algorithm in the context of file access.
The use of a hashing algorithm can result in the same storage location being identified for more than one record. Outline two methods of overcoming this issue. 1 2
Describe the user-defined data type set.
Write pseudocode statements to declare the set data type, SymbolSet, to hold the following set of mathematical operators, using the variable Operators. + – * / ^
The truth table for a logic circuit is shown. INPUT OUTPUT A B C D T 0 0 0 0 0 0 0 0 1 1 0 0 1 0 0 0 0 1 1 1 0 1 0 0 0 0 1 0 1 0 0 1 1 0 0 0 1 1 1 0 1 0 0 0 0 1 0 0 1 1 1 0 1 0 0 1 0 1 1 1 1 1 0 0 0 1 1 0 1 1 1 1 1 0 0 1 1 1 1 1
Write the Boolean logic expression that corresponds to the given truth table as the sum-of-products. T =
Complete the Karnaugh map (K-map) for the given truth table.
Draw loop(s) around appropriate group(s) in the K-map to produce an optimal sum-of-products.
Write the Boolean logic expression from your answer to part (c) as the simplified sum-of-products. T =
Use Boolean algebra to write your answer to part (d)(i) in its simplest form. T =
Describe the process of segmentation for memory management.
Explain what is meant by disk thrashing.
A veterinary surgery wants to create a class for individual pets. Some of the attributes required in the class are listed in the table. Attribute | Data type | Description PetID | STRING | unique ID assigned at registration PetType | STRING | type of pet assigned at registration OwnerTelephone | STRING | telephone number of owner assigned at registration DateRegistered | DATE | date of registration


State one reason why the attributes would be declared as PRIVATE.
Complete the class diagram for Pet, to include: • an attribute and data type for the name of the pet • an attribute and data type for the name of the owner • a method to create a Pet object and set attributes at the time of registration • a method to assign a pet ID • a method to assign the date of registration • a method to return the pet name • a method to return the owner’s telephone number. Pet PetID : STRING PetType : STRING OwnerTelephone : STRING DateRegistered : DATE .............................................................. : .............................................................. .............................................................. : .............................................................. ................................................................................................................................. ................................................................................................................................. ................................................................................................................................. ................................................................................................................................. .................................................................................................................................
Several syntax diagrams are shown.



Complete the Backus-Naur Form (BNF) for the given syntax diagrams. <operator> ::= .................................................................................................................. ................................................................................................................................................... <label> ::= ......................................................................................................................... ................................................................................................................................................... <equation> ::= .................................................................................................................. ...................................................................................................................................................
A new syntax rule, password, is required. It must begin with a letter or a symbol, followed by a digit and end with one or two symbols. Draw a syntax diagram for password.
Write the BNF for password.
The following diagram shows an ordered binary tree.


A linked list of nodes is used to store the data. Each node consists of a left pointer, the data and a right pointer. –1 is used to represent a null pointer. Complete this linked list to represent the given binary tree.
A user-defined record structure is used to store the nodes of the linked list in part (a). Complete the diagram, using your answer for part (a).
The linked list in part (a) is implemented using a 1D array of records. Each record contains a left pointer, data and a right pointer. The following pseudocode represents a function that searches for an element in the array of records BinTree. It returns the index of the record if the element is found, or it returns a null pointer if the element is not found. Complete the pseudocode for the function. FUNCTION SearchTree(Item : STRING) ........................................................................ NowPtr ← ......................................................................................................................... WHILE NowPtr <> -1 IF ..................................................................................................................... THEN NowPtr ← BinTree[NowPtr].LeftPtr ELSE IF BinTree[NowPtr].Data < Item THEN ......................................................................................................................... ELSE RETURN NowPtr ENDIF ENDIF ENDWHILE RETURN NowPtr ENDFUNCTION






