AP Computer Science A · Lesson 4.18 · Unit 4 · CED topic 4.16

Recursion

Name:   Date:  

1 Why this lesson matters

Read the opening paragraph and the "Required content" box on the lesson page. In your own words, explain each objective below.

16.A. Determine the result of calling recursive methods.

2 The two parts

Read this section. In your own words, summarize the main idea.

3 Each call has its own variables

Read this section. In your own words, summarize the main idea.

4 Work before and after the call

Read this section. In your own words, summarize the main idea.

5 Recursion and loops

Read this section. In your own words, summarize the main idea.

6 Worked example

Read the "Worked example" box. Then, without looking back, try writing your own answer below.

What does mystery(3) return?

7 Exam focus: avoid this mistake

Read the "Exam focus" box, then restate it in your own words.

8 Sum it up

In two or three sentences, explain this lesson's main idea to someone who has not read it.