AP CompSci P Unit 3

studied byStudied by 0 people
0.0(0)
learn
LearnA personalized and smart learning plan
exam
Practice TestTake a test on your terms and definitions
spaced repetition
Spaced RepetitionScientifically backed study method
heart puzzle
Matching GameHow quick can you match all your cards?
flashcards
FlashcardsStudy terms and definitions

1 / 28

encourage image

There's no tags or description

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

29 Terms

1

Algorithm

A finite set of instructions that accomplish a specific task.

New cards
2

Code statement

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

New cards
3

Expression

Can consist of a value, a variable, an operator, or a procedure call that returns a value; expressions are evaluated to produce a single value.

New cards
4

Execute

The process of running a computer software program, script, or command.

New cards
5

Behavior

How a program functions during execution; often described by how a user interacts with it.

New cards
6

Program inputs

Data sent to a computer for processing by a program; it can come in a variety of forms, such as tactile, audio, visual, or text.

New cards
7

Program outputs

Any data sent from a program to a device; can come in a variety of forms, such as tactile, audio, visual, or text.

New cards
8

Event

An occurrence; things that happen; usually associated with an action (i.e. mouse click, button pressed).

New cards
9

Event handler

A part of code that 'handles' or listens for a specific type of event; when that event occurs, the code inside the event handler is run.

New cards
10

Program documentation

A written description of the function of a code segment, event, procedure, or program and how it was developed.

New cards
11

Comments

A form of program documentation written into the program that helps explain what the code is doing. Comments in a program do not affect how a program runs.

New cards
12

Logic error

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

New cards
13

Syntax error

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

New cards
14

Run-time error

A mistake in the program that occurs during the execution of a program; programming languages define their own run-time errors.

New cards
15

Overflow error

An error that occurs when a computer attempts to handle a number that is outside of the defined range of values.

New cards
16

Testing

Using defined inputs to ensure that an algorithm or program is producing the expected outcomes, in the development process.

New cards
17

Sequencing

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

New cards
18

Selection

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

New cards
19

Nested conditional statements

Consist of conditional statements within conditional statements.

New cards
20

Iteration

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

New cards
21

Variable

An abstraction inside a program that can hold a value; each variable has associated data storage that represents one value at a time.

New cards
22

Variable Types

Some programming languages provide types to represent data, including numbers, Booleans, arrays/lists, and strings.

New cards
23

Element

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

New cards
24

Index

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

New cards
25

String

An ordered sequence of characters.

New cards
26

String concatenation

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

New cards
27

Substring

Part of an existing string.

New cards
28

Boolean value

A variable that is either true or false.

New cards
29

Data abstraction

Provides a separation between the abstract properties of a data type and the concrete details of its representation.

New cards

Explore top notes

note Note
studied byStudied by 55 people
873 days ago
5.0(1)
note Note
studied byStudied by 8 people
898 days ago
5.0(1)
note Note
studied byStudied by 25 people
805 days ago
5.0(1)
note Note
studied byStudied by 7 people
952 days ago
5.0(1)
note Note
studied byStudied by 26 people
839 days ago
5.0(1)
note Note
studied byStudied by 20 people
705 days ago
5.0(1)
note Note
studied byStudied by 72 people
828 days ago
5.0(1)
note Note
studied byStudied by 259 people
971 days ago
5.0(1)

Explore top flashcards

flashcards Flashcard (41)
studied byStudied by 8 people
138 days ago
5.0(1)
flashcards Flashcard (45)
studied byStudied by 6 people
722 days ago
5.0(2)
flashcards Flashcard (60)
studied byStudied by 15 people
785 days ago
5.0(1)
flashcards Flashcard (148)
studied byStudied by 3 people
819 days ago
5.0(1)
flashcards Flashcard (53)
studied byStudied by 17 people
556 days ago
5.0(1)
flashcards Flashcard (20)
studied byStudied by 2 people
95 days ago
5.0(1)
flashcards Flashcard (20)
studied byStudied by 7 people
740 days ago
4.0(1)
flashcards Flashcard (67)
studied byStudied by 16 people
46 days ago
5.0(1)
robot