113 Study Guide - Midterm Guide: Control Flow, Infinite Loop, Foreach Loop

6 views7 pages

Document Summary

Loop is a sequence of instructions designed to be repeated until a certain condition is met or achieved. May repeat multiple times over typically used to do certain tasks multiple times. Are used when the program is designed to count the iterations by itself. Are designed to have a controlled amount of loops, where the number of times a loop must repeat is already decided. Control flow: refers to the order in which the individual statements, instructions, or function calls of an imperative or a declarative program are executed or evaluated. Control flow statement types include: unconditional branch, conditional branch, conditional loop, subroutines, and, unconditional halt. Loop: a sequence of statements, specified once but which may be carried out several times in succession. Do while is a test after control structure: do while loop will run at least once, will test the given condition after each execution. There are two commonly used test before loops includes: while and for.

Get access

Grade+
$40 USD/m
Billed monthly
Grade+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
10 Verified Answers

Related Documents

Related Questions