COMPROG WEEK 3 (Repetitive structures)

0.0(0)
Studied by 0 people
call kaiCall Kai
Locked
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
GameKnowt Play
Card Sorting

1/12

encourage image

There's no tags or description

Looks like no tags are added yet.

Last updated 11:53 AM on 8/16/26
Name
Mastery
Learn
Test
Matching
Spaced
Call with Kai
Chat

No analytics yet

Send a link to your students to track their progress

13 Terms

1
New cards

Loops

used to execute a set of statements many times.

2
New cards

while loop

First checks the condition, then executes the body ; utilized when we don't know how many iterations the loop will take.

<p>First checks the condition, then executes the body ; utilized when we don't know how many iterations the loop will take.</p>
3
New cards

for loop

Firstly initializes, then, condition check, execute body, update. ; a repetition control structure that allows us to write a loop that is executed a specific number of times. The loop enables us to perform n number of steps together in one line.

<p>Firstly initializes, then, condition check, execute body, update. ;  a repetition control structure that allows us to write a loop that is executed a specific number of times. The loop enables us to perform n number of steps together in one line.</p>
4
New cards

do-while loop

Firstly, execute the body then condition check ; is exit controlled

<p>Firstly, execute the body then condition check ; is exit controlled</p>
5
New cards

while loop, for loop, do while loop

3 types of loops

6
New cards

flow diagram of while loop

knowt flashcard image
7
New cards

flow diagram of for loop

knowt flashcard image
8
New cards

flow diagram od do while loop

knowt flashcard image
9
New cards

Hello World Hello World Hello World Hello World Hello World ( each in each line)

guess output :

<p>guess output : </p>
10
New cards

no output

guess output :

<p>guess output : </p>
11
New cards

152 ; 6; 257 ; 7; 358 ; 8; 459; 9

guess output :

<p>guess output : </p>
12
New cards

Hello World Hello World Hello World Hello World Hello World

guess output

<p>guess output</p>
13
New cards

Hello World

guess output

<p>guess output</p>