AP CS Midterm Vocab

studied byStudied by 47 people
5.0(1)
Get a hint
Hint

Sequential Programming

1 / 45

encourage image

There's no tags or description

Looks like no one added any tags here yet for you.

46 Terms

1

Sequential Programming

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

New cards
2

Non-sequential Programming

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

New cards
3

Procedural Abstraction

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

New cards
4

Documentation

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

New cards
5

Control Structure

A structure lets us change the flow of the code.

New cards
6

Sequencing

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

New cards
7

Parameters

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

New cards
8

Arithmetic Operators

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

New cards
9

Concatenate

Adding two strings together using the "+" operator.

New cards
10

Variable

A symbol or container that holds a value.

New cards
11

Iteration

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

New cards
12

Algorithm

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

New cards
13

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.

New cards
14

If Else Statement

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

New cards
15

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.

New cards
16

Break

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

New cards
17

While Loop

Lets us repeat code as long as something is true.

New cards
18

For Loop

Lets us repeat code a fixed number of times.

New cards
19

Else statement

Executes code only if all conditions are false

New cards
20

If Statement

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

New cards
21

Comparison Operator

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

New cards
22

Logical Operators

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

New cards
23

Type Conversion

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

New cards
24

Callback Function

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

New cards
25

Event

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

New cards
26

Return

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

New cards
27

Scope

In what part of the program the variable exists

New cards
28

Namespaces

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

New cards
29

Application Programming Interfaces

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

New cards
30

Local Variable

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

New cards
31

Exceptions

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

New cards
32

Try and Except

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

New cards
33

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.

New cards
34

Data Structure

A particular way of organizing data in our programs.

New cards
35

Tuple

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

New cards
36

Heterogeneous

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

New cards
37

List

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

New cards
38

Mutable

When something is changeable or has the ability to change.

New cards
39

join()

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

New cards
40

List Indexing

 Accessing certain elements in a list

New cards
41

count()

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

New cards
42

append()

Add a particular item to the end of a list.

New cards
43

extend()

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

New cards
44

sort()

sorts the list in ascending order by default.

New cards
45

reverse()

reverses the sorting order of the elements.

New cards
46

remove()

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

New cards

Explore top notes

note Note
studied byStudied by 2 people
... ago
5.0(1)
note Note
studied byStudied by 40 people
... ago
4.0(2)
note Note
studied byStudied by 18 people
... ago
5.0(1)
note Note
studied byStudied by 52 people
... ago
5.0(1)
note Note
studied byStudied by 9937 people
... ago
4.6(25)
note Note
studied byStudied by 8 people
... ago
5.0(1)
note Note
studied byStudied by 827 people
... ago
5.0(1)

Explore top flashcards

flashcards Flashcard (94)
studied byStudied by 3 people
... ago
5.0(2)
flashcards Flashcard (72)
studied byStudied by 1 person
... ago
5.0(1)
flashcards Flashcard (148)
studied byStudied by 1 person
... ago
5.0(1)
flashcards Flashcard (35)
studied byStudied by 96 people
... ago
5.0(3)
flashcards Flashcard (40)
studied byStudied by 2 people
... ago
5.0(1)
flashcards Flashcard (65)
studied byStudied by 7 people
... ago
5.0(1)
flashcards Flashcard (99)
studied byStudied by 12 people
... ago
5.0(1)
flashcards Flashcard (35)
studied byStudied by 3 people
... ago
5.0(2)
robot