November 28, 2009

selection

Last modified: Monday, September 15, 2003 

Also called a decision, one of the three basic logic structures in computer programming. The other two logic structures are sequence and loop.

In a selection structure, a question is asked, and depending on the answer, the program takes one of two courses of action, after which the program moves on to the next event.

This structure is sometimes referred to as an if-then-else because it directs the program to perform in this way: If Condition A is True then perform Action X else perform Action Y.

All logic problems in programming can be solved by forming algorithms using only the three logic structures, and they can be combined in an infinite number of ways. The more complex the computing need, the more complex the combination of structures.

 
Related Categories

Procedures, Functions and Routines

Programming

Related Terms

algorithm

event

loop

program

sequence

Shopping
selection Products
Compare Products,Prices and Stores

Shop by Category:
Toys
3759 Store Offers

Wine
520 Store Offers

Personal Care
1501 Store Offers

Home Furnishings
69356 Store Offers

Perfumes and Colognes
306 Store Offers

Security Solutions