AP Computer Science

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

1/35

encourage image

There's no tags or description

Looks like no tags are added yet.

Last updated 11:54 PM on 11/14/24
Name
Mastery
Learn
Test
Matching
Spaced
Call with Kai

No analytics yet

Send a link to your students to track their progress

36 Terms

1
New cards

variable

a box that can hold one value at a time, such as one word, one costume, or one list (which can contain many things); you can look at what's inside as many times as you want

2
New cards

data abstraction

giving names to numbers, text, lists, etc; when you give something a name, you can refer to it without knowing exactly what the value is; the creation and use of abstract data types in a program

3
New cards

local variable

can be set or used only in the environment in which it is defined; this term includes inputs to procedures and variables created by the for or script variables block

4
New cards

Repeat until

a loop (just like repeat, forever, and for) but also a conditional (like if and if else); it repeats until a certain condition is met

5
New cards

predicate

a hexagon-shaped reporter that asks a true/false question; report a boolean value

6
New cards

Boolean value

either true or false

7
New cards

conditionals

control the code based on a true-or-false condition; i.e. if and if-else blocks

8
New cards

bug

an error in the code that makes the program behave differently than expected

9
New cards

global variable

a variable that is usable by all scripts in the program

10
New cards

Initialization

setting the starting value of a variable

11
New cards

index

the position number of an item in a list; the position of a character in a string (for example, a letter in a word)

12
New cards

element

another name for an item in a list (if the same value is in the list twice, that counts as two different elements); each element has a unique index (position) in the list

13
New cards

sublist

a list as an item of another list

14
New cards

data type

is what kind of data something is (number, text string, list, etc.)

15
New cards

primitive data types

data types that are built-in to each programming language

16
New cards

abstract data type (ADT)

a custom data type that's meaningful to your program; it's not built into the language - you develop it as you code; this is an abstraction because it hides the details inside the constructor and selectors

17
New cards

constructor

constructs one example of the data structure; by naming the pieces of the structure, the constructor makes it certain that every time you use it, you build the structure in the right order

18
New cards

selectors

they each select one piece of the data structure

19
New cards

composition of functions

using the result from an item as the input to address from contact

20
New cards

traversing a list

looking at each item of the list

21
New cards

input type (or domain)

the type of data that it accepts as input

22
New cards

output type (or range)

the type of data that it reports as output

23
New cards

selection

deciding (selecting) which part of an algorithm to run based on whether a condition is true or false; every algorithm can be constructed using sequencing (following steps in order), selection (deciding), and iteration (repeating)

24
New cards

nested conditional statement

an if or if else statement inside the else part of another if else statement; if the predicate of the outer if else statement is false, then inner (nested) conditional statement will test its predicate and decide what to do

25
New cards

string

an ordered sequence of characters

26
New cards

mod block

reports the remainder when the first input is divided by the second

27
New cards

software library

a collection of procedures that can be used in programs

28
New cards

application program interface (API)

documents what a programmer needs to know about using a library: it's a description of each procedure's purpose, inputs, and outputs (but not its algorithms)

29
New cards

web API

a call to a procedure on another machine

30
New cards

plagiarism

pretending that you wrote someone else's work

31
New cards

Creative Commons

a specific copyright license that allows others to use, share, and revise your work

32
New cards

Free software

software that anyone can copy, use, modify, and redistribute

33
New cards

Open source software

a more general term that means that a software's owner put the program's code online, but they may still restrict how people can use the program

34
New cards

Open access scholarly research reports

available for free download, rather than requiring the permission of a journal publisher

35
New cards

Digital Rights Management (DRM) software

publishers get copyright protection during the time when a work is most popular and control over the content forever

36
New cards

Digital Millennium Copyright Act (DMCA)

a US law that went into effect in 1998; it makes it a crime to figure out how to defeat DRM systems, whether or not a copyright is actually violated