Year 11 Computer Science Worksheet: Control Structures in Programming
Computer Science
Year 11
11 questions
~22 mins
0 views0 downloads
About This Worksheet
This worksheet covers key concepts related to control structures, including if statements, loops, and logic gates. Complete each task to demonstrate your understanding.
Worksheet Preview
Full preview • 11 questions
Year 11 Computer Science Worksheet: Control Structures in Programming
Subject: Computer ScienceGrade: Year 11
Name:
Date:
TeachWhizzTeachWhizzTeachWhizzTeachWhizzTeachWhizzTeachWhizzTeachWhizzTeachWhizzTeachWhizzTeachWhizzTeachWhizzTeachWhizzTeachWhizzTeachWhizzTeachWhizzTeachWhizzTeachWhizzTeachWhizzTeachWhizzTeachWhizzTeachWhizzTeachWhizzTeachWhizzTeachWhizzTeachWhizzTeachWhizzTeachWhizzTeachWhizzTeachWhizzTeachWhizzTeachWhizzTeachWhizzTeachWhizzTeachWhizzTeachWhizzTeachWhizzTeachWhizzTeachWhizzTeachWhizzTeachWhizz
Untitled Worksheet
Grade Year 11
A
Questions
This worksheet covers key concepts related to control structures, including if statements, loops, and logic gates. Complete each task to demonstrate your understanding.
Answer all questions in the spaces provided.
1.
Write a simple pseudocode example of an if statement that checks if a variable 'score' is greater than or equal to 50. If true, it should print 'Pass'.
[3 marks]2.
Explain the difference between a 'for' loop and a 'while' loop in programming. Provide one example scenario where each would be appropriate.
[4 marks]3.
Write pseudocode for a program that repeatedly asks a user to enter a number until they input a negative number.
[4 marks]4.
Complete the truth table for an AND gate with two inputs, A and B, and one output, Q. Fill in the missing values:
[3 marks]| A | B | Output |
|---|---|---|
| 0 | 0 | |
| 0 | 1 | |
| 1 | 0 | |
| 1 | 1 |
5.
Draw a logic circuit for an OR gate with two inputs. Label each part clearly and include the output.
[5 marks]Drawing / Sketch space
6.
Describe a real-life scenario where an 'if' statement could be used in a computer program. Write the pseudocode for this scenario.
[4 marks]7.
Sketch a flowchart for a program that determines if a number entered by the user is even or odd.
[6 marks]Drawing / Sketch space
8.
Write pseudocode for a loop that counts from 1 to 10 and displays each number.
[3 marks]9.
Explain what a nested loop is and give a simple example scenario where nested loops are useful.
[4 marks]10.
Complete the truth table for an XOR gate with inputs A and B, and output Q.
[3 marks]| A | B | Output |
|---|---|---|
| 0 | 0 | |
| 0 | 1 | |
| 1 | 0 | |
| 1 | 1 |
11.
Draw a flowchart for a program that checks if a number is positive, negative, or zero.
[6 marks]Drawing / Sketch space
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