Back to Mrs. King's AP Comp Sci Page

AP Computer Science Topic Outline

Following is an outline of the major topics covered by the AP Examinations in Computer Science. These topics are explained in greater detail in the Teacher’s Guide Ñ AP Computer Science. The ordering here is intended to define the scope of the course, but not necessarily the sequence. The topics in the right-hand column will not be tested on the Computer Science A Examination.

I. Program Design

The overall goal for designing a piece of software (a computer program) is to correctly solve the given problem. At the same time, this goal should encompass specifying and designing a program that is understandable, can be adapted to changing circumstances, and has the potential to be reused in whole or in part. The design process needs to be based on a thorough understanding of the problem to be solved.

Computer Science A and AB Computer Science AB only

A. Problem definition
1. Specification of purpose and goals
2. Identification of subtasks to be performed
3. Identification of the abstract data types and operations needed to solve the problem

B. Program design
1. Identification of reusable components from existing code
2. Function decomposition
3. Choice of data structures and algorithms
4. Design of user interface

 

II. Program Implementation

The overall goals of program implementation parallel those of program design. Modules of the program that fill common needs should be built so that they can be reused easily in other pro- grams. Procedural and data abstraction are important parts of program implementation.

Computer Science A and AB Computer Science AB only

A. Implementation techniques
1. Methodology
a. Top-down development (including use of stub subprograms)
b. Bottom-up development
2. Use of abstraction
a. Procedural abstraction
b. Abstract data types (including encapsulation and information hiding)

B. Programming constructs
1. Declaration
a. Constant declarations
b. Variable declarations
c. Function declarations
d. Parameter declaration
i. Value
ii. Reference
iii. Constant reference
2. Input and output
a. Interactive
b. Files
3. Control
a. Sequential
b. Conditional
c. Repetition
i. Iteration
ii. Recursion
C. Generic data types and functions

 

III. Program Analysis

The analysis of programs includes analyzing and testing programs to determine whether they correctly meet their specifications. It also includes the analysis of programs or the algorithms they implement so as to understand their time and space requirements when applied to different data sets.

Computer Science A and AB Computer Science AB only

A. Testing
1. Testing modules in isolation
2. Identifying boundary cases and generating appropriate test data
3. Integration testing

B. Debugging
1. Categorizing errors: compile-time, run-time, logic
2. Identifying and correcting errors
3. Techniques: using a debugger, adding extra output statements, hand-tracing

C. Understanding and modifying existing code D. Handling errors — robust behavior

 

 
E. Reasoning about programs
1. Pre/post conditions
2. Assertions
3. Invariants
F. Analysis of algorithms
1. Informal comparisons of running times
2. Exact calculation of statement execution counts
3. Big-O notation
4. Worst case/average case time and space analysis
G. Numerical limits Limitations of finite representations (e.g., integer bounds, imprecision of floating-point representations, and round-off error)  

IV. Standard Data Structures

Data structures are the means by which the information used by a program is represented within the program. Abstraction is an important theme in the development and application of data structures.

Computer Science A and AB Computer Science AB only

A. Simple data types (e.g., int, char, bool, double)

B. Aggregate data types
1. Heterogeneous (structs)
2. Homogeneous (arrays)

C. Classes

 
  D. Linked lists
E. Stacks
F. Queues
G. Trees
H. Heaps
I. Priority queues

V. Standard Algorithms

Standard algorithms can serve as examples of good solutions to standard problems. Programs implementing them can serve as models of good program design. They provide examples for analysis of program efficiency. Many are intertwined with standard data structures.

Computer Science A and AB Computer Science AB only

A. Operations on data structures
1. Traversals
2. Insertion
3. Deletion

 
  B. Operations on dynamic data structures
1. Traversals
2. Insertion
3. Deletion
4. Allocation/deallocation of memory
C. Searching
1. Sequential (linear)
2. Binary
3. Hashing
D. Sorting
1. Selection
2. Insertion
3. Mergesort
4. Quicksort
5. Heapsort

VI. Computer Systems

A working knowledge of the major hardware and software components of computer systems is necessary for the study of computer science, as is the importance of considering the ethical and social implications of computing systems. These topics need not be covered in detail, but they should be considered throughout the course.

Computer Science A and AB Computer Science AB only

A. Major hardware components
1. Primary and secondary memory
2. Processors
3. Peripherals

B. System software
1. Language translators
2. Separate compilation
3. Operating systems

 

Back to Mrs. King's AP Comp Sci Page