AP CSP Review

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

1/129

Study Analytics
Name
Mastery
Learn
Test
Matching
Spaced

No study sessions yet.

130 Terms

1
New cards

Abstraction

Reducing complexity by focusing on the main idea and suppressing unnecessary details.

2
New cards

Algorithm

A finite set of instructions that accomplish a specific task.

3
New cards

Binary

A base-2 numeral system that uses only two digits: 0 and 1.

4
New cards

Bit

The smallest unit of data in computing, representing a single binary value (0 or 1).

5
New cards

Boolean

A data type that has two possible values: true or false.

6
New cards

Byte

A group of 8 bits.

7
New cards

Cloud Computing

Using remote servers on the Internet to store, manage, and process data.

8
New cards

Compilation

The process of translating source code into machine code.

9
New cards

Compression

The process of reducing the size of data.

10
New cards

Data Type

A classification of data which tells the compiler or interpreter how the programmer intends to use the data.

11
New cards

Debugging

Finding and fixing problems in an algorithm or program.

12
New cards

Decomposition

Breaking a problem into smaller, manageable parts.

13
New cards

Digital

Data that is represented using discrete (binary) values.

14
New cards

Digital Divide

The gap between those who have access to technology and those who do not.

15
New cards

Encryption

Transforming information to make it secure from unauthorized users.

16
New cards

Event

An action or occurrence recognized by software that may be handled by the program.

17
New cards

Function

A named section of a program that performs a specific task.

18
New cards

Hardware

The physical components of a computer system.

19
New cards

High-Level Language

A programming language with strong abstraction from the details of the computer.

20
New cards

Input

Data that is entered into a computer system.

21
New cards

Integer

A whole number data type.

22
New cards

Iteration

The repetition of a process or set of instructions.

23
New cards

Library

A collection of pre-written code that can be used to optimize tasks.

24
New cards

Loop

A control structure that repeats a block of code.

25
New cards

Low-Level Language

A programming language that provides little or no abstraction from a computer's instruction set.

26
New cards

Metadata

Data that describes other data, such as including when or where the data was taken.

27
New cards

Modeling

Creating a representation of a system or process.

28
New cards

Network

A group of two or more computer systems linked together.

29
New cards

Output

Data that has been processed into a useful format.

30
New cards

Overflow Error

An error that occurs when a calculation exceeds the allocated number of bits.

31
New cards

Parameter

A variable used to pass information between functions.

32
New cards

Phishing

A fraudulent attempt to obtain sensitive information.

33
New cards

Pixel

The smallest unit of a digital image or display.

34
New cards

Procedure

Another name for a function or subroutine.

35
New cards

Protocol

A set of rules governing the exchange of data.

36
New cards

Pseudocode

A method of planning which uses plain English to describe the steps of an algorithm.

37
New cards

Redundancy

the inclusion of extra components so that a system can continue to work even if individual components fail, for example by having more than one path between any two connected devices in a network.

38
New cards

Router

A device that forwards data packets between computer networks.

39
New cards

Runtime

The period when a program is running.

40
New cards

Server

A computer that provides data to other computers.

41
New cards

Simulation

Imitating the behavior of a process or system.

42
New cards

Software

The programs and other operating information used by a computer.

43
New cards

String

A data type used in programming, used to represent text.

44
New cards

Syntax

The rules that define the combinations of symbols that are considered to be correctly structured programs.

45
New cards

Testing

Executing a program with the intention of finding errors.

46
New cards

Traversal

Accessing each element in a list one at a time.

47
New cards

User Interface

The space where interactions between humans and machines occur.

48
New cards

Variable

A named storage location for a value.

49
New cards

Boolean Expression

An expression that evaluates to either true or false.

50
New cards

Certificate Authority

An entity that issues digital certificates.

51
New cards

Crowdsourcing

Obtaining input or data from a large number of people via the internet.

52
New cards

Data Abstraction

Representing data in a simplified form.

53
New cards

Data Mining

Analyzing large datasets to discover patterns.

54
New cards

Event-Driven Programming

Program flow determined by events such as user actions.

55
New cards

Lossless Compression

A data compression algorithm that allows the original data to be perfectly reconstructed.

56
New cards

Lossy Compression

A data compression method that removes less important information.

57
New cards

Open Source

Software with source code that anyone can inspect, modify, and enhance.

58
New cards

Packet

A small segment of data sent over a network.

59
New cards

Parallel Computing

The simultaneous execution of computations.

60
New cards

Program

A collection of instructions that performs a specific task when executed by a computer.

61
New cards

Sequential Computing

Processing one instruction at a time.

62
New cards

Source Code

Human-readable instructions written by a programmer.

63
New cards

Syntax Error

An error in the syntax of a program.

64
New cards

Trusted Certificate

A digital certificate that is trusted because it was issued by a known certificate authority.

65
New cards

Whitelist

A list of approved or safe elements.

66
New cards

Blacklist

A list of disapproved or harmful elements.

67
New cards

Latency

Time delay in transmitting data.

68
New cards

IP Address

A unique string of numbers identifying each device on a network.

69
New cards

REPEAT 4 TIMES

MOVE_FORWARD()

TURN_LEFT()

Draws a square by moving and turning 4 times.

70
New cards

IF score > 90

DISPLAY("A")

Displays 'A' if the score is greater than 90.

71
New cards

total = 0

FOR EACH num IN list

total = total + num

Adds up all numbers in a list.

72
New cards

WHILE NOT atGoal()

MOVE_FORWARD()

Keeps moving forward until the goal is reached.

73
New cards

DEFINE square(n)

RETURN n * n

Defines a procedure to return the square of a number.

74
New cards

x = RANDOM(1, 10)

Sets x to a random number between 1 and 10.

75
New cards

IF isRaining

BRING_UMBRELLA()

Checks if it's raining, then brings an umbrella. If it is not raining nothing happens.

76
New cards

name = INPUT()

Prompts the user to input a name. Stores it as a string in the variable "name"

77
New cards

IF password = "admin"

ACCESS_GRANTED()

Grants access if the password matches.

78
New cards

counter = 0

REPEAT 10 TIMES

counter = counter + 1

DISPLAY(counter)

Counts from 1 to 10.

79
New cards

list = [1, 2, 3]

APPEND(list, 4)

Adds 4 to the end of the list.

80
New cards

FOR i FROM 1 TO 5

DISPLAY(i)

Displays numbers from 1 to 5.

81
New cards

IF age >= 18

DISPLAY("Adult")

ELSE

DISPLAY("Minor")

Checks if age is 18 or older. Displays "Adult" if they are, displays "Minor" if not.

82
New cards

DEFINE greet(name)

DISPLAY("Hello")

DISPLAY(name)

greet("John")

Hello John

83
New cards

REMOVE(list, 0)

Removes the first item from a list.

84
New cards

list[-1] = 42

Changes the last item in the list to 42.

85
New cards

FOR EACH item IN list

DISPLAY(list)

Displays the full list the same number of times as the length of the list.

86
New cards

FOR EACH item IN list

DISPLAY(item)

Displays every item in a list.

87
New cards

IF x > 10

x = x - 1

Decreases x by 1 if it's greater than 10.

88
New cards

REPEAT UNTIL NOT CAN_MOVE(forward)

{

mystery()

}

Runs the mystery function over and over while the robot can move forward.

89
New cards

NOT isEmpty(list)

Returns True if the list has elements.

90
New cards

x = x + 1

Increases x by 1.

91
New cards

DISPLAY(LENGTH(list))

Displays how many items are in the list.

92
New cards

DEFINE double(x)

RETURN x * 2

Returns twice the input value.

93
New cards

100 MOD 6

Calculates the remainder when 100 is divided by 6. This problem's result is 4.

94
New cards

PSEUDOCODE:

temp = list[1]

Stores the first item in the list in a temporary variable.

95
New cards

Selection

A generic term for a type of programming statement (usually an if-statement) that uses a Boolean condition to determine, or select, whether or not to run a certain block of statements.

96
New cards

Call to a function

This is the piece of code that you add to a program to indicate that the program should run the code inside a function at a certain time.

97
New cards

Argument

a value provided to a function when the function is called. This value is assigned to the corresponding parameter in the function.

98
New cards

Types of Input

mouse, keyboard, camera, touchscreen, voice command

99
New cards

Types of Output

text, graphics, audio, video, printing

100
New cards

List

A data type that can store a collection that can assign new values to individual elements, or add or remove elements because it is Mutable.

A list manages complexity by not needing individual variables to assign each value.