Iterative Structures

0.0(0)
studied byStudied by 12 people
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.