BookRags.com Literature Guides Literature
Guides
Criticism & Essays Criticism &
Essays
Questions & Answers Questions &
Answers
Lesson Plans Lesson
Plans
My Bibliography Periodic Table U.S. Presidents Shakespeare Sonnet Shake-Up
Research Anything:        
History | Encyclopedias | Films | News | Create a Bibliography | More... Login | Register | Help

Search "Loop"

Contents Navigation
 
Not What You Meant?  There are 14 definitions for False.  Also try: Until.

Loop

Print-Friendly  Order the PDF version  Order the RTF version
About 1 pages (248 words)
Control flow Summary

Bookmark and Share

Loop

The term loop applies to programming, which is the creation of software instruction for the performance of desired tasks. A loop is a series of instructions that is repeated until a certain condition results.

The programming code of loops has two variations, involving what is called the condition. The condition is a logical or mathematical equation that has a true or false outcome. The condition is used to define whether a loop is entered or exited. Typically, the true outcome will allow looping, and the false outcome will stop looping. For this to work, the condition must be capable of being changed from a true to a false outcome. One variation has the condition at the beginning of the loop's code.

Here, the code between the start and the end of the loop is acted on only if the condition is met. The other code has the condition at the end of the code. Here, the function specified by the code is performed and then the loop condition is encountered, which can stop the loop.

A loop consists of many passes through the same set or series of instructions. Each pass is called an iteration. A loop allows the computer to execute the many iterations that can comprise the loop, rather than the programmer having to execute each iteration. The result is a great saving of the programmer's time and labor. Not surprisingly, loops have become one of the basic underpinnings of programming. Loops are part of all programming languages.

This is the complete article, containing 248 words (approx. 1 page at 300 words per page).

More Information
  • View Loop Study Pack
  • 14 Alternative Definitions
  • Search Results for "Loop"
  • Add This to Your Bibliography
  • More Products on This Subject
    Control Structure
    The control structure is the name given to one of the instructions, statements, or groups of statem... more

    Control flow
    Within an imperative programming language, a control flow statement is an instruction that when exec... more


     
    Copyrights
    Loop from World of Computer Science. ©2005-2006 Thomson Gale, a part of the Thomson Corporation. All rights reserved.

    Join BookRagslearn moreJoin BookRags




    About BookRags | Customer Service | Report an Error | Terms of Use | Privacy Policy