Loading....
|
Press & Hold to Drag Around |
|||
|
Click Here to Close |
|||
Question 1 Report
(a) What is a register?
(b) List two types of register.
(c) State three functions of registers.
(d) Outline three differences between a register and main memory.
(a) What is a register?
A register is a small, very high-speed temporary storage location built inside the Central Processing Unit (CPU). It holds a single piece of data, an instruction or an address that the processor is currently working on, so that it can be accessed almost instantly during processing.
(b) Two types of register:
Other acceptable examples: Memory Address Register (MAR), Memory Data/Buffer Register (MDR/MBR), Instruction Register (IR), Index Register.
(c) Three functions of registers:
(d) Three differences between a register and main memory:
| Register | Main Memory (RAM) |
|---|---|
| Located inside the CPU | Located outside the CPU (on the motherboard) |
| Very small capacity (a few bytes) | Much larger capacity (gigabytes) |
| Fastest storage; accessed at CPU speed | Slower than a register |
| Very expensive per unit of storage | Cheaper per unit of storage |
(Any three of the above differences are acceptable.)
Answer Details
(a) What is a register?
A register is a small, very high-speed temporary storage location built inside the Central Processing Unit (CPU). It holds a single piece of data, an instruction or an address that the processor is currently working on, so that it can be accessed almost instantly during processing.
(b) Two types of register:
Other acceptable examples: Memory Address Register (MAR), Memory Data/Buffer Register (MDR/MBR), Instruction Register (IR), Index Register.
(c) Three functions of registers:
(d) Three differences between a register and main memory:
| Register | Main Memory (RAM) |
|---|---|
| Located inside the CPU | Located outside the CPU (on the motherboard) |
| Very small capacity (a few bytes) | Much larger capacity (gigabytes) |
| Fastest storage; accessed at CPU speed | Slower than a register |
| Very expensive per unit of storage | Cheaper per unit of storage |
(Any three of the above differences are acceptable.)
Question 2 Report
(a)i) What is booting?
(i) State two differences between the types of booting.
(b) What is peripheral?
(c) Give one example each of (i) input device; (ii) output device; (iii) storage devices (iv) a component found inside the system unit.
(a)(i) What is booting?
Booting is the process of starting up a computer, during which the operating system is loaded from secondary storage into main memory (RAM) so that the computer becomes ready for use. It begins when power is switched on and the system runs its start-up instructions.
(a)(ii) Two differences between the types of booting (cold vs warm booting):
| Cold booting | Warm booting |
|---|---|
| Starting the computer from a completely switched-off state (power on). | Restarting a computer that is already on, without switching off the power. |
| Full Power-On Self-Test (POST) is carried out. | POST is usually skipped or reduced. |
| Done using the power button. | Done using the Restart command or Ctrl+Alt+Del. |
(Any two differences are acceptable.)
(b) What is a peripheral?
A peripheral is any device that is connected to and works with the computer but is not part of the central processing unit. Peripherals are used to put data into the computer, get results out, or store data (for example keyboard, printer, monitor and external disk).
(c) One example each:
Answer Details
(a)(i) What is booting?
Booting is the process of starting up a computer, during which the operating system is loaded from secondary storage into main memory (RAM) so that the computer becomes ready for use. It begins when power is switched on and the system runs its start-up instructions.
(a)(ii) Two differences between the types of booting (cold vs warm booting):
| Cold booting | Warm booting |
|---|---|
| Starting the computer from a completely switched-off state (power on). | Restarting a computer that is already on, without switching off the power. |
| Full Power-On Self-Test (POST) is carried out. | POST is usually skipped or reduced. |
| Done using the power button. | Done using the Restart command or Ctrl+Alt+Del. |
(Any two differences are acceptable.)
(b) What is a peripheral?
A peripheral is any device that is connected to and works with the computer but is not part of the central processing unit. Peripherals are used to put data into the computer, get results out, or store data (for example keyboard, printer, monitor and external disk).
(c) One example each:
Question 3 Report
(a) Define logic gate.
(b) Give one example each of: (i) standard logic gate; (ii) alternative logic gate.
(c) Using P and Q as inputs and R as output:
(i) draw the logic symbol for an XOR logic gate: (ii) construct the truth table for XOR logic gate.
(d) List two uses of a logic gate.
(a) A logic gate is an electronic circuit that receives one or more binary inputs, 0 or 1, and produces a single binary output according to a specified logical rule.
(b)
(c)(i) Logic symbol for an XOR gate
The XOR gate gives an output of 1 only when the two input values are different.
R = P ⊕ Q
(c)(ii) Truth table for the XOR logic gate
| Inputs | Output | |
|---|---|---|
| P | Q | R = P ⊕ Q |
| 0 | 0 | 0 |
| 0 | 1 | 1 |
| 1 | 0 | 1 |
| 1 | 1 | 0 |
(d) Uses of logic gates:
Answer Details
(a) A logic gate is an electronic circuit that receives one or more binary inputs, 0 or 1, and produces a single binary output according to a specified logical rule.
(b)
(c)(i) Logic symbol for an XOR gate
The XOR gate gives an output of 1 only when the two input values are different.
R = P ⊕ Q
(c)(ii) Truth table for the XOR logic gate
| Inputs | Output | |
|---|---|---|
| P | Q | R = P ⊕ Q |
| 0 | 0 | 0 |
| 0 | 1 | 1 |
| 1 | 0 | 1 |
| 1 | 1 | 0 |
(d) Uses of logic gates:
Question 4 Report
(a)i) Define the term computer system.
(i) List the major components of the computer system and give one example of each.
(b)(i) List two activities involved in transferring data into information. (i) Write the following acronyms in full:
(1) EDSAC (11) EDVAC
(a)(i) Define the term computer system.
A computer system is a complete set of interconnected components (hardware, software, data and people) that work together to accept data as input, process it under the control of stored instructions, and produce information as output, as well as store the data and results for future use.
(a)(ii) Major components of the computer system, with one example each:
(Where "components" is taken narrowly as hardware units: Input unit - keyboard; Central Processing Unit - microprocessor; Output unit - monitor; Storage unit - hard disk.)
(b)(i) Two activities involved in transferring data into information:
Other acceptable activities: collecting/inputting data, editing/validating, and storing.
(b)(ii) Acronyms in full:
Answer Details
(a)(i) Define the term computer system.
A computer system is a complete set of interconnected components (hardware, software, data and people) that work together to accept data as input, process it under the control of stored instructions, and produce information as output, as well as store the data and results for future use.
(a)(ii) Major components of the computer system, with one example each:
(Where "components" is taken narrowly as hardware units: Input unit - keyboard; Central Processing Unit - microprocessor; Output unit - monitor; Storage unit - hard disk.)
(b)(i) Two activities involved in transferring data into information:
Other acceptable activities: collecting/inputting data, editing/validating, and storing.
(b)(ii) Acronyms in full:
Question 5 Report
(a) What is: (i) an array; (ii) a syntax error?
(b) Write QBASIC program that will input multiples of Three between 1 and 20 into a one-dimensional array and display the output on the screen.
(c) Convert D5FA,, to binary.
(a) Definitions
(i) An array: An array is a data structure that holds a fixed number of data items of the same data type under a single variable name, with each item (element) identified by an index or subscript. For example, one array can store many students' scores, referred to as SCORE(1), SCORE(2), and so on.
(ii) A syntax error: A syntax error is a programming error that occurs when a statement breaks the grammatical rules of the programming language (for example a misspelt keyword, a missing bracket or a wrong statement structure). Such errors are detected by the translator (compiler or interpreter) and prevent the program from running until corrected.
(b) QBASIC program: multiples of three between 1 and 20 into a one-dimensional array
The multiples of three between 1 and 20 are 3, 6, 9, 12, 15 and 18 (six values).
REM Store multiples of 3 between 1 and 20 in an array
CLS
DIM M(6)
K = 0
FOR N = 1 TO 20
IF N MOD 3 = 0 THEN
K = K + 1
M(K) = N
END IF
NEXT N
PRINT "Multiples of three are:"
FOR I = 1 TO K
PRINT M(I)
NEXT I
ENDThe loop tests each number from 1 to 20; when a number divides exactly by 3 (N MOD 3 = 0) it is stored in the next array position and later displayed.
(c) Convert \(D5FA_{16}\) to binary
Replace each hexadecimal digit with its 4-bit binary equivalent:
\[D = 1101,\quad 5 = 0101,\quad F = 1111,\quad A = 1010\]
\[\therefore D5FA_{16} = 1101\,0101\,1111\,1010_2 = 1101010111111010_2\]
Answer Details
(a) Definitions
(i) An array: An array is a data structure that holds a fixed number of data items of the same data type under a single variable name, with each item (element) identified by an index or subscript. For example, one array can store many students' scores, referred to as SCORE(1), SCORE(2), and so on.
(ii) A syntax error: A syntax error is a programming error that occurs when a statement breaks the grammatical rules of the programming language (for example a misspelt keyword, a missing bracket or a wrong statement structure). Such errors are detected by the translator (compiler or interpreter) and prevent the program from running until corrected.
(b) QBASIC program: multiples of three between 1 and 20 into a one-dimensional array
The multiples of three between 1 and 20 are 3, 6, 9, 12, 15 and 18 (six values).
REM Store multiples of 3 between 1 and 20 in an array
CLS
DIM M(6)
K = 0
FOR N = 1 TO 20
IF N MOD 3 = 0 THEN
K = K + 1
M(K) = N
END IF
NEXT N
PRINT "Multiples of three are:"
FOR I = 1 TO K
PRINT M(I)
NEXT I
ENDThe loop tests each number from 1 to 20; when a number divides exactly by 3 (N MOD 3 = 0) it is stored in the next array position and later displayed.
(c) Convert \(D5FA_{16}\) to binary
Replace each hexadecimal digit with its 4-bit binary equivalent:
\[D = 1101,\quad 5 = 0101,\quad F = 1111,\quad A = 1010\]
\[\therefore D5FA_{16} = 1101\,0101\,1111\,1010_2 = 1101010111111010_2\]
Would you like to proceed with this action?