AP CSP Vocab

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

1/115

flashcard set

Earn XP

Description and Tags

Flashcards from lecture notes.

Study Analytics
Name
Mastery
Learn
Test
Matching
Spaced

No study sessions yet.

116 Terms

1
New cards

Algorithm

An ordered set of clearly defined instructions used to accomplish a specific task.

2
New cards

(Turtle) Methods

Commands that tell the turtle to do a certain task.

3
New cards

Parameter

A value you can give the method to specify exactly how to behave; found in the parenthesis () after a method.

4
New cards

Input

Algorithms designed to accept information.

5
New cards

Expression

The variable(s) to the right of the assignment operator; an input statement.

6
New cards

Code statement

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

7
New cards

Output

The result of the algorithm.

8
New cards

Python terminal

The window that displays the text.

9
New cards

Variable

A place inside a program that can hold a value.

10
New cards

Data type

The data returned by the input statement.

11
New cards

Assignment operator

The = sign.

12
New cards

String

A sequence of the users input in "".

13
New cards

Integer

Users input, but all together as a number.

14
New cards

Code segment

A collection of program statements that is part of a program.

15
New cards

Iteration

A repeating portion of an algorithm a specified amount of times.

16
New cards

For loop

Iterates code (n) amount of times.

17
New cards

Equality operator

Checking to see if things are equal, then the method is performed (==).

18
New cards

Modulo operator

Calculates the remainder of division.

19
New cards

Relational operators

Test the relationship between 2 variables, expressions, or values (

20
New cards

Conditional expressions

Constructs that use relational operators and evaluate to true or false.

21
New cards

Boolean

An expression that evaluates to either true or false.

22
New cards

While loop

Happens as long as something stays true.

23
New cards

If statements

Only look over it once and move on after it happens, or skips over if condition isn’t met.

24
New cards

Zero iteration condition

Sometimes a loop never starts, it is this when it never does.

25
New cards

Arithmetic operations

Mathematical processes such as +, -, x, /, and modulus operations.

26
New cards

Nested loop/iteration

A loop within another loop.

27
New cards

Decidable problem

Problem for which an algorithm can be written to produce correct output for all inputs.

28
New cards

Undecidable problem

Problem for which no algorithm can be constructed that is capable of always providing a correct Yes-or-No answer.

29
New cards

Bugs

Imperfections and errors in code.

30
New cards

Debug

The process of figuring out why code doesn’t behave as expected and eliminating bugs to make it work as desired.

31
New cards

Sequentially

Code that executes in the order they appear in the code segment.

32
New cards

Initialized

When a variable is given a value for the first time. Until it is, it is undefined.

33
New cards

Block strings

Strings that begin with ‘ ‘ ‘ - this deactivates the code temporarily.

34
New cards

Incrementing counter

Adds one to itself at each iteration of the while loop.

35
New cards

List

A construct that groups data types.

36
New cards

Literals

A fixed value in source code such as 5 or “hello”.

37
New cards

Element

Each item in a list separated by a comma (similar to value).

38
New cards

.append(v)

Adds an element to the end of the list in the blank.

39
New cards

.pop()

Removes last element from a list, (can) assign it to a variable to save for later.

40
New cards

if conditional statement

Evaluates a Boolean (true or false), if met is executed.

41
New cards

if else conditional statement

Same as if statement, but if it isn’t met, it executes the else.

42
New cards

elif statement

Will only execute after the previous conditions evaluate to false and its own condition evaluates to true.

43
New cards

Modular code

A group of code that includes the necessary code to execute a specific desired functionality.

44
New cards

Function definition

def function_name(param1, param2):

45
New cards

Calling a function

function_name(value1, value2)

46
New cards

Procedures

Functions.

47
New cards

Event

A “trigger” that causes a specific part of the program to execute.

48
New cards

Global variables

Variables that are accessible inside and outside of a function.

49
New cards

Newline

The space at the end of a line of text, represented by /n.

50
New cards

Return values

Any value that a method or function gives back to the statement command from which the function or method is called (you get something back).

51
New cards

Logical operators

Boolean operators, compare two Boolean expressions: and, or, not.

52
New cards

Personally identifiable information (PII)

Information about an individual that is unique to the person.

53
New cards

Data breach

The unauthorized and illegal access of confidential or otherwise protected data.

54
New cards

Cookies

Little bits of saved information about your browser.

55
New cards

Phishing

Sending fraudulent emails that appear to be from legitimate companies with the intent to induce people to share sensitive info.

56
New cards

Malware

Software intended to damage a computing system.

57
New cards

Key-logger

A malware that detects and tracks what keys you press.

58
New cards

Cryptography

The science and art of delivering a message securely and confidentially.

59
New cards

Cipher

A secret or disguised way of writing, a code.

60
New cards

Encryption

The process if encoding data to prevent unauthorized access.

61
New cards

Decrypt

The process of decoding a message, reversing the encryption process.

62
New cards

Substitution cipher

A cipher in which each letter of the alphabet is replaced with a different character or symbol.

63
New cards

Key

Contains info necessary to determine the output of an encryption.

64
New cards

Brute force

Sequentially testing all solutions until it works.

65
New cards

Private key encryption

Encryption method where sender and receiver share a private key.

66
New cards

Symmetric key

Process where a single key is used in both encryption and decryption.

67
New cards

Public key encryption

There are 2 paired keys, one is public and the other is private.

68
New cards

Asymmetric encryption

Encryption using public key encryption.

69
New cards

SSL certificate

Digital document that verifies the person/place.

70
New cards

GUI

Graphical user interface providing human computer interaction.

71
New cards

API

Application programming interface to share code with other programmers.

72
New cards

Logic errors

The logic of your code poses a problem/error.

73
New cards

Syntax errors

Letter, words, punctuation errors, how it is written.

74
New cards

Runtime errors

Error while the program is running, often due to unexpected input or data.

75
New cards

isdigit

Determines if string consists of digits, if yes True, if no False.

76
New cards

isalpha

Determines if string has all letters, if yes, True, if no, False.

77
New cards

Breakpoint

Red dot next to line that pauses there when debugging.

78
New cards

Exception

An error or other message raised by the interpreter or compiler to indicate a special circumstance that should be handled by an exception handler.

79
New cards

Overflow error

Error when computer tries to handle a number outside of the defined range of value.

80
New cards

Byte

8 bits of binary code.

81
New cards

Bandwidth

Speed your computer can download or send data.

82
New cards

Computing device

Device that can connect to the network.

83
New cards

Network path

Directly connected computing devices beginning at sender, ends at receiver.

84
New cards

Servers

Larger computers that host shared resources.

85
New cards

DNS

A big phone book with IP addresses.

86
New cards

Routers

Connect networks and control traffic on the internet.

87
New cards

Packets

Small units of data transmitted on a network.

88
New cards

Metadata

Info about the packet that’s needed for its transmission.

89
New cards

lossless

Method of compression in which original data can be completely recovered from the compressed data without any loss of content.

90
New cards

lossy

Compression where data is lost and cannot be recovered from compressed data.

91
New cards

Threads

Separate independent tasks within a job.

92
New cards

Parallel processing/computing

Using two or more central processing units simultaneously, multitask on the same computing devices using different processors

93
New cards

Sequential processing

Processing that occurs in the order that it’s received.

94
New cards

Scalable

Has the potential to be enlarged to accommodate growth in user demand.

95
New cards

HTTP

Hypertext transfer protocol, powers the web by requesting webpages and send data.

96
New cards

IP

Internet protocol, determines how to address nodes (connection points).

97
New cards

API

Application programming interface, a library of procedures and how to call it.

98
New cards

TCP

Transmission Control Protocol, ensures all of your data is being sent, confirms it’s sent correctly and organized right.

99
New cards

UDP

User datagram protocol, sends data like TCP but doesn’t check that it’s all correct, best for videos.

100
New cards

Heuristic

A problem-solving technique or shortcut that prioritizes speed and efficiency over finding the absolute optimal solution.