Search Header Logo
Repetition with While

Repetition with While

Assessment

Presentation

•

Computers

•

9th - 10th Grade

•

Medium

Created by

Calum Gordon

Used 36+ times

FREE Resource

16 Slides • 28 Questions

1

Repetition with While

Using conditional loops

media

2

media

3

media

4

Multiple Select

Question image

In this lesson I am going to learn to ... ?

1

Use repetition in algorithms

2

Use repetition in code

3

Use repetition in flowcharts

5

media

6

Multiple Select

Choose all the main program control structures you should be familiar with ...

1

sequence

2

selection

3

repetition

4

recursion

5

reflection

7

Multiple Select

What other ways might looping be referred to?

1

repetition

2

iteration

3

recursion

4

selection

8

media

9

Multiple Select

What are the two main types of loop?

1

condition-controlled

2

count-controlled

3

code-controlled

4

character-controlled

10

media

11

Fill in the Blank

Type the Python keyword associated with a condition-controlled loop.

12

Multiple Choice

What type of condition is used by this type of loop?

1

Boolean

2

arithmetic

3

logical

4

numeric

13

media

14

media

15

Fill in the Blank

Question image

How many times will "Hello World" appear?

16

Fill in the Blank

Question image

What is the loop variable?

17

Multiple Choice

Question image

Which line of code is equivalent to:

count = count + 1

1

count += 1

2

count ++

3

count =+ 1

4

count + 1

18

media

19

Multiple Select

For which of these situations would it be best to use a condition-controlled loop?

1

Waiting for user to press "Q"

2

Validating an entered username and password

3

Calculating average grade for each student in a class

4

Searching for an item in a list

5

Counting occurrences of an item in a list

20

media

21

Multiple Choice

Question image

What is the minimum number of repetitions of the while loop?

1

0

2

1

3

depends on response

22

media

23

Multiple Choice

Question image

Where in a flowchart is a condition tested?

1

Decision block

2

Input/output block

3

Process block

4

Terminator block

24

media

25

Draw

Complete the while loop part of the flowchart by drawing a connecting line.

26

media

27

Multiple Choice

Which is the best definition of nested code?

1

One control structure inside the scope of another control structure

2

One control structure immediately following another control structure

3

One while loop inside another while loop

4

A program decomposed into subprograms

28

media

29

media

30

Multiple Select

Identify the code examples that use nested repetition ...

1
2
3
4

31

Multiple Select

Identify the code examples that use selection inside repetition ...

1
2
3
4

32

Multiple Select

Identify the code examples that use an unconditional loop ...

1
2
3
4

33

Multiple Select

Identify the code examples that use a conditional loop ...

1
2
3
4

34

Open Ended

Type in your own example of a nested while loop ...

35

Multiple Choice

Question image

What type of nesting is shown here?

1

selection inside repetition

2

repetition inside selection

3

selection inside selection

4

repetition inside repetition

36

Multiple Choice

Question image

Which value of userChoice will output "Try again"?

1

exit

2

hello

3

joke

4

song

5

again

37

Multiple Choice

Question image

Which output will be produced if userChoice = ""?

1

"Try again"

2

"Hi! Nice to meet you."

3

"Where does the Easter Bunny go when he needs a new tail? To a re-tail store!"

4

"Row, row, row your boat."

5

"Goodbye."

38

Fill in the Blank

Question image

What is minimum number of times the while loop will execute?

39

Fill in the Blank

Question image

How many comparison operations will be performed in total if the value "exit" is input on line 62?

40

Fill in the Blank

Question image

Type an equality operator from the code ...

41

media

42

Multiple Select

Question image

In this lesson I have learned to ...

1

Use repetition in algorithms

2

Use repetition in code

3

Use repetition in flowcharts

43

Open Ended

Question image

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

Question image

How much of this lesson have you understood?

None of it

Some of it

Most of it

All of it

Repetition with While

Using conditional loops

media

Show answer

Auto Play

Slide 1 / 44

SLIDE