

Repetition with While
Presentation
•
Computers
•
9th - 10th Grade
•
Medium
Calum Gordon
Used 36+ times
FREE Resource
16 Slides • 28 Questions
1
Using conditional loops

2
3
4
Multiple Select
In this lesson I am going to learn to ... ?
Use repetition in algorithms
Use repetition in code
Use repetition in flowcharts
5
6
Multiple Select
Choose all the main program control structures you should be familiar with ...
sequence
selection
repetition
recursion
reflection
7
Multiple Select
What other ways might looping be referred to?
repetition
iteration
recursion
selection
8
9
Multiple Select
What are the two main types of loop?
condition-controlled
count-controlled
code-controlled
character-controlled
10
11
Fill in the Blanks
Type the Python keyword associated with a condition-controlled loop.
Type answer...
12
Multiple Choice
What type of condition is used by this type of loop?
Boolean
arithmetic
logical
numeric
13
14
15
Fill in the Blanks
How many times will "Hello World" appear?
Type answer...
16
Fill in the Blanks
What is the loop variable?
Type answer...
17
Multiple Choice
Which line of code is equivalent to:
count = count + 1
count += 1
count ++
count =+ 1
count + 1
18
19
Multiple Select
For which of these situations would it be best to use a condition-controlled loop?
Waiting for user to press "Q"
Validating an entered username and password
Calculating average grade for each student in a class
Searching for an item in a list
Counting occurrences of an item in a list
20
21
Multiple Choice
What is the minimum number of repetitions of the while loop?
0
1
depends on response
22
23
Multiple Choice
Where in a flowchart is a condition tested?
Decision block
Input/output block
Process block
Terminator block
24
25
Draw
Complete the while loop part of the flowchart by drawing a connecting line.
26
27
Multiple Choice
Which is the best definition of nested code?
One control structure inside the scope of another control structure
One control structure immediately following another control structure
One while loop inside another while loop
A program decomposed into subprograms
28
29
30
Multiple Select
Identify the code examples that use nested repetition ...
31
Multiple Select
Identify the code examples that use selection inside repetition ...
32
Multiple Select
Identify the code examples that use an unconditional loop ...
33
Multiple Select
Identify the code examples that use a conditional loop ...
34
Open Ended
Type in your own example of a nested while loop ...
35
Multiple Choice
What type of nesting is shown here?
selection inside repetition
repetition inside selection
selection inside selection
repetition inside repetition
36
Multiple Choice
Which value of userChoice will output "Try again"?
exit
hello
joke
song
again
37
Multiple Choice
Which output will be produced if userChoice = ""?
"Try again"
"Hi! Nice to meet you."
"Where does the Easter Bunny go when he needs a new tail? To a re-tail store!"
"Row, row, row your boat."
"Goodbye."
38
Fill in the Blanks
What is minimum number of times the while loop will execute?
Type answer...
39
Fill in the Blanks
How many comparison operations will be performed in total if the value "exit" is input on line 62?
Type answer...
40
Fill in the Blanks
Type an equality operator from the code ...
Type answer...
41
42
Multiple Select
In this lesson I have learned to ...
Use repetition in algorithms
Use repetition in code
Use repetition in flowcharts
43
Open Ended
Thinking Hard
Write down four key words from today's lesson.
How do they connect to each other?
(press Shift+Enter to take a new line ...)
44
Poll
How much of this lesson have you understood?
None of it
Some of it
Most of it
All of it
Using conditional loops

Show answer
Auto Play
Slide 1 / 44
SLIDE
Similar Resources on Wayground
39 questions
Symmetry
Presentation
•
9th - 10th Grade
38 questions
Input, Integers and Debugging
Presentation
•
9th - 10th Grade
42 questions
Lesson: Ir
Presentation
•
9th - 10th Grade
40 questions
Short Story Unit Vocabulary Review
Presentation
•
9th Grade
39 questions
Classification terms 2023
Presentation
•
9th - 10th Grade
38 questions
Basic Economic Concepts
Presentation
•
9th - 10th Grade
39 questions
LANs & WANS
Presentation
•
9th - 10th Grade
39 questions
LAN Cable
Presentation
•
10th Grade
Popular Resources on Wayground
10 questions
How much do you know about our Portrait of an Eagle?
Quiz
•
10th Grade
10 questions
Fast Food Slogans
Quiz
•
6th - 8th Grade
21 questions
Continents and Oceans
Quiz
•
6th Grade
20 questions
Parts of Speech
Quiz
•
5th Grade
16 questions
Subject & Predicate
Quiz
•
5th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
12 questions
Map Skills
Quiz
•
3rd Grade
22 questions
Continents and Oceans
Quiz
•
5th Grade
Discover more resources for Computers
10 questions
Exploring Digital Citizenship Essentials
Interactive video
•
6th - 10th Grade
20 questions
[AP CSP] Python Coding: Functions, Parameters, Return
Presentation
•
9th - 12th Grade
40 questions
Introduction to Microsoft Word
Quiz
•
8th - 12th Grade
20 questions
APCS Unit 1A
Quiz
•
9th - 12th Grade
24 questions
Binary
Quiz
•
9th - 12th Grade