Skip to content
Marlbridge

AP® Computer Science A · Unit 1 · Topic 1.7

Application Program Interface (API) and Libraries: Checklist (Computer Science A 1.7)

A self-check list for libraries, packages, API documentation, attributes and behaviors, and reading Math and String method entries, linked to the guide and practice questions.

Work through the list without notes. If you cannot do a statement, follow its link, then come back. Guide = study guide; Practice = practice questions.

Understanding

  • I can define library, package and class, and say how they fit together. (Guide: “Why use code that someone else wrote?”; Practice Question 9)
  • I can explain what an API specification is and why documentation is essential. (Guide: “Reading API documentation”; Practice Question 1)
  • I can explain that a class defines a reference type from which objects are created. (Guide: “Why use code that someone else wrote?”)
  • I can define attributes and behaviors and say how each appears in code. (Guide: “Attributes and behaviors”; Practice Questions 3 and 7)
  • I can say which packages are available by default and which classes need an import. (Guide: “Using classes from a library”; Practice Questions 2 and 9)

Skills

  • I can identify the return type, name, parameter list and description in a method entry. (Guide: the entry table; Practice Questions 4 and 8)
  • I can write a call to a library method that matches the number, types and order of its parameters. (Guide: Worked example 1; Practice Questions 4 and 8)
  • I can predict the result of length, substring and indexOf calls by writing the indices under the string. (Guide: Worked example 2; Practice Questions 5, 6 and 10)
  • I can classify features of a class as attributes or behaviors. (Practice Question 7)

Reasoning

  • I can explain why a double result from Math.pow cannot be stored in an int without a cast. (Guide: Worked example 1; Practice Question 8)
  • I can explain why a missing import gives a “cannot find symbol” error. (Guide: “Using classes from a library”; Practice Question 9)
  • I can explain how procedural abstraction lets me use a method without seeing its code. (Guide: “Why use code that someone else wrote?”)

All ticked? Move on to the Topic 1.8 study guide, Documentation with Comments, or return to the course roadmap.

AP® and Advanced Placement® are trademarks registered by the College Board, which is not affiliated with, and does not endorse, this website. Marlbridge is an independent tuition provider. It is not an authorized AP course provider, an AP school or an exam centre, and these resources are not official College Board materials. Reading them or doing simulations does not meet the laboratory requirement of an AP science course.