Programming Basics
Logic and Control Structures
Errors and Style
The AP CSP Way
100

The act of WRITING step-by-step directions for the machine to follow.

What is CODING?

100

Includes While and For loops . 

(the technical term)

What is iteration

100

These type of errors stop your program from even running.

What is a syntax error?

100

A block of code that performs a specific task. (In AP CSP terms)


What is a procedure?

200

This machine is the foundation of computing.

What is a computer?

200
Includes if and if/else statements. 


(the technical term)

What is selection (or a conditional statement)

200

Programmers use these to help others read their code.

What are comments?

200

The AP exam’s preferred wording for repeating code. Normally signaled by either “REPEAT UNTIL” or “REPEAT n TIMES.”

What is repetition?

300

The process of designing, writing, testing, and maintaining a set of instructions (a program) that tells a computer how to perform tasks.

What is programming

300

These structures form the basis of decision-making.

What are conditional statements?

300

Without this particular styling, Python won’t run correctly! (After a colon)

What is indentation?

300

A Boolean expression that guides decision-making in a program. The foundation of an if-statement.

What is a condition?

400

In Python and Java, you CALL these to reuse code.

What are Functions (or Procedures)

400

The execution of a named block of code that interrupts the main flow.

What is a procedure(funtion) call?

400

The process of hiding complex details and showing only the essential features of something. It lets programmers focus on what something does instead of how it does it.

What is abstraction?

400

The process of grouping code into logical blocks so it can be reused easily. This concept is at the heart of CSP problem-solving.

What is abstraction?

M
e
n
u