Selection: GCSE Computer Science Definition

Robert Hampton

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!

Flowchart illustrating an if-else structure in coding, with conditions checking and printing outcomes "Correct", "Wrong", or "Error" based on variable values.
Annotated example of programming selection

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

GCSE Computer Science Revision Resources

Sign up for articles sent directly to your inbox

Receive news, articles and guides directly from our team of experts.

Share this article

Robert Hampton

Author: Robert Hampton

Expertise: Computer Science Content Creator

Rob 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.

James Woodhouse

Author: James Woodhouse

Expertise: Computer Science

James graduated from the University of Sunderland with a degree in ICT and Computing education. He has over 14 years of experience both teaching and leading in Computer Science, specialising in teaching GCSE and A-level. James has held various leadership roles, including Head of Computer Science and coordinator positions for Key Stage 3 and Key Stage 4. James has a keen interest in networking security and technologies aimed at preventing security breaches.

The examiner written revision resources that improve your grades 2x.

Join now