Year 7 Computer Science: Functions and Logic Gates Worksheet

Computer Science
Year 7
11 questions
~22 mins
0 views0 downloads

About This Worksheet

This worksheet is designed to help you understand how functions work in programming and explore logic gates. Complete each question carefully.

Worksheet Preview

Full preview • 11 questions

Year 7 Computer Science: Functions and Logic Gates Worksheet

Subject: Computer ScienceGrade: Year 7
Name:
Date:
TeachWhizzTeachWhizzTeachWhizzTeachWhizzTeachWhizzTeachWhizzTeachWhizzTeachWhizzTeachWhizzTeachWhizzTeachWhizzTeachWhizzTeachWhizzTeachWhizzTeachWhizzTeachWhizzTeachWhizzTeachWhizzTeachWhizzTeachWhizzTeachWhizzTeachWhizzTeachWhizzTeachWhizzTeachWhizzTeachWhizzTeachWhizzTeachWhizzTeachWhizzTeachWhizzTeachWhizzTeachWhizzTeachWhizzTeachWhizzTeachWhizzTeachWhizzTeachWhizzTeachWhizzTeachWhizzTeachWhizz

Untitled Worksheet

Grade Year 7
A

Questions

This worksheet is designed to help you understand how functions work in programming and explore logic gates. Complete each question carefully.

Answer all questions in the spaces provided.
1.
Write a simple function in pseudocode that takes two numbers as input and returns their sum.
[4 marks]
2.
Describe what a function is in programming and give one example of when you might use one.
[3 marks]
3.
Complete the truth table for an AND gate with inputs A and B and output C.
[4 marks]
ABOutput
00
01
10
11
4.
Complete the truth table for an OR gate with inputs A and B and output C.
[4 marks]
ABOutput
00
01
10
11
5.
Draw a logic circuit that shows how an AND gate and an OR gate can be connected to produce a specific output. Label each gate clearly.
[6 marks]
Drawing / Sketch space
6.
Explain the difference between a function and a procedure in programming.
[3 marks]
7.
Describe a real-life example where you might use a function in programming.
[3 marks]
8.
Draw a truth table for a NOT gate with input A and output B. Label the inputs and outputs clearly.
[5 marks]
Drawing / Sketch space
9.
Identify the logic gate described: It outputs true only when exactly one of its two inputs is true.
[2 marks]
10.
Sketch a simple function in pseudocode that checks if a number is even. Write the function's name and its logic.
[4 marks]
Drawing / Sketch space
11.
Complete the truth table for an XOR gate with inputs A and B and output C.
[4 marks]
ABOutput
00
01
10
11

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