Selection is a programming construct where a section of code is run only if a condition is met. In programming, there are occasions when a decision needs to be made. Selection is the process of making a decision. The result of the decision determines which path the program will take next.
What is a selection in computer?
Selection is also called a decision. It is one of the three basic logic assemblies in computer programming. In the assembly of a selection, a question is asked, and based on the answer the program takes one of two paths of action, after which the program moves on to the next event.
What is the use of selection in computer?
Selecting is highlighting text or picking an object. For example, you can select text to copy, cut, or move that text to an alternate location or select a file you want to view. If something is selected, you can deselect text or another object by clicking somewhere else on the screen.