Loading....
|
Press & Hold to Drag Around |
|||
|
Click Here to Close |
|||
Question 1 Report
A fast-food restaurant uses a concept keyboard for taking orders at the counter.
(a) Describe how a concept keyboard, such as the one shown above, works. [2]
(b) State two advantages of using a concept keyboard instead of a standard keyboard in a fast-food restaurant. [2]
(c) State two disadvantages of using a concept keyboard. [1]
(a) How a concept keyboard works:
Each key on the concept keyboard is a large button with an image or label representing a specific item or action (such as "Burger", "Large", or "Complete Order"). [1] When the operator presses a button, it sends a signal to the computer system to add the corresponding item to the order or perform the associated action. [1]
Unlike a standard keyboard where each key represents a single character, each key on a concept keyboard triggers a predefined command specific to the application it was designed for.
(b) Two advantages of using a concept keyboard in a fast-food restaurant:
(c) Two disadvantages of using a concept keyboard:
(a) How a concept keyboard works:
Each key on the concept keyboard is a large button with an image or label representing a specific item or action (such as "Burger", "Large", or "Complete Order"). [1] When the operator presses a button, it sends a signal to the computer system to add the corresponding item to the order or perform the associated action. [1]
Unlike a standard keyboard where each key represents a single character, each key on a concept keyboard triggers a predefined command specific to the application it was designed for.
(b) Two advantages of using a concept keyboard in a fast-food restaurant:
(c) Two disadvantages of using a concept keyboard:
Question 2 Report
The diagram shows a simplified representation of the fetch stage of the fetch-decode-execute cycle.
(a) Using the diagram, describe what happens at each of the four steps shown in the fetch stage. [4]
(b) After the fetch stage, the instruction must be decoded. Describe what happens during the decode stage. [2]
(c) Give two examples of instructions that the CPU might execute during the execute stage. [2]
(d) Explain the role of the address bus, data bus and control bus during the fetch-decode-execute cycle. [3]
(a) The four steps of the fetch stage are:
(b) During the decode stage, the Control Unit takes the instruction from the MDR and interprets (decodes) it. [1] It identifies the type of operation to be performed (e.g. arithmetic, data transfer, comparison) and determines which data or memory addresses are involved, then prepares the appropriate control signals to carry out the instruction during the execute stage. [1]
(c) Two examples of instructions that may be executed:
(d) The three system buses play distinct roles during the cycle:
(a) The four steps of the fetch stage are:
(b) During the decode stage, the Control Unit takes the instruction from the MDR and interprets (decodes) it. [1] It identifies the type of operation to be performed (e.g. arithmetic, data transfer, comparison) and determines which data or memory addresses are involved, then prepares the appropriate control signals to carry out the instruction during the execute stage. [1]
(c) Two examples of instructions that may be executed:
(d) The three system buses play distinct roles during the cycle:
Question 3 Report
Two's complement is used to represent negative numbers in binary.
| Denary | 8-bit two's complement binary |
|---|---|
| 45 | |
| -45 | |
| -100 |
(a) Complete the table by converting each denary number to 8-bit two's complement binary. Show your working. [6]
(a) Converting each denary number to 8-bit two's complement binary:
45:
| 128 | 64 | 32 | 16 | 8 | 4 | 2 | 1 |
|---|---|---|---|---|---|---|---|
| 0 | 0 | 1 | 0 | 1 | 1 | 0 | 1 |
45 = 32 + 8 + 4 + 1 = 00101101. [2]
-45:
The result is 11010011. [2] This "flip and add 1" method is the standard algorithm for finding the two's complement (negative) of a binary number.
-100:
The result is 10011100. [2]
In two's complement, the most significant bit (MSB) indicates the sign: 0 for positive, 1 for negative. The range of an 8-bit two's complement number is -128 to +127.
(a) Converting each denary number to 8-bit two's complement binary:
45:
| 128 | 64 | 32 | 16 | 8 | 4 | 2 | 1 |
|---|---|---|---|---|---|---|---|
| 0 | 0 | 1 | 0 | 1 | 1 | 0 | 1 |
45 = 32 + 8 + 4 + 1 = 00101101. [2]
-45:
The result is 11010011. [2] This "flip and add 1" method is the standard algorithm for finding the two's complement (negative) of a binary number.
-100:
The result is 10011100. [2]
In two's complement, the most significant bit (MSB) indicates the sign: 0 for positive, 1 for negative. The range of an 8-bit two's complement number is -128 to +127.
Question 4 Report
(a) Perform the following binary addition. Show your working.
01101011
+ 00110101
[3]
(b) Explain what is meant by overflow in binary addition.
[2]
(c) State whether overflow has occurred in your answer to part (a). Give a reason for your answer.
[2]
(d) The result of a different binary addition is the 8-bit value 11111111. Convert this value to denary.
[1]
(e) State the maximum denary value that can be stored in a 16-bit unsigned binary number.
[2]
(a) Binary addition of 01101011 + 00110101:
Work from right to left, adding corresponding bits plus any carry from the previous column.
Carry: 0 1 1 1 0 1 1 0
0 1 1 0 1 0 1 1
+ 0 0 1 1 0 1 0 1
------------------
1 0 1 0 0 0 0 0Detailed column work (right to left):
Result: 10100000. [3]
(b) Overflow occurs when the result of an arithmetic operation exceeds the maximum value that can be stored in the available number of bits. [1] In an 8-bit register, the largest unsigned value is 255 (11111111). If a calculation produces a value above 255, there is a carry out of the most significant bit position, meaning the result cannot fit in 8 bits. [1]
(c) Overflow has not occurred. [1] The result 10100000 fits entirely within 8 bits, and there was no carry generated beyond the 8th bit position during the addition. Both operands were within the 8-bit range, and their sum (107 + 53 = 160) is still within the unsigned 8-bit range of 0 to 255. [1]
(d) 11111111 in denary: 128 + 64 + 32 + 16 + 8 + 4 + 2 + 1 = 255. [1]
(e) The maximum value in a 16-bit unsigned register is calculated as \(2^{16} - 1\). [1] This equals 65535. [1] The formula works because 16 bits can represent \(2^{16}\) = 65536 different values (from 0 to 65535), so the largest is 65535.
(a) Binary addition of 01101011 + 00110101:
Work from right to left, adding corresponding bits plus any carry from the previous column.
Carry: 0 1 1 1 0 1 1 0
0 1 1 0 1 0 1 1
+ 0 0 1 1 0 1 0 1
------------------
1 0 1 0 0 0 0 0Detailed column work (right to left):
Result: 10100000. [3]
(b) Overflow occurs when the result of an arithmetic operation exceeds the maximum value that can be stored in the available number of bits. [1] In an 8-bit register, the largest unsigned value is 255 (11111111). If a calculation produces a value above 255, there is a carry out of the most significant bit position, meaning the result cannot fit in 8 bits. [1]
(c) Overflow has not occurred. [1] The result 10100000 fits entirely within 8 bits, and there was no carry generated beyond the 8th bit position during the addition. Both operands were within the 8-bit range, and their sum (107 + 53 = 160) is still within the unsigned 8-bit range of 0 to 255. [1]
(d) 11111111 in denary: 128 + 64 + 32 + 16 + 8 + 4 + 2 + 1 = 255. [1]
(e) The maximum value in a 16-bit unsigned register is calculated as \(2^{16} - 1\). [1] This equals 65535. [1] The formula works because 16 bits can represent \(2^{16}\) = 65536 different values (from 0 to 65535), so the largest is 65535.
Question 5 Report
A central heating system in a house is controlled automatically. The diagram shows the feedback loop used by the system.
(a) Describe the process by which the automated central heating system maintains a set temperature. Include the roles of the sensor, microprocessor and actuator in your answer. [6]
(b) Explain why this is described as a feedback loop. [2]
(c) State two advantages of using an automated central heating system compared to manually controlling the heating.
[2]
(d) Explain what would happen if the temperature sensor in the system failed.
[2]
(a) The automated central heating system maintains a set temperature through a continuous feedback cycle involving three components:
(b) This is described as a feedback loop because the output of the system (the heater turning on or off) directly affects the condition being measured (the room temperature). [1] The sensor then feeds this changed condition back to the microprocessor, which adjusts its output accordingly. This creates a continuous cycle of monitoring and adjustment - the system's own actions change its input, which in turn changes its next action. [1]
(c) Two advantages of an automated system over manual control:
(d) If the temperature sensor failed, the microprocessor would stop receiving accurate temperature readings and could not compare the room temperature with the set point. [1] The feedback loop would be broken: the heater might remain permanently on (causing the room to overheat, wasting energy and potentially creating a fire hazard) or permanently off (leaving the room cold), because the system has no way to know when to switch states. [1]
(a) The automated central heating system maintains a set temperature through a continuous feedback cycle involving three components:
(b) This is described as a feedback loop because the output of the system (the heater turning on or off) directly affects the condition being measured (the room temperature). [1] The sensor then feeds this changed condition back to the microprocessor, which adjusts its output accordingly. This creates a continuous cycle of monitoring and adjustment - the system's own actions change its input, which in turn changes its next action. [1]
(c) Two advantages of an automated system over manual control:
(d) If the temperature sensor failed, the microprocessor would stop receiving accurate temperature readings and could not compare the room temperature with the set point. [1] The feedback loop would be broken: the heater might remain permanently on (causing the room to overheat, wasting energy and potentially creating a fire hazard) or permanently off (leaving the room cold), because the system has no way to know when to switch states. [1]
Question 6 Report
Embedded systems are found in many everyday devices.
(a) Describe what is meant by an embedded system. [2]
(b) State three examples of devices that contain embedded systems. For each device, describe the task the embedded system performs. [2]
(a) An embedded system is a dedicated computer system built into a larger device to perform a specific, fixed function. [1] Unlike a general-purpose computer, it is designed for one task only. It typically contains a microprocessor, a small amount of memory and input/output interfaces, and runs a fixed program stored in ROM that does not change during normal operation. [1]
(b) Devices containing embedded systems include:
(Any three valid device-plus-task pairs earn the marks.)
(a) An embedded system is a dedicated computer system built into a larger device to perform a specific, fixed function. [1] Unlike a general-purpose computer, it is designed for one task only. It typically contains a microprocessor, a small amount of memory and input/output interfaces, and runs a fixed program stored in ROM that does not change during normal operation. [1]
(b) Devices containing embedded systems include:
(Any three valid device-plus-task pairs earn the marks.)
Question 7 Report
(a) The table lists network hardware devices. Complete the table by describing the function of each device.
| Device | Function |
|---|---|
| Router | |
| Switch | |
| Network Interface Card (NIC) | |
| Wireless Access Point (WAP) |
[4]
(a) Network hardware device functions:
| Device | Function |
|---|---|
| Router | Directs (routes) data packets between different networks, reading destination IP addresses and selecting the best path for each packet to travel. It connects a local network (LAN) to wider networks such as the Internet. [1] |
| Switch | Connects devices within a single network (LAN). It reads the destination MAC address of each incoming data frame and forwards it only to the specific port where the intended device is connected, rather than broadcasting to all ports. [1] |
| Network Interface Card (NIC) | A hardware component installed in (or built into) a device that enables it to connect to a network. It provides the physical interface (wired Ethernet port or wireless antenna) and has a unique MAC address. [1] |
| Wireless Access Point (WAP) | Allows wireless (Wi-Fi) devices to connect to a wired network. It acts as a bridge, receiving wireless signals from devices and forwarding the data onto the wired network infrastructure. [1] |
(a) Network hardware device functions:
| Device | Function |
|---|---|
| Router | Directs (routes) data packets between different networks, reading destination IP addresses and selecting the best path for each packet to travel. It connects a local network (LAN) to wider networks such as the Internet. [1] |
| Switch | Connects devices within a single network (LAN). It reads the destination MAC address of each incoming data frame and forwards it only to the specific port where the intended device is connected, rather than broadcasting to all ports. [1] |
| Network Interface Card (NIC) | A hardware component installed in (or built into) a device that enables it to connect to a network. It provides the physical interface (wired Ethernet port or wireless antenna) and has a unique MAC address. [1] |
| Wireless Access Point (WAP) | Allows wireless (Wi-Fi) devices to connect to a wired network. It acts as a bridge, receiving wireless signals from devices and forwarding the data onto the wired network infrastructure. [1] |
Question 8 Report
Errors in programs can be classified into different types.
| Error type | Description | Example |
|---|---|---|
| Syntax error | ||
| Logic error | ||
| Runtime error |
(a) Complete the table by describing each type of error and giving an example. [6]
(b) State which type of error is typically the hardest to find. Explain why. [2]
(a)
| Error type | Description | Example |
|---|---|---|
| Syntax error | A mistake in the code that violates the grammar rules of the programming language, preventing the program from being compiled or interpreted. [1] | Writing pritn("Hello") instead of print("Hello"), or forgetting to close a bracket. [1] |
| Logic error | The program runs without crashing but produces incorrect results because the algorithm or reasoning in the code is wrong. [1] | Using + instead of - in a calculation, so the program adds when it should subtract. [1] |
| Runtime error | An error that occurs while the program is running, causing it to crash or stop unexpectedly. [1] | Attempting to divide a number by zero, or trying to open a file that does not exist. [1] |
(b) Logic errors are typically the hardest to find. [1] The program runs without any error messages, so the programmer receives no automatic indication of where the problem is. They must trace through the code manually or use debugging tools to identify the exact point where the output deviates from the expected behaviour. [1]
(a)
| Error type | Description | Example |
|---|---|---|
| Syntax error | A mistake in the code that violates the grammar rules of the programming language, preventing the program from being compiled or interpreted. [1] | Writing pritn("Hello") instead of print("Hello"), or forgetting to close a bracket. [1] |
| Logic error | The program runs without crashing but produces incorrect results because the algorithm or reasoning in the code is wrong. [1] | Using + instead of - in a calculation, so the program adds when it should subtract. [1] |
| Runtime error | An error that occurs while the program is running, causing it to crash or stop unexpectedly. [1] | Attempting to divide a number by zero, or trying to open a file that does not exist. [1] |
(b) Logic errors are typically the hardest to find. [1] The program runs without any error messages, so the programmer receives no automatic indication of where the problem is. They must trace through the code manually or use debugging tools to identify the exact point where the output deviates from the expected behaviour. [1]
Question 9 Report
A pixel's colour in a 24-bit bitmap image is represented using three channels.
| Colour channel | Binary value | Denary value |
|---|---|---|
| Red | 11111111 | |
| Green | 00000000 | |
| Blue | 00000000 |
(a) Complete the denary values in the table. What colour does this pixel represent? [2]
(b) State the binary and denary values for a pixel that appears white. [2]
(c) A pixel has the values Red=0, Green=255, Blue=0. What colour is this pixel? [1]
(d) Explain why 24-bit colour is sufficient for most image display purposes. [1]
(e) Calculate how many different colours can be represented using 24-bit colour depth. [1]
(f) State one disadvantage of using 24-bit colour compared to 8-bit colour. [1]
(a)
| Colour channel | Binary value | Denary value |
|---|---|---|
| Red | 11111111 | 255 |
| Green | 00000000 | 0 |
| Blue | 00000000 | 0 |
Red = 255, Green = 0, Blue = 0. [1] This pixel is pure red, because the red channel is at maximum intensity while both green and blue are at zero. [1]
(b) A white pixel has all three channels at maximum intensity:
White is the combination of all three colour channels at full intensity.
(c) Red = 0, Green = 255, Blue = 0 represents pure green, because only the green channel is at maximum while the other two are off. [1]
(d) 24-bit colour can produce over 16 million distinct colours, which closely matches the number of different colours the human eye can perceive. For most display purposes, this is more than sufficient for a photorealistic image. [1]
(e) The number of different colours representable with 24-bit colour depth:
\( 2^{24} = 16\,777\,216 \) different colours. [1]
(f) 24-bit colour requires three times as much storage per pixel as 8-bit colour (24 bits versus 8 bits), resulting in significantly larger file sizes for the same image resolution. [1]
(a)
| Colour channel | Binary value | Denary value |
|---|---|---|
| Red | 11111111 | 255 |
| Green | 00000000 | 0 |
| Blue | 00000000 | 0 |
Red = 255, Green = 0, Blue = 0. [1] This pixel is pure red, because the red channel is at maximum intensity while both green and blue are at zero. [1]
(b) A white pixel has all three channels at maximum intensity:
White is the combination of all three colour channels at full intensity.
(c) Red = 0, Green = 255, Blue = 0 represents pure green, because only the green channel is at maximum while the other two are off. [1]
(d) 24-bit colour can produce over 16 million distinct colours, which closely matches the number of different colours the human eye can perceive. For most display purposes, this is more than sufficient for a photorealistic image. [1]
(e) The number of different colours representable with 24-bit colour depth:
\( 2^{24} = 16\,777\,216 \) different colours. [1]
(f) 24-bit colour requires three times as much storage per pixel as 8-bit colour (24 bits versus 8 bits), resulting in significantly larger file sizes for the same image resolution. [1]
Would you like to proceed with this action?