Selection: GCSE Computer Science Definition
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.
Written by Robert Hampton
Computer Science Content Creator8 articlesRob has over 16 years' experience teaching Computer Science and ICT at KS3 & GCSE levels. Rob has demonstrated strong leadership as Head of Department since 2012 and previously supported teacher development as a Specialist Leader of Education, empowering departments to excel in Computer Science. Beyond his tech expertise, Robert embraces the virtual world as an avid gamer, conquering digital battlefields when he's not coding.
Share this article