NEW
Font size
Worksheets[AP CSP] Unit 4 Review: Functions and Lists
Total questions: 10
Worksheet time: 1hrs 27mins
A collection in which the items are ordered and can be referenced by an index value.
List
Procedures
Functions
Conditions
Repeating code that executes over a sequence of items or values.
For Loop
While Loop
Functions
Conditional Loops
This is a block of organized, reusable code thatis used to perform a single, related action. Examples include print(),str(), sqrt().
Lists
Parameters
Functions
Modules
Data passed into a function for processing.
Lists
Parameters
Subroutines
Modules
Data passed back to calling code when a function has completed its execution.
Lists
Parameters
Subroutines
Return Value
Repeating code that executes as long as a specific condition remains True.
Conditional statement
While Loop
Function
For Loop
What is the output of the following code?
150.0
25.0
250.0
15.0
What is the output of the following code?
112.0
25.0
10.0
17.5
What is the output of the following code?
Tracy McGrady : 81
Kobe Bryant : 69
Lebron James : 69
Michael Jordan : 81
What is the output of the following code?
84
72
24
28
