Code.org Lesson 4 - Functions

Code.org Lesson 4 - Functions
1 / 10
volgende
Slide 1: Tekstslide
ComputingLower Secondary (Key Stage 3)

In deze les zitten 10 slides, met interactieve quizzen en tekstslides.

time-iconLesduur is: 50 min

Onderdelen in deze les

Code.org Lesson 4 - Functions

Slide 1 - Tekstslide

In a Code.org sequence puzzle, you're tasked with guiding a character to collect all the gems on the screen. Which block is typically used to make the character move multiple steps in a specific direction?
A
"If" Block
B
"Turn Right" Block
C
"Repeat Until" Block
D
"Sound" Block

Slide 2 - Quizvraag

In a Code.org sequence puzzle, which block is used to create a condition that, when met, allows the program to execute a specific set of actions?
A
"Forever" Block
B
"Move Forward" Block
C
"Repeat Until" Block
D
"If" Block

Slide 3 - Quizvraag

In a Code.org sequence puzzle, which block is used to create a loop that repeats a specific set of actions a fixed number of times?
A
"Repeat Until" Block
B
"If" Block
C
"Turn Right" Block
D
"Repeat" Block

Slide 4 - Quizvraag

In programming, what is the primary purpose of using a nested loop structure?
A
To execute a loop only once
B
To create a loop inside another loop
C
o eliminate the need for loops
D
To perform mathematical calculations

Slide 5 - Quizvraag

KO - Students will understand the concept of functions in programming and apply their knowledge to solve puzzles on Code.org.
All - Students will identify the purpose of functions in coding.
Most - Students will design and implement a custom function with parameters.
Some - Students will create and utilize functions that call other functions (nested functions).

Slide 6 - Tekstslide

Revisit Conditionals (15,16) (10 minutes)
15. If/Else with Bee (then move onto)
16. While Loops in Farmer

Slide 7 - Tekstslide

What is a Function?

Think of a function as a mini-program inside your main program. It's like a magical box that does a specific job for you.
Why Do We Use Functions?
Easy Breakdown: Functions help break big problems into small, manageable pieces. Imagine you have a big puzzle; functions are like individual puzzle pieces.

Reuse: Once you make a function, you can use it many times. It's like having a magic spell you can use in different parts of your game or puzzle.

No Need to Know Everything: You don't need to know how the magic inside the box works. You only need to know what goes in (like ingredients) and what comes out (like a cake).




Slide 8 - Tekstslide

Functions (Stages 20,21,22)
20. Functions in Minecraft
21. Functions with Harvester
22. Functions with Artist

Slide 9 - Tekstslide

Answer the following in full sentences:
1) What did you learn about coding today in class? What?
2) What was the hardest part about today's lesson? Why?
3) What was the most interesting part in today's lesson? When?

Slide 10 - Open vraag