Iterative Structures

0.0(0)
studied byStudied by 12 people
0.0(0)
full-widthCall with Kai
GameKnowt Play
New
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
Card Sorting

1/12

Study Analytics
Name
Mastery
Learn
Test
Matching
Spaced

No study sessions yet.

13 Terms

1
New cards
Iteration Structure
It is also known as loop or repetition.
2
New cards
Loop
Is used in programming to repeat a
specific block until some end condition is met.
3
New cards
While loop
Do... While loop
For loop
There are three loops in C programming:
4
New cards
While
A pretest loop begins with the keyword ...
5
New cards
Test Expression
It is enclosed in parenthesis.
6
New cards
Once
The body in posttest loop would be executed .... no matter what.
7
New cards
Accumulating
is quite common in loops especially in finding out total value for a range of values entered.
8
New cards
Counting
It keeps track of number of times certain operations or instruction executed.
9
New cards
Counter Variable
It is is normally declared to count by adding 1 each time the operation is performed.
10
New cards
Counter-controlled loop
It allows some operations to be executed for a fix number of times continuously
without any interruption.
11
New cards
Initialization
Test/condition
Body
Update expression
The end part.
In a counter-controlled loop there are five essential elements:
12
New cards
For loop
It is commonly used when the number of iterations is known.
13
New cards
Code Block
Inside the braces is executed once.

Explore top flashcards

Unit 11: Evolution
Updated 861d ago
flashcards Flashcards (95)
Biology Test 2
Updated 712d ago
flashcards Flashcards (24)
Unit 6 MWH
Updated 994d ago
flashcards Flashcards (28)
CRIM EXAM 2
Updated 733d ago
flashcards Flashcards (113)
Unit 11: Evolution
Updated 861d ago
flashcards Flashcards (95)
Biology Test 2
Updated 712d ago
flashcards Flashcards (24)
Unit 6 MWH
Updated 994d ago
flashcards Flashcards (28)
CRIM EXAM 2
Updated 733d ago
flashcards Flashcards (113)