WorksheetsAP CSP Unit 1 Exam Review 5th Period
Total questions: 16
Worksheet time: 8mins
Insecure Storage
Of private data = harmful.
Of public data = safe.
Of private data = beneficial.
Of public data = harmful.
Correct Pseudocode
Uses FUNCTION name().
Uses METHOD name().
Uses PROCEDURE name().
Uses ROUTINE name().
Loop Condition
When a loop condition changes to false.
When a loop condition is never checked.
When a loop condition never changes to false. It results into an infinite loop.
When a loop condition is always true.
Lists
Store related information together.
Organize data in a hierarchical structure.
Display information in a tabular format.
Separate unrelated items.
Sequencing
Steps run in a specific order.
Steps that can be executed randomly.
Steps that are optional to follow.
Steps that are executed in reverse order.
Data Types: Boolean
TRUE
FALSE
TRUE or FALSE
Neither TRUE nor FALSE
Events
Actions that trigger code: clicking, key press, timer finishing, etc.
Static occurrences that do not change over time.
Visual elements that enhance user experience.
Background processes that run without user interaction.
addOne(4)
Returns 3.
Returns 4.
Returns 5.
Returns 6.
Infinite Loop
Happens when the condition never changes.
Occurs when a program runs without stopping.
Is a loop that executes a fixed number of times.
Happens when the loop condition is always true.
Parameters in Functions
Allow input to a function.
Define the output of a function.
Control the flow of a program.
Store data temporarily.
Abstraction
By putting repeated logic into a function or procedure, abstraction removes duplication and makes programs cleaner, shorter, and easier to maintain.
Abstraction is the process of hiding the complex reality while exposing only the necessary parts.
Abstraction increases the complexity of the program by adding more functions.
Abstraction is only useful in object-oriented programming.
Repeat Until False
Requires a loop & Boolean condition.
Requires a single iteration.
Can be executed without a condition.
Is only applicable in functional programming.
Decomposition
Breaking tasks into smaller functions.
Combining multiple tasks into one function.
Eliminating unnecessary tasks from a project.
Creating a timeline for task completion.
Algorithm
A step-by-step process for solving a problem.
A random guess to find a solution.
A type of computer virus.
A method of data storage.
Selection
Making decisions using conditionals.
Choosing random items from a list.
Sorting data in ascending order.
Filtering out unwanted information.
Conditionals
Allow your program to choose between two paths.
Make your program run faster.
Store data in a variable.
Display output to the user.
