Year 9 Computer Science: Control Structures and Logic Gates
Computer Science
Year 9
10 questions
~20 mins
0 views0 downloads
About This Worksheet
This worksheet covers control structures and logic gates, helping you understand decision-making in programming. Complete the tasks to improve your logical reasoning skills.
Worksheet Preview
Full preview • 10 questions
Year 9 Computer Science: Control Structures and Logic Gates
Subject: Computer ScienceGrade: Year 9
Name:
Date:
TeachWhizzTeachWhizzTeachWhizzTeachWhizzTeachWhizzTeachWhizzTeachWhizzTeachWhizzTeachWhizzTeachWhizzTeachWhizzTeachWhizzTeachWhizzTeachWhizzTeachWhizzTeachWhizzTeachWhizzTeachWhizzTeachWhizzTeachWhizzTeachWhizzTeachWhizzTeachWhizzTeachWhizzTeachWhizzTeachWhizzTeachWhizzTeachWhizzTeachWhizzTeachWhizzTeachWhizzTeachWhizzTeachWhizzTeachWhizzTeachWhizzTeachWhizzTeachWhizzTeachWhizzTeachWhizzTeachWhizz
Untitled Worksheet
Grade Year 9
A
Questions
This worksheet covers control structures and logic gates, helping you understand decision-making in programming. Complete the tasks to improve your logical reasoning skills.
Answer all questions in the spaces provided.
1.
Write a simple pseudocode that uses an IF statement to check if a variable 'score' is greater than or equal to 50. If it is, output 'Pass'.
[4 marks]2.
Describe in words how an ELSE statement works in programming.
[3 marks]3.
Given the following condition: IF it is raining AND it is cold, then wear a coat. Write this as a logical expression using AND.
[3 marks]4.
Draw a flowchart for a program that asks the user to enter their age and then displays 'Adult' if they are 18 or older, or 'Minor' if they are younger.
[6 marks]Drawing / Sketch space
5.
Complete the truth table for the AND gate with inputs A and B, and output C.
[4 marks]| A | B | Output |
|---|---|---|
| 0 | 0 | |
| 0 | 1 | |
| 1 | 0 | |
| 1 | 1 |
6.
Complete the truth table for the OR gate with inputs A and B, and output C.
[4 marks]| A | B | Output |
|---|---|---|
| 0 | 0 | |
| 0 | 1 | |
| 1 | 0 | |
| 1 | 1 |
7.
Draw the logic circuit for an AND gate and label the inputs and output.
[5 marks]Drawing / Sketch space
8.
Describe how a NOT gate works in digital logic.
[3 marks]9.
Sketch a simple decision-making program in pseudocode that determines if a number stored in 'num' is even or odd.
[5 marks]Drawing / Sketch space
10.
Explain the difference between a nested IF statement and an ELSE IF statement.
[4 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