Computers carry out comparisons - Edexcel - GCSE Computer Science - Question 2 - 2021 - Paper 1
Question 2
Computers carry out comparisons.
(a) Complete the truth table.
X Y Z Y AND Z X OR (Y AND Z)
0 0 0 0
0 1 0 0
0 1 1 1
1 0 0 0
1 1 0 0
1 1 1 1
0 0 ... show full transcript
Worked Solution & Example Answer:Computers carry out comparisons - Edexcel - GCSE Computer Science - Question 2 - 2021 - Paper 1
Step 1
Complete the truth table.
96%
114 rated
Only available for registered users.
Sign up now to view full answer, or log in if you already have an account!
Answer
To complete the truth table, we need to calculate the values for the columns 'Y AND Z' and 'X OR (Y AND Z)'.
Y AND Z: This is true (1) only when both Y and Z are true. Below is the completed column for 'Y AND Z':
X
Y
Z
Y AND Z
0
0
0
0
0
1
0
0
0
1
1
1
1
0
0
0
1
1
0
0
1
1
1
1
0
0
1
0
0
1
0
0
X OR (Y AND Z): This column is true if either X is true or (Y AND Z) is true. Below is the completed column for 'X OR (Y AND Z)':
X
Y
Z
Y AND Z
X OR (Y AND Z)
0
0
0
0
0
0
1
0
0
0
0
1
1
1
1
1
0
0
0
1
1
1
0
0
1
1
1
1
1
1
0
0
1
0
0
0
1
0
0
0
Step 2
State the name of the component of the CPU that performs comparisons.
99%
104 rated
Only available for registered users.
Sign up now to view full answer, or log in if you already have an account!
Answer
The component of the CPU that performs comparisons is the Arithmetic Logic Unit (ALU).
Step 3
Complete this model, which is used by all computers.
96%
101 rated
Only available for registered users.
Sign up now to view full answer, or log in if you already have an account!
Answer
The model can be completed as follows:
Input → Processor → Output.
Step 4
State the function of cache memory.
98%
120 rated
Only available for registered users.
Sign up now to view full answer, or log in if you already have an account!
Answer
The function of cache memory is to store frequently accessed data and instructions to speed up processing by reducing the time it takes to access data from the main memory.