AP Computer Science Principles - Big Idea 3

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

1/29

flashcard set

Earn XP

Description and Tags

Flashcards for AP Computer Science Principles Big Idea 3: Algorithms and Programming

Study Analytics
Name
Mastery
Learn
Test
Matching
Spaced

No study sessions yet.

30 Terms

1
New cards

Variable

An abstraction inside a program that can hold a value. It has associated data storage representing one value at a time, but that value can be a list or other collection that contains multiple values.

2
New cards

Data Types

Represented using variables; include numbers, Booleans, lists, and strings.

3
New cards

Assignment Operator

Allows a program to change the value represented by a variable.

4
New cards

List

An ordered sequence of elements, e.g., [value1, value2, value3, …]

5
New cards

Element

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

6
New cards

Index

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

7
New cards

String

An ordered sequence of characters.

8
New cards

Data Abstraction

Provides a separation between the abstract properties of a data type and the concrete details of its representation; manages complexity by giving a collection of data a name without referencing specific details.

9
New cards

Algorithm

A finite set of instructions that accomplish a specific task.

10
New cards

Sequencing

The application of each step of an algorithm in the order in which the code statements are given.

11
New cards

Code Statement

A part of program code that expresses an action to be carried out.

12
New cards

Expression

Can consist of a value, a variable, an operator, or a procedure call that returns a value.

13
New cards

Arithmetic Operators

Include addition, subtraction, multiplication, division, and modulus operators.

14
New cards

String Concatenation

Joins together two or more strings end-to-end to make a new string.

15
New cards

Substring

Part of an existing string.

16
New cards

Boolean Value

Either true or false.

17
New cards

Relational Operators

Used to test the relationship between two variables, expressions, or values (=, ≠, >, <, ≥, ≤).

18
New cards

Logical Operators

NOT, AND, and OR, which evaluate to a Boolean value.

19
New cards

Selection

Determines which parts of an algorithm are executed based on a condition being true or false.

20
New cards

Conditional Statements

Or “if-statements,” affect the sequential flow of control by executing different statements based on the value of a Boolean expression.

21
New cards

Nested Conditional Statements

Consist of conditional statements within conditional statements.

22
New cards

Iteration

A repeating portion of an algorithm; repeats a specified number of times or until a given condition is met.

23
New cards

Infinite Loop

Occurs in REPEAT UNTIL iteration when the ending condition will never evaluate to true.

24
New cards

Procedure

A named group of programming instructions that may have parameters and return values (also referred to as method or function).

25
New cards

Parameters

Input variables of a procedure.

26
New cards

Arguments

Specify the values of the parameters when a procedure is called.

27
New cards

Procedural Abstraction

Provides a name for a process and allows a procedure to be used only knowing what it does, not how it does it.

28
New cards

Modularity

The subdivision of a computer program into separate subprograms.

29
New cards

Software Library

Contains procedures that may be used in creating new programs.

30
New cards

Simulation

Abstractions of more complex objects or phenomena for a specific purpose.