Selection In Programming - KS3 Computer Science Revision - BBC
Maybe your like
In this guide
- Revise
- Test
Pages
- Selection
- IF statements
- IF...ELSE
- if…else in Python
- Using ELSE IF to provide more choices
Selection
An algorithmcloseA sequence of logical instructions for carrying out a task. In computing, algorithms are needed to design computer programs. is a plan, a set of step-by-step instructionscloseA single action that can be performed by a computer processor. designed to solve a problem. When designing algorithms there are three basic building blocks (constructs) that can be used:
- sequencingcloseCreating a set of instructions to complete a task.
- selectioncloseA decision within a computer program when the program decides to move on based on the results of an event.
- iterationcloseIn computer programming, this is a single pass through a set of instructions.
Algorithms are used to help design programscloseSequences of instructions for a computer. that perform particular tasks.
What is selection?
An explanation of selection, as used in algorithms and programming
Selection is a decision or question.
At some point, a program may need to ask a question because it has reached a step where one or more options are available. Depending on the answer given, the program will follow a certain step and ignore the others.
Why is selection important?
Key factSelection allows there to be more than one path through a program.Many solutions feature several choices or decisions. These decisions lead to different paths through the program. These paths represent the result of making a choice. Without selection it would not be possible to include different paths in programs, and the solutions we create would not be realistic.
Selection in programming
Once an algorithm has been designed and perfected, it must be translated – or programmedcloseThe process of writing computer software. – into code that a computer can read.
We create programs to implementcloseTo put into effect. algorithms. Algorithms consist of steps, where programs consist of statementscloseThe smallest element of a programming language which expresses an action to be carried out..
Selection is implemented in programming using IF statements.
Next pageIF statementsMore guides on this topic
- Introduction to programming
- Programming basics
- Iteration in programming
- Boolean logic
- Arrays and lists
- Procedures and functions
- Writing error-free code
Related links
- Jobs that use Computer Science
- BBC Click
- BBC Technology news
- Tech Tent
- Headsqueeze
- Khan Academy
- Raspberry Pi
- Code Club Subscription
- Educational App Store Subscription
Tag » What Is Selection In Computer Science
-
Selection - AQA - GCSE Computer Science Revision - BBC Bitesize
-
Selection - Computer Science GCSE GURU
-
Selection In Programming | Types & Importance
-
[PDF] Selection In Programming
-
What Is Selection In Programming? - Quora
-
Selection - Isaac Computer Science
-
What Is Selection In Programming? - FutureLearn
-
What Is Selection? - Webopedia
-
Selection - Bits Of
-
Selection Strategy - Computer Science Wiki
-
Computer Science: Sequences, Selections, And Loops - GCFGlobal
-
5 Minutes To Code: Programming Basics "Selection" - YouTube
-
Selection Algorithm - Wikipedia