Photo AI
Last Updated Sep 27, 2025
Revision notes with simplified explanations to understand Decisions in Computational Thinking quickly and effectively.
271+ students studying
In computational thinking, decisions are critical points where a program must choose between different actions based on specific conditions. These decisions influence the flow of control, determining which path the program follows. Understanding where and how decisions are made is essential for designing effective algorithms and programs.
Used to execute a block of code if a condition is true.
Example:
IF temperature > 30 THEN
PRINT "It's hot"
ELSE
PRINT "It's not hot"
ENDIF
Handles multiple conditions.
Example:
IF score >= 90 THEN
PRINT "Grade A"
ELSEIF score >= 80 THEN
PRINT "Grade B"
ELSE
PRINT "Grade C"
ENDIF
Used when multiple conditions are checked against a single variable.
Example:
CASE day OF
"Monday": PRINT "Start of work week"
"Friday": PRINT "End of work week"
"Saturday", "Sunday": PRINT "Weekend"
ENDCASE
Decisions are also made within loops using WHILE, FOR, or REPEAT constructs.
Example:
WHILE attempts < 3 AND password != correct_password
INPUT password
attempts = attempts + 1
ENDWHILE
Scenario 1: ATM Machine Problem: Dispense cash if the user's account has sufficient funds.
Decision Points:
IF balance >= withdrawal_amount THEN
DISPENSE cash
UPDATE balance
ELSE
PRINT "Insufficient funds"
ENDIF
Scenario 2: Traffic Light System Problem: Change the light based on the current state and timer.
Decision Points:
Scenario 3: Online Quiz Application Problem: Provide feedback based on the user's score.
Decision Points:
IF score >= 80 THEN
PRINT "Excellent"
ELSEIF score >= 50 THEN
PRINT "Good"
ELSE
PRINT "Needs Improvement"
ENDIF
Example: IF statements.
Example: WHILE loops depend on a condition to continue or terminate.
Example: Exiting a loop or returning from a function when a condition is met.
Example: Start → Input Temperature → Decision: Is Temperature > 30? → Yes: Print "It's hot" → No: Print "It's not hot" → End.
Enhance your understanding with flashcards, quizzes, and exams—designed to help you grasp key concepts, reinforce learning, and master any topic with confidence!
20 flashcards
Flashcards on Decisions in Computational Thinking
Revise key concepts with interactive flashcards.
Try Computer Science Flashcards2 quizzes
Quizzes on Decisions in Computational Thinking
Test your knowledge with fun and engaging quizzes.
Try Computer Science Quizzes29 questions
Exam questions on Decisions in Computational Thinking
Boost your confidence with real exam questions.
Try Computer Science Questions27 exams created
Exam Builder on Decisions in Computational Thinking
Create custom exams across topics for better practice!
Try Computer Science exam builder12 papers
Past Papers on Decisions in Computational Thinking
Practice past papers to reinforce exam experience.
Try Computer Science Past PapersDiscover More Revision Notes Related to Decisions in Computational Thinking to Deepen Your Understanding and Improve Your Mastery
96%
114 rated
Thinking Logically
Logical Conditions in Computational Thinking
406+ studying
183KViewsJoin 500,000+ A-Level students using SimpleStudy...
Join Thousands of A-Level Students Using SimpleStudy to Learn Smarter, Stay Organized, and Boost Their Grades with Confidence!
Report Improved Results
Recommend to friends
Students Supported
Questions answered