Selection: GCSE Computer Science Definition
Written by: Robert Hampton
Reviewed by: James Woodhouse
Published
Read time
1 minutes
What is selection?
In GCSE Computer Science, selection is defined as a way to control the flow of a program based on certain conditions. In programming, the outcome of a condition determines which block of code the program runs next. This is useful for things like checking if data is valid, making calculations, and responding to user choices in a program.
In programming, we use 'if' statements for selection. For example, a game might have an 'if' statement that says "if the player's score is greater than 100, show the 'You Win!' message". So, the program checks the player's score, and if it's over 100, it displays the winning message. This is selection in action!
Selection Revision Resources to Ace Your Exams
Explore selection in more detail and master other key-related terms such as sequence & iteration. Challenge yourself with our expertly created topic questions and reinforce your learning with our interactive flashcards.
Sign up for articles sent directly to your inbox
Receive news, articles and guides directly from our team of experts.
Share this article