OCR H446 · Component 02 · Algorithms and programming
2.1.4 Thinking logically
Recognise decisions, build Boolean conditions and follow the paths they create.
What to revise
Practise thinking logically.
Start with these questions from the thinking logically topic pack. In the workspace, explain each idea from memory, compare your reasoning with the feedback, then revisit the concepts that need practice.
Use the pack alongside your OCR H446 algorithms and programming revision. Your self-reported confidence helps plan the next review; it is not an exam mark or predicted grade.
- Set label = 'low'. Run IF n >= 10 THEN label = 'medium'; then a separate IF n >= 20 THEN label = 'high'. What is label for n = 24, and why?Trace
- Where is a decision needed before removing an item from a queue?Apply
- A discount requires a valid ticket and age below 18. Which logical connective joins the tests?Logic
- How does IF / ELSE affect program flow?Flow
- How do two independent IF statements differ from IF / ELSE IF?Compare
- Entry is permitted from age 16. Why is age > 16 an incorrect test?Debug
RecallStride is independently produced and is not endorsed by OCR. OCR is a registered trademark of OCR. Topic content is published by its owner and has not yet had an independent academic review.