2024-2025 AP CS Principles Vocabulary Review

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

1/69

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.

70 Terms

1
New cards

Iteration

A repetitive portion of an algorithm which repeats a specified number of times or until a given condition is met. Also called a "loop" or "looping".

2
New cards

Infinite Loop

Occurs when the loop goes on forever because the ending condition will never become true.

3
New cards

Simulation

A representation of a situation or problem with a similar but simpler model or a more easily manipulated model in order to determine experimental results.

4
New cards

For loop

A loop that has a predetermined beginning, end, and increment (step interval); should be used when the number of times the loop should execute is known before the program runs.

5
New cards

While loop

A loop that continues to repeat while a condition is true.

6
New cards

List

A generic term that refers to an ordered collection of elements. The AP CSP reference sheet uses this term instead of "array".

7
New cards

Array

The name typically used in programming to refer to a list of items managed and accessible by a given list name.

8
New cards

Element

An individual item in a list that is assigned a unique position referred to by an index.

9
New cards

Index

A number used to access the elements in a list or string based on its position in the list.

10
New cards

Append

Add an element to the end of a list.

11
New cards

Data Abstraction (List)

Helps manage complexity in a program because it simplifies the program code since the entire collection can be manipulated using the list name and an index.

12
New cards

Substring

Part of an existing string.

13
New cards

Function

A named group of programming instructions that may have parameters and return values. Also referred to as a "procedure".

14
New cards

Function Call

A command that executes the code within a function by using the function's given name with parentheses

15
New cards

Procedure

The generic term for function; refers to a named block of code without implying any particular programming language. The AP CSP reference sheet uses the term PROCEDURE instead of a …

16
New cards

Boolean Value

A data type that is either true or false.

17
New cards

Boolean Expression

A data type that evaluates to either true or false.

18
New cards

Comparison Operators

These, <, >, <=, >=, ==, !=, are used to indicate a Boolean expression.

19
New cards

Logical Operator

These, NOT ( ! ), AND ( && ), and OR ( || ), evaluate to a Boolean value.

20
New cards

Conditional Statement

Affects the sequential flow of control by executing different statements based on the value of a Boolean expression.

21
New cards

Modulus or MOD Operator

Is used to provide the remainder of a division problem as an integer value; for example, 22 MOD 7 is 1. In JavaScript, the percent symbol represents the MOD operator so 22 % 7 = 1.

22
New cards

Syntax Error

The code doesn't follow the rules of the programming language (usually generates a yellow triangle or red square in App Lab).

23
New cards

Logic Error

The code follows the rules of the programming language but doesn't function the way it's intended to.

24
New cards

Run-time Error

A mistake in the program that shows up when running the program.

25
New cards

Expression

A combination of operators and values that evaluates to a single value.

26
New cards

Assignment Operator

Allows a program to change the value represented by a variable; in JavaScript, it's the equal symbol (=); in pseudocode it's the left pointing arrow (←).

27
New cards

Variable

A named reference to a value that can be used repeatedly throughout a program.

28
New cards

String

An ordered sequence of characters; in JavaScript, strings are always within double quotes.

29
New cards

Concatenation

The joining together of two or more strings end-to-end to make a new string; in JavaScript, the plus symbol is used to concatenate two strings together.

30
New cards

Global Variable

A variable that can be used and updated by any part of the code; usually defined at the top of the program.

31
New cards

Local Variable

A variable that can only be seen, used, and updated within the function or onEvent where it is defined.

32
New cards

Pseudocode

A notation resembling a simplified programming language, used in program design.

33
New cards

Input

Data that are sent to a computer for processing by a program. Can come in a variety of forms, such as tactile interaction, audio, visuals, or text.

34
New cards

Output

Any data that are sent from a program to a device. Can come in a variety of forms, such as tactile interaction, audio, visuals, or text.

35
New cards

Program Statement

A command or instruction. Sometimes also referred to as a code statement.

36
New cards

Program

A collection of program statements. Programs run (or "execute") one command at a time.

37
New cards

Sequential Programming

Program statements that are run in order, from top to bottom.

38
New cards

Event-Driven Programming

Program statements that run when triggered by an event, like a mouse click or a key press (in code.org, these are implemented as "onEvents").

39
New cards

Documentation

A written description of how a command or piece of code works or was developed.

40
New cards

Comment

Form of program documentation written into the program to be read by people and which do not affect how a program runs.

41
New cards

Pair Programming

A collaborative programming style in which two programmers switch between the roles of writing code and tracking or planning high level progress.

42
New cards

Debugging

Finding and fixing problems in an algorithm or program.

43
New cards

Development Process

The steps or phases used to create a piece of software. Typical phases include investigating, designing, prototyping, and testing.

44
New cards

Event

Associated with an action and supplies input data to a program. Can be generated when a key is pressed, a mouse is clicked, a program is started, or by any other defined action that affects the flow of execution.

45
New cards

Incremental Development Process

A design approach that breaks the problem into smaller pieces and makes sure each piece works before adding it to the whole.

46
New cards

Iterative Development Process

A design approach requires refinement and revision based on feedback, testing, or reflection throughout the process. This may require revisiting earlier phases of the process.

47
New cards

Program Requirement

A description of how a program or software feature should work. For example: "When the right-arrow button is selected on screen 1, the program should advance to screen 2".

48
New cards

Program Specification

A complete description of how the program is specified to work. Sometimes referred to as the "Program Spec" or "Design Spec", it's usually a document that contains all of the requirements for the program.

49
New cards

Syntax Error

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

50
New cards

Software

A program or a collection of programs.

51
New cards

Investigate and Reflect Phase

First step in the development process to decide on how the app will work and what it will do; get user input to help guide the program and UI design.

52
New cards

Design Phase

The second step in the development process where a program or design specification is created that indicates how the program will work and/or how users will interact with it

53
New cards

Coding Phase

The third step in the development process where the programmer writes the code and tests it as it's being developed (according to the design spec).

54
New cards

Testing Phase

The final step in the development process where the final version of the program is tested to make sure it works as expected; usually revisions are made so bugs are not shipped to the customer.

55
New cards

User Interface (UI)

The inputs and outputs that allow a user to interact with a piece of software. User interfaces can include a variety of forms such as buttons, menus, images, text, and graphics.

56
New cards

HTML

creates the content of a website

57
New cards

CSS

changes the appearance of a website

58
New cards

Javascript

makes the website interactive

59
New cards

Syntax

rules we have to follow when using a programming language

60
New cards

Integer

a number that doesn't have a decimal part

61
New cards

Float

a number that includes a decimal part

62
New cards

String

represents text inside of single or double quotes

63
New cards

Concatenation

adding separate strings together to form one string

64
New cards

Character

a single letter, number, or symbol in a piece of text

65
New cards

HTML tag

used to group element code together

66
New cards

Parameter

A variable in a function definition. Used as a placeholder for values that will be passed through the function.

67
New cards

Argument

The value passed to the parameter.

68
New cards

Return

Used to return the flow of control to the point where the procedure (or function) was called and to return the value produced by the procedure (if applicable).

69
New cards

Modulus Operator (or "MOD")

The remainder as an integer value that results from dividing two numbers. For example, the MOD operator in JavaScript is the percent symbol "%" so 8 % 3 = 2.

70
New cards

Procedural Abstraction

A process that allows a procedure to be used only knowing what it does, not how it does it. Procedural abstraction allows a solution to a large problem to be based on the solution of smaller subproblems. This is accomplished by creating procedures to solve each of the subproblems.