AP Computer Science A · Lesson 2.12 · Unit 2 · CED topic 2.10

Implementing String algorithms

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.

10.A. Develop code for standard and original algorithms that involve strings and determine the result of these algorithms.

2 Traversing a String

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

3 Checking a property

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

4 Counting substrings that meet a criterion

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

5 Building a new String

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.

Count the vowels in "education" and build a String without them.

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.