What this deck covers
This deck focuses on Developing Procedures, giving you a quick way to review the definitions, rules, and examples that matter most for AP Computer Science Principles.
Study Developing Procedures in AP Computer Science Principles with focused flashcards that help you recognize the idea, recall the key rule, and apply it in practice-style prompts.
0% Complete
What is an argument in procedures?
Tap card or press Space to flip
Value passed to a procedure's parameter. The actual data passed to parameters when calling.
How well did you know it?
Card 1 / 71
Space to flip · ← / → to move · once flipped, → Got it · ← Still learning
This deck focuses on Developing Procedures, giving you a quick way to review the definitions, rules, and examples that matter most for AP Computer Science Principles.
Work through these flashcards in short sessions. Try to answer each prompt before flipping the card, then revisit any cards you miss until the explanation feels automatic.
Answer: Value passed to a procedure's parameter. The actual data passed to parameters when calling.
Answer: A function passed as an argument. Used for event handling and asynchronous programming.
Answer: No issue; syntax is correct. Valid code that calls function and prints result.
Answer: 'return' outputs from a function; 'print' displays. Return sends values; print shows text on screen.
Answer: No error; syntax is correct. Valid Python function syntax with proper colon and return.
Answer: An anonymous, inline function. Concise way to create simple functions inline.
Answer: Procedure body. The executable code that implements the procedure's logic.
Answer: The output a procedure produces. The result sent back to the calling code.
Answer: Placeholder for future code. Prevents syntax errors in incomplete code blocks.
Answer: Encapsulate code for reuse and modularity. Breaks complex programs into manageable, reusable components.
Answer: Parameterless procedure. Takes no input values when called.
Answer: Its name, parameters, and return type. Defines how to call and use the procedure.
Answer: return. Sends a value back to the caller and exits the function.
Answer: Missing colon after parameters. Function definitions require colon after parameter list.
Answer: No error; syntax is correct. Valid procedure with side effect and empty return.
Answer: def. Standard Python syntax for creating function definitions.
Answer: A parameter with a default value. Provides fallback value when argument is not supplied.
Answer: Value passed to a procedure's parameter. The actual data passed to parameters when calling.
Answer: The output a procedure produces. The result sent back to the calling code.
Answer: A function passed as an argument. Used for event handling and asynchronous programming.
Answer: A function with no side effects. Predictable behavior with no external state changes.
Answer: A function with no side effects. Predictable behavior with no external state changes.
Answer: Its name, parameters, and return type. Defines how to call and use the procedure.
Answer: Procedure body. The executable code that implements the procedure's logic.
Answer: No error; syntax is correct. Valid syntax for procedure with print side effect.
Answer: The condition to stop recursion. Prevents infinite recursion by providing an exit condition.
Answer: An anonymous, inline function. Concise way to create simple functions inline.
Answer: No error; syntax is correct. Valid division function with proper return statement.
Answer: Parameters. Variables that accept data when the procedure is called.
Answer: No error; syntax is correct. Valid procedure with side effect and empty return.
Answer: Method: Bound to an object; Procedure: Not bound. Methods belong to classes; procedures are independent.
Answer: Missing colon after parameters. Function definitions require colon after parameter list.
Answer: Define a procedure. Short for 'definition' in function declarations.
Answer: Method: Bound to an object; Procedure: Not bound. Methods belong to classes; procedures are independent.
Answer: No error; syntax is correct. Valid Python function syntax with proper colon and return.
Answer: Conditions assumed true before execution. Requirements that must be met before calling.
Answer: Identifier used to invoke it. Label that distinguishes it from other procedures.
Answer: The condition to stop recursion. Prevents infinite recursion by providing an exit condition.
Answer: Conditions ensured after execution. Guarantees about the procedure's results or effects.
Answer: No error; syntax is correct. Valid function that modifies and returns parameter.
Answer: Procedure invocation. The act of running or calling a procedure.
Answer: Missing colon after parameters. Python requires colon after parameter list in function definitions.
Answer: Identifier used to invoke it. Label that distinguishes it from other procedures.
Answer: An impact beyond returning a value. Changes program state beyond the return value.
Answer: Parameterless procedure. Takes no input values when called.
Answer: Recursive procedure. Uses divide-and-conquer by breaking problems into smaller parts.
Answer: def. Standard Python syntax for creating function definitions.
Answer: Procedure: No return; Function: Returns value. Functions return values; procedures perform actions.
Answer: Encapsulate code for reuse and modularity. Breaks complex programs into manageable, reusable components.
Answer: Default parameter must be last. Default parameters must come after required parameters.
Answer: Conditions ensured after execution. Guarantees about the procedure's results or effects.
Answer: A parameter with a default value. Provides fallback value when argument is not supplied.
Answer: Parameters. Variables that accept data when the procedure is called.
Answer: An impact beyond returning a value. Changes program state beyond the return value.
Answer: No error; syntax is correct. Valid function that modifies and returns parameter.
Answer: Conditions assumed true before execution. Requirements that must be met before calling.
Answer: No error; syntax is correct. Valid syntax for procedure with print side effect.
Answer: Default parameter must be last. Default parameters must come after required parameters.
Answer: Do not repeat yourself. Promotes code reuse by avoiding duplicate implementations.
Answer: Missing colon after parameters. Python requires colon after parameter list in function definitions.
Answer: Placeholder for future code. Prevents syntax errors in incomplete code blocks.
Answer: return. Sends a value back to the caller and exits the function.
Answer: Recursive procedure. Uses divide-and-conquer by breaking problems into smaller parts.
Answer: No error; syntax is correct. Valid division function with proper return statement.
Answer: No issue; syntax is correct. Valid code that calls function and prints result.
Answer: Procedure: No return; Function: Returns value. Functions return values; procedures perform actions.
Answer: Do not repeat yourself. Promotes code reuse by avoiding duplicate implementations.
Answer: Missing second argument. Function expects two arguments but only receives one.
Answer: Define a procedure. Short for 'definition' in function declarations.
Answer: 'return' outputs from a function; 'print' displays. Return sends values; print shows text on screen.
Answer: Missing second argument. Function expects two arguments but only receives one.