APCSP U6

0.0(0)
studied byStudied by 0 people
0.0(0)
full-widthCall Kai
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
GameKnowt Play
Card Sorting

1/18

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.

19 Terms

1
New cards

List

an ordered collection of elements

2
New cards

Element

an individual value in a list that is assigned a unique index.

3
New cards

For loop

  1. A particular kind of looping construct provided in many languages. Typically, this loop defines a counting variable that is checked and incremented on each iteration in order to loop a specific number of times.

4
New cards

Loops (iteration statement)

  1. change the sequential flow of control by repeating a set of statements zero or more times, until a stopping condition is met

5
New cards

Index

  1.  a common method for referencing the elements in a list or string using numbers

6
New cards

Length of list

  1. how many elements it contains. Lists can grow or shrink as elements are added or removed.

7
New cards

Iteration

  1.  a repetitive portion of an algorithm which repeats a specified number of times or until a given condition is met

8
New cards

Infinite loop

  1. occurs when the ending condition will never evaluate to true

9
New cards

Traversal

  1. the process of accessing each item in a list one at a time

10
New cards

Append

adds an element to the end of a list

11
New cards

Insert

Inserts an element into a list at the index given

12
New cards

Remove

Removes the element in a given list at the given index

13
New cards

Data abstraction

  1. manages complexity in programs by giving a collection of data a name without referencing the specific details of the representation

14
New cards

Logic error

  1.  a mistake in the algorithm or program that causes it to behave incorrectly or unexpectedly.

15
New cards

Run-time error

  1. a mistake in the program that occurs during the execution of a program. Programming languages define their own runtime errors.

16
New cards

Syntax error

  1. a mistake in the program where the rules of the programming language are not followed

17
New cards

Ways to find and correct errors

  1.  test cases, hand tracing, visualizations, watchers, adding extra output statements (console.logs)

18
New cards

Simulation

  1. abstractions of more complex objects or phenomena for a specific purpose.Simulations are most useful when real-world events are impractical for experiments (e.g., too big, too small, too fast, too slow, too expensive, or too dangerous).

19
New cards

Substring

part of an existing string