It looks like you've uploaded an image of a worksheet titled
"Programming Constructs", which contains several questions related to programming concepts. However, the image appears to be partially cut off or incomplete — some text is missing or obscured, especially in the left-hand side and bottom sections.
Despite that, I can help you answer the visible questions based on standard computer science knowledge. Let's go through each visible question and provide clear, accurate answers with explanations.
---
🔹 Question 1: What are the three basic programming constructs? (2 marks)
Answer:
The three basic programming constructs are:
1.
Sequence – Instructions are executed one after another in order.
2.
Selection – Allows the program to make decisions (e.g., if-else statements).
3.
Iteration – Repeats a set of instructions multiple times (e.g., loops).
>
✔ These are the foundational structures used in most programming languages to control the flow of execution.
---
🔹 Question 2: What is a sequence? (2 marks)
Answer:
A
sequence is a programming construct where instructions are carried out in the exact order they are written, one after the other, from top to bottom.
>
✔ Example:
> ```python
> print("Hello")
> x = 5
> y = x + 3
> ```
> This code runs line by line in sequence.
---
🔹 Question 3: What programming construct would I use to repeat the same task 5 times in a row? Explain your answer. (4 marks)
Answer:
You would use
iteration (specifically, a
loop) to repeat the same task 5 times.
>
✔ Explanation:
> Iteration allows a block of code to be repeated a specific number of times. For example, using a `for` loop:
> ```python
> for i in range(5):
> print("Task")
> ```
> This will execute the print statement exactly 5 times. The loop automatically controls the repetition, making it efficient and easy to manage.
---
🔹 Question 4: What does the term "programming constructs" mean? Explain your answer. (4 marks)
Answer:
Programming constructs are fundamental building blocks used in programming to control the flow of execution and structure the logic of a program.
>
✔ Explanation:
> They allow programmers to write clear, logical, and reusable code. The main types include:
> -
Sequence: Executes statements in order.
> -
Selection: Makes decisions using conditions (e.g., if/else).
> -
Iteration: Repeats actions (e.g., for/while loops).
>
> These constructs enable complex programs to be built from simple, manageable parts.
---
🔸 Bonus Tip:
There’s a yellow star in the top-right corner saying:
> *"Try completing FOUR questions, easiest and the rest harder."*
So this worksheet likely encourages students to attempt all four questions, possibly ranking them by difficulty.
---
✔ Final Notes:
Even though part of the image is missing, I’ve answered the visible questions thoroughly. If you can clarify or upload a clearer version of the worksheet (especially the left-side questions), I’d be happy to fill in any missing parts!
Let me know if you'd like these answers formatted for printing or adapted for a younger audience!
Parent Tip: Review the logic above to help your child master the concept of computer programming worksheet.