ap csp final

0.0(0)
studied byStudied by 2 people
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
Card Sorting

1/51

encourage image

There's no tags or description

Looks like no tags are added yet.

Study Analytics
Name
Mastery
Learn
Test
Matching
Spaced

No study sessions yet.

52 Terms

1
New cards

debug

Finding and fixing errors in code.

2
New cards

syntax error

Mistakes in the structure of the code (like missing a bracket).

3
New cards

logical error

Code runs but gives wrong results due to flawed logic.

4
New cards

runtime error

Error that happens while the program is running.

5
New cards

console.log & watchers

Tools to help monitor what’s happening in code.

6
New cards

3 parts of a loop

Initialization, Condition, Update.

7
New cards

WHILE loop

Runs while a condition is true.

8
New cards

FOR loop

Runs a fixed number of times.

9
New cards

FOR EACH loop

Loops through each item in a list.

10
New cards

data structure

A way to organize and store data.

11
New cards

list

A collection of items in a specific order.

12
New cards

array

Another name for a list; often used in JavaScript.

13
New cards

dictionary

A data structure with key-value pairs.

14
New cards

element

An item in a list or array.

15
New cards

index

The position of an element in a list (starts at 0).

16
New cards

appendItem

Adds an item to the end of a list.

17
New cards

insertItem

Adds an item at a specific position in a list.

18
New cards

removeItem

Deletes an item from a list.

19
New cards

list.length

Returns the number of items in a list.

20
New cards

data abstraction

Hiding details to make complex data easier to use.

21
New cards

substring

A part of a string.

22
New cards

traversal

Going through each item in a list or array.

23
New cards

filter

Creates a new list with items that match a condition.

24
New cards

reduce

Combines a list into a single value (like sum or product).

25
New cards

parameter

A variable in a function definition.

26
New cards

argument

The actual value passed into a function.

27
New cards

return

Sends a result back from a function.

28
New cards

scope (local vs. global)

Where a variable can be used (inside or outside a function).

29
New cards

procedural abstraction

Using functions to simplify complex code.

30
New cards

library

A collection of prewritten code.

31
New cards

API

A set of tools and functions for building software (e.g., Google Maps API).

32
New cards

dot syntax

Accessing object properties or methods (object.property).

33
New cards

algorithm

A step-by-step process to solve a problem.

34
New cards

sequencing

The order of steps in a program.

35
New cards

selection

Using conditions (if/else) to make decisions.

36
New cards

iteration

Repeating actions using loops.

37
New cards

algorithmic efficiency

How well an algorithm uses time or resources.

38
New cards

linear search

Checking each item in a list one by one.

39
New cards

binary search

Quick search that splits sorted data in half each time.

40
New cards

big O notation

Describes how fast an algorithm grows (e.g., O(n), O(log n)).

41
New cards

logarithmic

Growth slows down as data size increases.

42
New cards

polynomial

Reasonable time growth (like n^2).

43
New cards

exponential

Extremely fast growth (like 2^n).

44
New cards

factorial

Fast growth (like n!); grows faster than exponential.

45
New cards

unreasonable vs. reasonable time

Unreasonable time means it takes too long to compute for big inputs.

46
New cards

decision problem

A yes/no problem.

47
New cards

optimization problem

Finding the best solution from many options.

48
New cards

undecidable problem

No algorithm can solve all cases of this problem.

49
New cards

heuristic

A shortcut or rule-of-thumb to find a good-enough solution.

50
New cards

parallel computing

Multiple tasks running at the same time on different processors.

51
New cards

distributed computing

Tasks spread across multiple connected computers.

52
New cards