AP Computer Science A · Lesson 1.7 · Unit 1 · CED topics 1.7 and 1.8

APIs, libraries, and documenting code

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.

7.A. Identify the attributes and behaviors of a class found in the libraries contained in an API.

8.A. Describe the functionality and use of code through comments.

2 Libraries and APIs

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

3 Documenting code with comments

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

4 Worked example

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

Using the Thermometer table above, which statements do the job?

5 Exam focus: avoid this mistake

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

6 Sum it up

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