Security scan is checking this page.

Lesson 818 of 1524

Functions

Functions are named blocks of code that perform tasks when called and make programs more organized and optimized

Practice this chapter

Functions are named blocks of code that perform tasks when called and make programs more organized and optimized Control flow is the sequence of program execution.

Control flow moves between calling code and function code when a function is called

Be able to identify function calls in a program; define a parameterless function that outputs strings; describe benefits of using functions.

Worked example

What does this chapter state?

  1. 1Functions are named blocks of code that perform tasks when called and make programs more organized and optimized
  2. 2That claim is the chapter’s own statement.
  3. 3Answer from the claim, not from where the chapter sits in the book.

Result: Functions are named blocks of code that perform tasks when called and make programs more organized and optimized

Why. The sentence is taken from this chapter’s summary or key concepts.

Answer with the meaning this chapter gives. A nearby idea from the same book is a different term.

Practice margin

This chapter

A fresh set from this chapter only. Choose 10 or 20. Multiple choice and fill-in, with no repeat inside the set.