Year 8 Programming and Control Structures Worksheet
Computer Science
Year 8
10 questions
~20 mins
0 views0 downloads
About This Worksheet
This worksheet focuses on understanding control structures such as if statements, loops, and logic gates in programming. Complete the questions to demonstrate your knowledge.
Worksheet Preview
Full preview • 10 questions
Year 8 Programming and Control Structures Worksheet
Subject: Computer ScienceGrade: Year 8
Name:
Date:
TeachWhizzTeachWhizzTeachWhizzTeachWhizzTeachWhizzTeachWhizzTeachWhizzTeachWhizzTeachWhizzTeachWhizzTeachWhizzTeachWhizzTeachWhizzTeachWhizzTeachWhizzTeachWhizzTeachWhizzTeachWhizzTeachWhizzTeachWhizzTeachWhizzTeachWhizzTeachWhizzTeachWhizzTeachWhizzTeachWhizzTeachWhizzTeachWhizzTeachWhizzTeachWhizzTeachWhizzTeachWhizzTeachWhizzTeachWhizzTeachWhizzTeachWhizzTeachWhizzTeachWhizzTeachWhizzTeachWhizz
Untitled Worksheet
Grade Year 8
A
Questions
This worksheet focuses on understanding control structures such as if statements, loops, and logic gates in programming. Complete the questions to demonstrate your knowledge.
Answer all questions in the spaces provided.
1.
Write a simple pseudocode snippet that uses an if statement to check if a number stored in variable 'score' is greater than 50. If it is, output 'Pass'.
[3 marks]2.
Describe a scenario in real life where a 'while' loop could be used in programming. Explain what the loop condition might be.
[4 marks]3.
Complete the truth table for an AND logic gate with inputs A and B. Fill in the outputs for all input combinations.
[4 marks]| A | B | Output |
|---|---|---|
| 0 | 0 | |
| 0 | 1 | |
| 1 | 0 | |
| 1 | 1 |
4.
Draw a flowchart that describes a program which asks the user for their age and then displays a message saying 'Adult' if the age is 18 or above, or 'Minor' if below 18.
[6 marks]Drawing / Sketch space
5.
Identify the control structure used in the following scenario: 'A game continues to run until the player chooses to exit.'
[2 marks]6.
Sketch a simple block diagram for a digital circuit that uses an OR gate to combine two signals. Label the inputs and output clearly.
[5 marks]Drawing / Sketch space
7.
Write pseudocode for a program that counts from 1 to 10 using a 'for' loop and prints each number.
[3 marks]8.
Explain the difference between an 'if' statement and a 'while' loop in programming.
[4 marks]9.
Describe how a NOT gate works in a digital circuit and what its output would be if the input is true.
[3 marks]| A | Output |
|---|---|
| 0 | |
| 1 |
10.
Complete the truth table for an OR logic gate with inputs A and B.
[4 marks]| A | B | Output |
|---|---|---|
| 0 | 0 | |
| 0 | 1 | |
| 1 | 0 | |
| 1 | 1 |
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