Search Header Logo
Y4 Unit 6 (Part 2)

Y4 Unit 6 (Part 2)

Assessment

Presentation

Computers

4th Grade

Practice Problem

Medium

Created by

Jolanda Edmond

Used 1+ times

FREE Resource

17 Slides • 6 Questions

1

Unit 6:
Be a Musician (Part 2)

By Jolanda Edmond

2

Learning objectives

  1. to predict the outcome of algorithms that contain repetition.

  2. to compare and contrast algorithms designed for the same task

  3. to develop programs with iteration

media

3

Multiple Select

What are the two types of loop that we have learned?

1

Forever

2

If...then...

3

Repeat...until...

4

Repeat

4

Let's sing a song

Twinkle, twinkle, little star
Twinkle, twinkle, little star
Twinkle, twinkle, little star

media

5

Let's sing a song

Twinkle, twinkle, little star
Twinkle, twinkle, little star
Twinkle, twinkle, little star

media

​Sing until I raise my hand to stop

6

Why did you stop singing at the second sentence?

Why did you stop singing after the third sentence?

Ask yourself

7

Why did you stop singing after the third sentence?

Ask yourself

Count control:
you asked to stop after we repeated the sentence three times

8

Why did you stop singing at the second sentence?

Ask yourself

A condition was met:
you raised your hand

9

What is iteration?

Iteration means repeating the same block of code over and over again multiple times.

Types:
1. Count-controlled loop - you learnt in Unit 4
2. Condition-controlled loop

media
media

10

Multiple Choice

What is iteration?

1

repeating the same block of code only one time

2

repeating the same block of code over and over again multiple times.

3

repeating the different block of code over and over again multiple times.

4

not repeating any block of code.

11

Multiple Select

What are the two types of iteration?

1

Forever loop

2

Repeat loop

3

Condition-controlled loop

4

Count-controlled loop

12

Condition-controlled loop:
repeat blocks of code until a condition is met

Count-controlled loop: repeat blocks of code a set number of times

Types of iteration

media
media

13

Multiple Choice

What is the main purpose of a count-controlled loop in programming?

1

To run code only when a condition is true.

2

To repeat blocks of code a set number of time.

3

To run code forever without stopping.

4

To check if user input is valid

14

Multiple Choice

What is the main purpose of a condition-controlled loop in programming?

1

To repeat blocks of code until a condition is met.

2

To store multiple values in a single variable.

3

To repeat blocks of code a set number of times.

4

To check syntax errors in a program.

15

Multiple Choice

What block do we use for condition-controlled loop?

1
2
3
4

16

Algorithm using iteration

media

17

media
media

Algorithm using iteration

18

Practise

media
media

19

Practise

media
media
media

20

Practise

media
media

21

Go further

media

​When the 'w' key is pressed, the volume is set to 40% and Drums Tabla plays the Le Geh Tabla sound, the Hi Na Tabla, waits one second and then plays the Hi Tun Tabla sound.

The three sounds are then repeated with the volume increasing by 5 each time until the down arrow is pressed.

media

22

Go further

media
media
media

23

media
media
media

ITERATION

media

Unit 6:
Be a Musician (Part 2)

By Jolanda Edmond

Show answer

Auto Play

Slide 1 / 23

SLIDE