ap csp mcq

0.0(0)
Studied by 0 people
call kaiCall Kai
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
GameKnowt Play
Card Sorting

1/145

encourage image

There's no tags or description

Looks like no tags are added yet.

Last updated 2:05 PM on 5/14/26
Name
Mastery
Learn
Test
Matching
Spaced
Call with Kai

No analytics yet

Send a link to your students to track their progress

146 Terms

1
New cards

Variable

A named storage location that holds data in a program.

2
New cards

Why are variables useful?

They allow programs to store, update, and reuse information.

3
New cards

String

A data type that stores text.

4
New cards

Integer

A whole number data type.

5
New cards

Float

A number with decimals.

6
New cards

Boolean

A data type with only two values: True or False.

7
New cards

List

A collection of multiple values stored in one variable.

8
New cards

Index

The position of an item in a list. Most programming languages start at index 0.

9
New cards

Assignment Operator

= assigns a value to a variable.

10
New cards

Example of Variable Assignment

score = 0

11
New cards

Input

A value entered into a program by the user.

12
New cards

Output

Information displayed by the program.

13
New cards

Procedure

A named group of code that performs a task.

14
New cards

Function

A procedure that can return a value.

15
New cards

Parameter

A variable inside a procedure that receives input values.

16
New cards

Argument

The actual value passed into a procedure.

17
New cards

Example of a Parameter

def greet(name)

18
New cards

Example of an Argument

greet("Luis")

19
New cards

Return Statement

Sends a value back from a procedure.

20
New cards

Why use procedures?

They organize code and make programs reusable.

21
New cards

Algorithm

A step-by-step process used to solve a problem.

22
New cards

Sequencing

The order in which instructions execute.

23
New cards

Selection

Decision-making in a program using conditionals.

24
New cards

Iteration

Repeating code using loops.

25
New cards

Three Parts of an Algorithm

Sequencing, selection, and iteration.

26
New cards

Conditional Statement

Code that runs differently depending on whether a condition is true or false.

27
New cards

If Statement

Runs code only if a condition is true.

28
New cards

Elif Statement

Checks another condition if the previous one was false.

29
New cards

Else Statement

Runs if all previous conditions are false.

30
New cards

Boolean Expression

An expression that evaluates to True or False.

31
New cards

Comparison Operators

==, !=, >,

32
New cards

Logical Operators

and, or, not

33
New cards

What does == mean?

Checks if two values are equal.

34
New cards

What does != mean?

Checks if two values are not equal.

35
New cards

While Loop

Repeats code while a condition is true.

36
New cards

For Loop

Repeats code a certain number of times or through a list.

37
New cards

Infinite Loop

A loop that never stops because its condition is always true.

38
New cards

Loop Control Variable

A variable that changes to control loop repetition.

39
New cards

Counter Variable

A variable used to keep track of numbers or repetitions.

40
New cards

Accumulator

A variable that stores a running total.

41
New cards

Nested Loop

A loop inside another loop.

42
New cards

Iteration Example

while x < 5

43
New cards

Why are loops useful?

They automate repetitive tasks.

44
New cards

What does len() do?

Returns the number of items in a list or characters in a string.

45
New cards

What does .lower() do?

Converts text to lowercase.

46
New cards

What does .append() do?

Adds an item to the end of a list.

47
New cards

What does random.randint() do?

Generates a random integer within a range.

48
New cards

Syntax

The rules for writing code correctly.

49
New cards

Logic

The reasoning behind how code works.

50
New cards

Runtime Error

An error that happens while the program runs.

51
New cards

Syntax Error

An error caused by incorrect code formatting.

52
New cards

Logic Error

Code runs but produces incorrect results.

53
New cards

Debugging

Finding and fixing errors in code.

54
New cards

Comment

Text in code ignored by the computer and used for explanations.

55
New cards

Why use comments?

They make code easier to understand.

56
New cards

Data Abstraction

Using data structures like lists to simplify programs.

57
New cards

Managing Complexity

Making programs easier to build, read, and modify.

58
New cards

Why do lists manage complexity?

They store many values in one structure instead of separate variables.

59
New cards

What is an API?

A tool that allows programs to communicate with other software or services.

60
New cards

What is an abstraction?

Hiding unnecessary details to simplify use.

61
New cards

Binary

A number system using only 0s and 1s.

62
New cards

Why do computers use binary?

Computers use electrical signals with only ON and OFF states.

63
New cards

Bit

A single binary digit.

64
New cards

Byte

8 bits.

65
New cards

What is 0001 in binary?

1

66
New cards

What is 0010 in binary?

2

67
New cards

What is 0011 in binary?

3

68
New cards

What is 0100 in binary?

4

69
New cards

What is 0101 in binary?

5

70
New cards

What is 0110 in binary?

6

71
New cards

What is 0111 in binary?

7

72
New cards

What is 1000 in binary?

8

73
New cards

How do you convert binary to decimal?

Add the place values of all 1s.

74
New cards

Binary Place Values

128, 64, 32, 16, 8, 4, 2, 1

75
New cards

Example Binary Conversion

1010 = 8 + 2 = 10

76
New cards

Hexadecimal

Base-16 number system using 0-9 and A-F.

77
New cards

Overflow Error

When a number exceeds available storage space.

78
New cards

Lossy Compression

Compression that removes some data permanently.

79
New cards

Lossless Compression

Compression that reduces size without losing data.

80
New cards

Metadata

Data about data.

81
New cards

Computing Device

A machine that processes information.

82
New cards

Program

A set of instructions a computer follows.

83
New cards

Compiler

Translates code into machine language.

84
New cards

Interpreter

Runs code line by line.

85
New cards

Machine Language

The binary instructions understood by computers.

86
New cards

Open Source

Code that anyone can view or modify.

87
New cards

Internet

A global network connecting devices.

88
New cards

World Wide Web

A system of linked webpages on the internet.

89
New cards

IP Address

A unique address identifying a device on a network.

90
New cards

DNS

Converts website names into IP addresses.

91
New cards

Packet

A small piece of data sent across networks.

92
New cards

Routing

The process of directing packets across the internet.

93
New cards

Redundancy

Multiple pathways that improve network reliability.

94
New cards

Bandwidth

The maximum amount of data transmitted over time.

95
New cards

Latency

The delay in data transmission.

96
New cards

Protocol

Rules for transmitting data.

97
New cards

TCP

Ensures packets arrive correctly and in order.

98
New cards

IP

Handles addressing and routing packets.

99
New cards

HTTP

A protocol for transferring webpages.

100
New cards

HTTPS

A secure version of HTTP.