runestone academy ap csp unit 3

5.0(2)
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
Card Sorting

1/62

flashcard set

Earn XP

Study Analytics
Name
Mastery
Learn
Test
Matching
Spaced

No study sessions yet.

63 Terms

1
New cards
code statement
program code that expresses an action to be carried out
2
New cards
variable
-names a memory location to hold many values in a program
-data abstraction (has associated data storage)
-stores data in the computer's main memory (RAM)
-data is volatile
3
New cards
get block
gets the variable's current value whenever needed in the program
4
New cards
set block
assigns or changes the value of the variable
5
New cards
assignment
sets a variable to a value or mathematical expression
6
New cards
display
displays variable values or values resulting from mathematical operators
7
New cards
expression
values, variables, math operators, and mathematical procedures that returns (evaluates) a single value
8
New cards
evaluation
set order of operations for expression defined by the programming language
9
New cards
operator
-a symbol or function representing a math operation
10
New cards
assignment operator
allows a program to change the value of a variable
11
New cards
relational operators
-used inside "if" statements to compare variables with values or math operators
-evaluates to a Boolean value
12
New cards
bitmap (raster)
memory organization or image file format used to store digital images
13
New cards
bit
-binary digit
-smallest unit of data
-fewer bits does not mean less information
14
New cards
run-length encoding (RLE)
-compression algorithm that represents an image by the length of runs of identical pixels
-lossless compression technique
-used in bitmap (BMP) images
15
New cards
image compression
-Data compression that reduces the number of bits of transmitted or stored data
-Size reduction depends on the number of bits/pixels, number of diff. colors in the image, amount of redundancy in the original data representation, and the application of the compression algorithm
16
New cards
American Standard Code for Information Interchange (ASCII)
-code for representing English characters as numbers
-each letter assigned a number from 0 to 127.
17
New cards
lossless compression
-Data compression technique in which no data is lost i.e. RLE
-Used in BMP images
-Used when the quality/ability to reconstruct the image is important
18
New cards
lossy compression
-Data compression technique in which some data is lost i.e. JPEG
-Greater size reduction than lossless compression
-Used when minimization of data size/transmission time is important
19
New cards
pixel (picture element)
single point in a graphic image
20
New cards
data type
The type of data stored in a variable i.e. string, boolean, or list.
21
New cards
analog data
values that change smoothly, rather than in discrete intervals, over time (i.e. pitch and volume of music, colors of a painting, position of a runner)
22
New cards
samples
-values of the analog signal at regular intervals
-measured to determine the number of bits required to store each sample
23
New cards
refactoring
-process of restructuring program code without changing its behavior
-simplifies design, making it easier to read & maintain
24
New cards
procedural abstraction
-Organizing and encapsulating algorithms in named procedures that can be called by name
-Makes program smaller, easier to read, and allows for code reuse
-Form of refactoring
-Allows programmers to change the internals of the procedure without needing to notify users of the change
25
New cards
program documentation
-Written description of the function of a code segment, event, procedure, or program and how it was developed
-Helps in developing and maintaining correct programs
26
New cards
comment
\-Non-executable block of text added to a program to provide clarification and documentation of the code
\-Can acknowledge code segments created collaboratively, by someone else, or by another source
27
New cards
bug
-error in computer hardware or software
-coined by Grace Hopper.
28
New cards
debugging
process of removing errors from computer software/hardware
29
New cards
tracing
stepping through the program line by line and carefully recording what happens to spot the error
30
New cards
modularity
separation of a program into independent modules that are each responsible for one aspect of the program's functionality.
31
New cards
flipped bit
bit that switches from 1 to 0 or vice versa
32
New cards
parity
evenness or oddness of a number
33
New cards
parity bit (redundant bit)
-bit that acts on a set of binary values
-added to the leftmost bit of a string of bits to ensure the number of bits are even or odd
34
New cards
even parity
number of 1s in the sequence add up to an even number
35
New cards
odd parity
number of 1s in the sequence add up to an odd number
36
New cards
list (array)
-stores multiple terms (elements) under one variable name and uses an index to number and access them in memory
-data abstraction (abstract data type)
37
New cards
element
individual value in a list that is assigned a unique index
38
New cards
index
number or position of an element in a list from 1 to the length of the list (natural numbers)
39
New cards
string
Sequence of characters that can stored in variable or text
40
New cards
substring
a string that is part of a longer string
41
New cards
concatenation
putting 2 strings together to make a new string
42
New cards
abstract data type (ADT)
defines a general data type that describes a collection of data without worrying about the specific implementation (i.e. list)
43
New cards
Application Programming Interface (API)
-Defines how other programs/web services can use it and communicate with it
-Specifies how procedures in a library behave and can be used
44
New cards
Global Positioning System (GPS)
allows people to pinpoint their geolocation (geographic location) on Earth using satellites.
45
New cards
database
-stores persistent data in the computer's long-term storage (i.e. TinyDB, Firebase)
46
New cards
volatile storage
stored data that is destroyed when exited
47
New cards
tag/value pairs
-stores data
-tag has to be a string
-value can be a number, string, or list that is stored & retrieved by their tag
48
New cards
data abstraction
-Separates the abstract properties of a data type and the concrete details of its representation
-Manages complexity by giving a collection of data a name without referencing its specific details
49
New cards
algorithm
a step-by-step procedure for solving a particular problem.
50
New cards
cloud computing
shares resources online on the Internet rather than having data be located on a personal computer
51
New cards
digital
-system based on discontinuous data or events
-computers are digital machines because they can distinguish between only 0's and 1's at the basic level
52
New cards
digital signal processing
manipulation of analog info
53
New cards
download
process of copying data (entire file) from an online source to a personal computer
54
New cards
megabyte
-unit of data characterization
-roughly 1 million bytes (2
55
New cards
megapixel
-one million pixels
-used in reference to the resolution of a graphics device
56
New cards
model
representation of a photograph in bits
57
New cards
modeling
-process of representing a real-world object of phenomenon as a set of mathematical equations
-process of capturing the representation of a photograph in bits
-always omits information
58
New cards
optical character recognition (OCR)
process of reading text from paper & translating the images into a form that the computer can manipulate
59
New cards
rendering
-transferring of bits representing a digital photograph to a computer screen or printer
-process of adding realism to computer graphics by adding 3D qualities i.e. shadows, variations in color & shade
60
New cards
spam
electronic junk mail/junk newsgroup postings
61
New cards
steganography
the art and science of hiding information by embedding messages within other, seemingly harmless messages.
62
New cards
cryptography
-"secret writing"
-protects information by transforming it into an unreadable format.
63
New cards
metadata
-Data about data
-Used for finding, organizing, and managing information
-Increases the effective use of data or data sets by providing additional information
-Allows data to be structured and organized