Search Header Logo
CSD Unit 3 - Lesson 24 Functions Part 1

CSD Unit 3 - Lesson 24 Functions Part 1

Assessment

Presentation

Computers

6th - 8th Grade

Practice Problem

Easy

Created by

Patrick Trejo

Used 4+ times

FREE Resource

1 Slide • 8 Questions

1

Unit 3 - Lesson 14 - Functions

media
  • Create and use functions for blocks of code that perform a single high-level task within a program

  • Explain how functions allow programmers to reason about a program at a higher level

  • Explain the advantages of using functions in a program

2

Open Ended

Think of a time when a function might have helped you write a program.

What code would go in the definition of the function?

When would you call the function?  

What would you name it?

3

Open Ended

Question image

What will show in the Game Lab when you run the program?

4

Open Ended

Question image

What will show in the Game Lab when you run the program?

5

Open Ended

Question image

What will show in the Game Lab when you run the program?

6

Open Ended

Question image

What will show in the Game Lab when you run the program?

7

Open Ended

Question image

This code creates a sprite that moves across the screen once. How can you make it go back across the screen?

8

Open Ended

Question image

What are the changes to the setFlyer function so that the flyer starts at a random Y location between 0 and 400, and moves at a random velocity every time it is reset?

9

Open Ended

Question image

What will show in the Game Lab when you run the program?

Unit 3 - Lesson 14 - Functions

media
  • Create and use functions for blocks of code that perform a single high-level task within a program

  • Explain how functions allow programmers to reason about a program at a higher level

  • Explain the advantages of using functions in a program

Show answer

Auto Play

Slide 1 / 9

SLIDE