CAPE Computer Science 2023 Unit 1 Paper 2
CAPE Computer Science 2023 Unit 1 Paper 2
Display (Monitor)
A high-quality display is crucial for an immersive
gaming experience.
Memory (RAM)
RAM allows the computer to store and quickly access
data that’s actively being used by the system.
Fetch -- the control unit get the instructions from
main memory and sends it to the CPU
Decode -- The CU breaks the instruction n down into
parts; opcode and operands
Execute -- the ALU does any logical or arithmetic
operations and the result is stored in a register or
memory
A multiplexer is a digital switch that selects one of
many input signals by a select line and forwards it
to a single output line.
5.5 is positive ~ sign = 0
exponent = 3 = 011
mantissa ~ 5.50 = 101.10
move decimal point 3 places to the left
since the exponent is 3
= 0.10110 ~ mantissa
-11 = 00001011
flip = 11110100
add 1 = 11110101
Top-Down: Breaks a big problem into smaller parts.
When x reaches 15
2 wrong sign used while i <= 14
3 assignment wrong cube= i*i*i
Output
Compiler -- Generates an executable file
Interpreter Does not produce a separate file
Error Detection
Compiler -- Shows all errors after compiling
Interpreter -- Stops after the first error