Unit 4 Vocabulary APCSP

0.0(0)
Studied by 0 people
call kaiCall Kai
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
GameKnowt Play
Card Sorting

1/22

encourage image

There's no tags or description

Looks like no tags are added yet.

23 Terms

1
New cards

What is an index in the context of a list in SNAP and the AP CSP exam?

A value's unique position on a list, with the first item stored at index 1.

2
New cards

What is an element?

A data point that is stored in a list; a single part of a larger group.

3
New cards

What is a list?

A data structure that stores one or more similar types of values in a single value.

4
New cards

What does traversing a list mean?

Performing the same operation on each item of the list, sequentially.

5
New cards

What does it mean to append in the context of lists?

To add an element to the end of a list.

6
New cards

How do you remove an element from a list?

By deleting it from the list.

7
New cards

What does it mean to insert an element into a list?

To add an element at a certain index in the list.

8
New cards

What is replacing an element in a list?

Updating the contents of an element.

9
New cards

What is iteration?

Repetition of a process.

10
New cards

What is a for each loop?

A control structure designed to iterate over each element of a list and perform the same operation on each.

11
New cards

What is a loop?

The action of doing something over and over again.

12
New cards

What is linear search?

An algorithm that iterates through each item in a list until it finds the target value.

13
New cards

What is a synonym for linear search?

Sequential search.

14
New cards

What does a return statement do?

Terminates the execution of a procedure and returns to the calling procedure, possibly returning a value.

15
New cards

What is a temporary variable?

A variable that has a short lifetime, usually holding data that will be discarded soon.

16
New cards

What is binary search?

An algorithm that searches a sorted list for a value by repeatedly splitting the list in half.

17
New cards

What is algorithmic efficiency?

A measure of execution time and memory usage while still yielding a correct answer.

18
New cards

What is an array?

A type of list or data structure that stores a collection of data.

19
New cards

What is a heuristic?

A technique that guides an algorithm to find good choices, avoiding exhaustive searches.

20
New cards

What is an undecidable problem?

A problem that may have some instances with algorithmic solutions but lacks a solution for all instances.

21
New cards

What is a decidable problem?

A decision problem for which an algorithm can be written to produce correct outputs for all inputs.

22
New cards

What is a library in programming?

A software library contains existing procedures that may be used in creating new programs.

23
New cards

What is an API?

Application Program Interfaces (API) provide details or specifications on how procedures behave and can be used.