9618/33 · Oct/Nov 2023
Download PDFReal numbers are stored in a computer using floating-point representation with: • 12 bits for the mantissa • 4 bits for the exponent • two’s complement form for both the mantissa and exponent.
Write the normalised floating-point representation of +65.25 in this system. Show your working. Mantissa Exponent Working
Explain the problem that will occur in storing the normalised floating-point representation of +65.20 in this system.
Draw one line to connect each protocol to its most appropriate use. Protocol: HTTP, BitTorrent, SMTP, IMAP Use: to provide peer-to-peer file sharing when retrieving email messages from a mail server over a TCP/IP connection when transmitting hypertext documents to map MAC addresses onto IP addresses when sending email messages towards the intended destination
Outline the purpose of the Link layer in the TCP/IP protocol suite.
Describe what is meant by enumerated and pointer data types. Enumerated ...................................................................................................................................... Pointer ..............................................................................................................................................
Describe sequential and random methods of file organisation. Sequential file organisation ....................................................................................................... Random file organisation ..........................................................................................................
Outline the process of sequential access for serial and sequential files.
Describe the features of SISD and MIMD computer architectures. SISD ................................................................................................................................................. MIMD ................................................................................................................................................
This diagram represents a logic circuit.


Complete the truth table for the given logic circuit.
Simplify the given Boolean expression using Boolean algebra. Show your working.
A student buys a new computer. State one benefit to the student of a user interface and give an example. Benefit ...................................................................................................................................... Example ....................................................................................................................................
Two of the process states are the running state and the ready state. Identify one other process state.
Outline conditions under which a process could change from the running state to the ready state.
A pseudocode algorithm finds a customer account record in a random file and outputs it. The records are stored using the user-defined data type TAccount. TYPE TAccount DECLARE AccountNumber : INTEGER DECLARE LastName : STRING DECLARE FirstName : STRING DECLARE Address : STRING DECLARE ContactNumber : STRING ENDTYPE
Complete the file handling pseudocode. The function Hash() takes the customer account number as a parameter, calculates and returns the hash value. DECLARE Customer : TAccount DECLARE Location : INTEGER DECLARE AccountFile : STRING .................................................................................................. "AccountRecords.dat" ............................................................... AccountFile .......................................................... OUTPUT "Please enter an account number" INPUT Customer.AccountNumber Location ← Hash( ..............................................................................................................) SEEK ..................................................................................................................... , Location ............................................................. AccountFile, .......................................................... OUTPUT Customer // output customer record CLOSEFILE AccountFile
Define the term exception handling.
State two possible causes of an exception.
Write the infix expression for this Reverse Polish Notation (RPN) expression: 5 2 – 5 4 + * 9 /
Show how the contents of the following stack will change as the RPN expression in part (a)(i) is evaluated.
Explain how a stack can be used to evaluate RPN expressions.
A stack is to be set up using the information in the table. Identifier | Data type | Description BasePointer | INTEGER | points to the bottom of the stack TopPointer | INTEGER | points to the top of the stack Stack | REAL | 1D array to implement the stack A constant, with identifier Capacity, limits the size of the stack to 25 items.
Write the pseudocode for the required declarations.
Complete the pseudocode function Pop() to pop an item from Stack. // popping an item from the stack FUNCTION Pop()............................................................................... DECLARE Item : REAL Item ← 0 ............................................................................... BasePointer THEN Item ← ............................................................................... TopPointer ← ............................................................................... ELSE OUTPUT "The stack is empty – error" ENDIF ............................................................................... ENDFUNCTION
Compare and contrast the queue and stack Abstract Data Types (ADT).
A declarative programming language is used to represent subjects that students can choose to study. Students must choose two subjects. 01 subject(mathematics). 02 subject(physics). 03 subject(chemistry). 04 subject(computer_science). 05 subject(geography). 06 subject(history). 07 subject(english). 08 subject(biology). 09 student(tomaz). 10 student(josephine). 11 student(elspeth). 12 student(nico). 13 student(teresa). 14 student(pietre). 15 choice1(tomaz, mathematics). 16 choice1(teresa, chemistry). 17 choice1(pietre, mathematics). 18 choice1(nico, mathematics). 19 choice1(elspeth, chemistry). 20 choice2(tomaz, computer_science). 21 choice2(nico, geography). These clauses have the meanings: Clause | Meaning 01 | Mathematics is a subject. 09 | Tomaz is a student. 15 | Tomaz has chosen mathematics as his first choice. 20 | Tomaz has chosen computer science as his second choice.
Anthony is a student who would like to study history and geography. Write additional clauses to represent this information. 22 ............................................................................................................................................. 23 ............................................................................................................................................. 24 .............................................................................................................................................
Using the variable X, the goal: choice1(X, chemistry) returns X = teresa, elspeth Write the result returned by the goal: choice1(X, mathematics) X = .....................................................................................................................................
Students must choose two different subjects such that: N may choose S, if N is a student and S is a subject and N has not chosen S as the first choice. Write this as a rule. may_choose_subject(N, S) IF ............................................................................................................................................. ................................................................................................................................................... ................................................................................................................................................... .............................................................................................................................................
Artificial neural networks have played a significant role in the development of machine learning. Explain what is meant by the term artificial neural network.






