AP CS Midterm Vocab

5.0(1)
studied byStudied by 47 people
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
Card Sorting

1/45

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.

46 Terms

1
New cards

Sequential Programming

Programs that are executed once through, from start to finish in linear order.

2
New cards

Non-sequential Programming

A programming paradigm where programs can have multiple tasks being completed at once or out of linear order.

3
New cards

Procedural Abstraction

The ability to use methods and programs that we do not fully understand, or are unable to write.

4
New cards

Documentation

Written instructions detailing the functions, methods, and variables available and how to use them.

5
New cards

Control Structure

A structure lets us change the flow of the code.

6
New cards

Sequencing

Step by step execution of instructions in the order they are given.

7
New cards

Parameters

Pieces of information you can give to functions when you define them. The variable in the declaration of the function.

8
New cards

Arithmetic Operators

include + addition, - subtraction, * multiplication, ÷ division, and % modulus. These operators are used to perform basic mathematical tasks.

9
New cards

Concatenate

Adding two strings together using the "+" operator.

10
New cards

Variable

A symbol or container that holds a value.

11
New cards

Iteration

Repetition of instructions a specified number of times, or until a condition is met.

12
New cards

Algorithm

A set of steps or rules to follow to solve a particular problem.

13
New cards

Function

like a command that you get to invent and name. It allows us to break our program into smaller parts, making the program easier to understand.

14
New cards

If Else Statement

Control structure that lets us run either one section of code or another depending on a test.

15
New cards

Continue

Rejects all the remaining statements in the current iteration of the loop and moves the control back to the top of the loop to continue to the next iteration. Can be used in both while and for loops.

16
New cards

Break

Exits the current loop and resumes execution at the next statement.

17
New cards

While Loop

Lets us repeat code as long as something is true.

18
New cards

For Loop

Lets us repeat code a fixed number of times.

19
New cards

Else statement

Executes code only if all conditions are false

20
New cards

If Statement

Lets you ask a question to the program and only run code if the answer is true.

21
New cards

Comparison Operator

Used to make comparisons between values. Examples <, >, <= etc

22
New cards

Logical Operators

Used to make associations between boolean values.  Examples: And, Or & Not.

23
New cards

Type Conversion

The process of converting the value of one data type (integer, string, float, etc.) to another data type.

24
New cards

Callback Function

A function passed as a parameter to another function in order to be called later.

25
New cards

Event

An action (such as clicking the mouse or pressing a key on the keyboard) that a program detects and uses as input.

26
New cards

Return

Exits a function, optionally passing back an expression to the caller. A ______ statement with no arguments is the same as _____ None.

27
New cards

Scope

In what part of the program the variable exists

28
New cards

Namespaces

The collection of variable names that exist at a certain point in your code.

29
New cards

Application Programming Interfaces

Simplify complex programming tasks by providing sets of clearly defined methods of communication among various computing components.

30
New cards

Local Variable

A variable that is restricted to use in a certain scope of a program.

31
New cards

Exceptions

Runtime errors in a program. by default, they stop the program.

32
New cards

Try and Except

Programming constructs that can be used to gracefully handle exceptions so that a program can continue in spite of them.

33
New cards

Immutable

Unable to change. If you take a substring of a tuple, or concatenate something to a tuple, the result is a brand new tuple, rather than a modification of the original.

34
New cards

Data Structure

A particular way of organizing data in our programs.

35
New cards

Tuple

A heterogenous, immutable data type that stores an ordered sequence of things.

36
New cards

Heterogeneous

The items stored can be of any type: numeric, string, boolean, etc.

37
New cards

List

A heterogenous, mutable data type that stores an ordered sequence of things.

38
New cards

Mutable

When something is changeable or has the ability to change.

39
New cards

join()

This method takes all items in a collection and joins them into one string

40
New cards

List Indexing

 Accessing certain elements in a list

41
New cards

count()

A method that counts occurrences of specific items in a list.

42
New cards

append()

Add a particular item to the end of a list.

43
New cards

extend()

Takes a list as an argument and extends the current list with the list given as an argument.

44
New cards

sort()

sorts the list in ascending order by default.

45
New cards

reverse()

reverses the sorting order of the elements.

46
New cards

remove()

removes the first occurrence of the element with the specified value.