AP CSP Exam All Units 2024

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

1/248

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.

249 Terms

1
New cards

Assignment: a ← 5

Evaluates expression and then assigns a copy of the result to the variable a.

2
New cards

DISPLAY(expression)

Displays the value of expression, followed by a space.

3
New cards

INPUT ( )

Accepts a value from the user and returns the input value.

4
New cards

Arithmetic Operators

Symbols (+, -, *, /) used to perform arithmetic on a and b.

5
New cards

a MOD b

Evaluates to the remainder when a is divided by b. Looks like this in Python 3%5

6
New cards

RANDOM(a, b)

Generates and returns a random integer from a to b, including a and b.

7
New cards

Relational Operators

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

8
New cards

NOT condition

Evaluates to true if condition is false; otherwise evaluates to false.

9
New cards

condition1 AND condition2

Evaluates to true if both condition1 and condition2 are true; otherwise evaluates to false.

10
New cards

condition1 OR condition2

Evaluates to true if condition1 is true or if condition2 is true or if both condition1 and condition2 are true; otherwise evaluates to false.

11
New cards

List Operations

Various operations (e.g., INSERT, APPEND, REMOVE) that can be performed on lists.

12
New cards

aList ← [value1, value2, value3, ...]

Creates a new list that contains the values value1, value2,

value3, and ... at indices 1, 2, 3, and ...

respectively and assigns it to aList.

13
New cards

aList[i]

Accesses the element of aList at index i.

14
New cards

x ← aList[i]

Assigns the value of aList[i] to the variable x.

15
New cards

Procedures

Defines a named block of code that can be called and executed. In python we called this a function.

16
New cards

Robot

Describes the movement and sensing capabilities of a robot, including MOVE_FORWARD, ROTATE_LEFT, ROTATE_RIGHT, and CAN_MOVE.

17
New cards

REPEAT UNTIL(condition)

Repeats commands until the Boolean expression condition is true.

18
New cards

aList ← [ ]

Empty list

19
New cards

aList ← bList

Assigns a copy of the list bList to the list aList.

For example, if bList contains [20, 40, 60],

then aList will also contain [20, 40, 60] after the

assignment.

20
New cards

aList[i] ← x

Assigns the value of x to aList[i].

21
New cards

aList[i] ← aList[j]

Assigns the value of aList[j] to aList[i].

22
New cards

INSERT(aList, i, value)

Any values in aList at indices greater than or equal to i are

shifted one position to the right. The length of the list is increased by

1, and value is placed at index i in aList.

23
New cards

APPEND(aList, value)

The length of aList is increased by 1, and value is placed at

the end of aList.

24
New cards

REMOVE(aList, i)

Removes the item at index i in aList and shifts to the left

any values at indices greater than i. The length of aList is

decreased by 1.

25
New cards

LENGTH(aList)

Evaluates to the number of elements in aList.

26
New cards

FOR EACH item IN aList

The variable item is assigned the value of each element of

aList sequentially, in order, from the first element to the last

element. The code in block of statements is executed

once for each assignment of item.

27
New cards

PROCEDURE procName(parameter1, parameter2, ...)

Defines procName as a procedure that takes zero or more

arguments. The procedure contains block of statements.

The procedure procName can be called using the following

notation, where arg1 is assigned to parameter1, arg2 is

assigned to parameter2, etc.:

procName(arg1, arg2, ...)

28
New cards

RETURN(expression)

Returns the flow of control to the point where the procedure was

called and returns the value of expression.

29
New cards

RETURN(expression)

Defines procName as a procedure and Returns the flow of control to the point where the procedure was

called and returns the value of expression.

30
New cards

MOVE_FORWARD()

The robot moves one square forward in the direction it is facing.

31
New cards

ROTATE_LEFT()

The robot rotates in place 90 degrees counterclockwise (i.e., makes an in-place left turn).

32
New cards

ROTATE_RIGHT()

The robot rotates in place 90 degrees clockwise (i.e., makes an in-place right turn).

33
New cards

CAN_MOVE(direction)

Evaluates to true if there is an open square one square in the

direction relative to where the robot is facing; otherwise evaluates to false. The value of direction can be left, right,

forward, or backward.

34
New cards

"BOB" and "34"

These are examples of strings since the have quotations around them

35
New cards

CONCAT("Dog", "House")

This creates the string "DogHouse" and is an example of concatenation. Remember there is NO space added to the new string.

36
New cards

SLICE("Samuel", 1, 3)

This creates the string "Sam". Remember that in pseudo code the computer starts counting at 1.

37
New cards

LOWER("Abc")

Creates "abc" shifting all the letters to lowercase

38
New cards

UPPER("Abc")

Creates "ABC" shifting all the letters to uppercase

39
New cards

REPLACE("abab", "b", "c")

Creates "acac" replacing all the b with c

40
New cards

SUBSTRING("03/31/1984", 7, 10)

Creates "1984" this is very similar to the SLICE command

41
New cards

TRIM(" acb efg ")

Creates "acb efg" by deleting white space at the beginning and end of the string BUT NOT the middle.

42
New cards

Internet

a global network of computing devices communicating with each other in some way, whether they're sending emails, downloading files, or sharing websites.

43
New cards

open network

any computing device can join the internet as long as they follow the rules of the game.

44
New cards

Wired and Wireless Connections

Physical connections between devices, plus protocols for converting electromagnetic signals into binary data.

45
New cards

IP

A protocol that uniquely identify devices using IP addresses and provides a routing strategy to send data to a destination IP address.

46
New cards

Protocol

A set of rules governing the exchange or transmission of data between devices on the internet

47
New cards

TCP/UDP

Protocols that can transport packets of data from one device to another and check for errors along the way.

48
New cards

TLS

A secure protocol for sending encrypted data so that attackers can't view private information.

49
New cards

HTTP & DNS

The protocols powering the World Wide Web, what the browser uses every time you load a webpage.

50
New cards

Computer Network

This is any group of interconnected computing devices capable of sending or receiving data.

51
New cards

Computer Device

This isn't just a computer—it's any device that can run a program, such as a tablet, phone, Google Home, Alexa or smart sensor.

52
New cards

Local Area Network (LAN)

Connects a group of computers in close proximity, such as in an office building, school, or home

53
New cards

Wide Area Network (WAN)

Spans a large geographic area such as a state, province, or country

54
New cards

Data Center Network (DCN)

a network used in data centers where data must be exchanged with very quickly

55
New cards

Ethernet Cable

cable that connects computers to the LAN that allows the computers to communicate with each other and other peripherals. Uses electricity.

56
New cards

fiber-optic cable

A cable that transmits data at close to the speed of light along glass or plastic fibers.

57
New cards

wireless connection

Uses radio signals to connect computers to wireless routers.

58
New cards

Line Coding

the process of converting digital data to digital signals to send through internet connections

59
New cards

Bitrate

the number of bits per second that can be transmitted along a digital network.

60
New cards

Latency

Time it takes for a bit to travel from its sender to its receiver along the internet.

61
New cards

Internet Speed

combination of bandwidth and latency

62
New cards

Bandwidth

The maximum amount of data that can pass from one point to another in a unit of time

63
New cards

IPv4

The Internet Protocol version 4 is the dominant protocol for routing traffic on the Internet, specifying "to" and "from" addresses using a dotted decimal such as "122.45.255.0".

64
New cards

IPv6

The Internet Protocol version 6 provides a large number of new addresses to route Internet traffic, using "from" and "to" addresses written as colon-hexadecimal notation, such as "fe80::42:acff:feaa:1bf0".

65
New cards

IPv4 numbers range from....

0-255 and have 4 sets of numbers (123.34.5.67)

66
New cards

IPv6 numbers range from...

0-f and have 8 sets of numbers (2001:0db8:000f:0042:0000:8a2e:0370:7334)

67
New cards

IP Address Hierarchy

IP Addresses are organized into Country/Network

Region/Network, Subnetwork, Device just like telephone numbers

68
New cards

IP Packet

a fixed amount of information packaged together with an IP address and other data for sending information over the internet

69
New cards

Internet Protocols

a set of rules which govern the way in which data is transmitted between computers on a network.

70
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.

71
New cards

fault tolerance

the ability for a system to respond to unexpected failures or system crashes as the backup system immediately and automatically takes over with no loss of service

72
New cards

World Wide Web (WWW)

A PART of the internet that provides information through documents including text, graphics, audio, and video files that use a special formatting language called HTML

73
New cards

DNS (Domain Name System)

The Internet's system for converting alphabetic names into numeric IP addresses.

74
New cards

Internet Scalability

the ability of the net to keep working even as the size of the network and the amount of traffic over the network increase.

75
New cards

Digital Divide

the gulf between those who have ready access to computers and the Internet, and those who do not.

76
New cards

single point of failure

A connection within a network that can cause the entire system to fail if the connection fails.

77
New cards

Computer Simulation

Based on computer models, gives users experience of events such as flying a plane.

78
New cards

Benefits of Computer Simulation

Cheaper and Faster than testing in real life

79
New cards

Drawback of Computer Simulation

Can never be 100% accurate

80
New cards

How is a simulation abstraction?

It simplifies a real world scenario so it can be modeled on a computer.

81
New cards

Echo Chamber

The idea that people pay attention to media that conforms to their ideological view to the exclusion of media that offer alternative perspectives.

82
New cards

Crowdsourcing

the dynamic social media process of employing users to participate in product design or product redesign

83
New cards

Crowdfunding

the practice of funding a project or venture by raising many small amounts of money from a large number of people, typically via the Internet.

84
New cards

Human Computation

Using human cognition to provide computational data via techniques such as crowdsourcing.

85
New cards

Citizen Scientist

A volunteer who records observations and contributes the data to a scientific study

86
New cards

Open Innovation Platforms

an electronic platform where people from different companies and independent contractors work collaboratively with internal research and development staff to innovate new ideas

87
New cards

IoT

Internet of things. The network of physical devices connected to the Internet. It typically refers to smart devices with an IP address, such as wearable technology and home automation systems.

88
New cards

IoT Sensors

gathers information on the machine and puts it on the internet; examples include detectors for temperature, motion, gas, position, etc

89
New cards

Personal Identifiable Information (PII)

A piece of data that can be used either by itself or in combination with some other pieces of data to identify a single person

90
New cards

Direct PII

PII directly identifies an individual

91
New cards

Indirect or Linkable PII

data that can be combined from separate sources to identify individuals

92
New cards

Web Cookies

a small piece of data sent from a website and stored in a user's web browser while the user is browsing that website.

93
New cards

third-party cookies

cookies put on a computer by those other than the website being visited, such as advertisers inserting their own cookies on a web page

94
New cards

search history

A list of queries entered into a search engine and also stored by the search engine.

95
New cards

browser history

A list of websites an individual has visited recently. This includes any data associated with the website and how long the user was on the website.

96
New cards

geolocation

The identification of the location of a person or object using technology like GPS, Cell Towers, Wifi, or IP addresses

97
New cards

phising attack

Emails designed to trick users into sharing private information.

98
New cards

spear phising attack

A type of phishing attack that targets specific people in an organization, using information gathered from previous reconnaissance and footprinting; the goal is to trick recipients into clicking a link or opening an attachment that installs malware.

99
New cards

rogue access point

A wireless access point that provides an attacker with unauthorized access to the traffic going over the network.

100
New cards

Malware (Malicious Software)

consists of programs that act without a user's knowledge and deliberately alter the operations of computers and mobile devices