Year 10 Programming and Logic Gates Worksheet
Computer Science
Year 10
11 questions
~22 mins
0 views0 downloads
About This Worksheet
This worksheet tests your understanding of functions in programming and basic logic gates. Complete the questions carefully and demonstrate your knowledge clearly.
Worksheet Preview
Full preview • 11 questions
Year 10 Programming and Logic Gates Worksheet
Subject: Computer ScienceGrade: Year 10
Name:
Date:
TeachWhizzTeachWhizzTeachWhizzTeachWhizzTeachWhizzTeachWhizzTeachWhizzTeachWhizzTeachWhizzTeachWhizzTeachWhizzTeachWhizzTeachWhizzTeachWhizzTeachWhizzTeachWhizzTeachWhizzTeachWhizzTeachWhizzTeachWhizzTeachWhizzTeachWhizzTeachWhizzTeachWhizzTeachWhizzTeachWhizzTeachWhizzTeachWhizzTeachWhizzTeachWhizzTeachWhizzTeachWhizzTeachWhizzTeachWhizzTeachWhizzTeachWhizzTeachWhizzTeachWhizzTeachWhizzTeachWhizz
Untitled Worksheet
Grade Year 10
A
Questions
This worksheet tests your understanding of functions in programming and basic logic gates. Complete the questions carefully and demonstrate your knowledge clearly.
Answer all questions in the spaces provided.
1.
Write a simple Python function named 'add_numbers' that takes two arguments and returns their sum.
[4 marks]2.
Describe what a function is in programming and explain its main purpose.
[3 marks]3.
Complete the following pseudocode for a function that calculates the area of a rectangle given its length and width:
FUNCTION calculateArea(length, width)
RETURN ________________
[2 marks]4.
Explain the difference between a 'parameter' and an 'argument' in the context of functions.
[3 marks]5.
Design a simple function in pseudocode that checks if a number is even. It should return true if even, false if odd.
[4 marks]6.
Draw a logic circuit that represents the AND gate. Label the inputs as A and B and the output as Q. Use standard logic gate symbols.
[6 marks]Drawing / Sketch space
7.
Complete the truth table for a NOT gate with input A and output Q.
[4 marks]| A | Output |
|---|---|
| 0 | |
| 1 |
8.
Draw the logic circuit for an OR gate with inputs A and B and output Q. Label all parts clearly.
[6 marks]Drawing / Sketch space
9.
What is the output of an XOR gate if input A is 1 and input B is 0? Explain your answer.
[3 marks]10.
Design a truth table for a NAND gate with inputs A and B. Include all possible input combinations and the corresponding output.
[6 marks]| A | B | Output |
|---|---|---|
| 0 | 0 | |
| 0 | 1 | |
| 1 | 0 | |
| 1 | 1 |
11.
Explain how a function can help make a computer program more efficient.
[3 marks]Quick Actions
What is Remix?
Create a new worksheet based on this one. Change the grade level, topic, number of questions, or difficulty - then generate a fresh version.
- • Change grade level (Grade 6 → Grade 7)
- • Swap topics (Harry Potter → Macbeth)
- • Add more questions (10 → 15)
- • Adjust difficulty
Details
- Created
- 1/2/2026
- Updated
- 1/2/2026
- Type
- worksheet