1.2.1 - 1.2.3 Notes Flashcards

1
Q

a group of instructive code that exists as an independent unit, which is easy to use with other code as needed

A

modular code

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

one type of abstraction, that provides a name for a process, may extract features in order to generalize functionality (allows reuse), allows the program to execute the statements within a procedure before continuing

A

procedural abstraction

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

the process of breaking a complex problem or system into parts that are easier to understand, conceive, program, and maintain

A

problem decomposition

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

a named group of programming instructions that may have parameters/return values

A

procedure

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

a trigger from the user or from a program that causes a specific part of the program to execute

A

event

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

connecting an event to a function

A

event handling

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

program statements are executed when triggered rather than sequentially

A

event-driven

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

a variable that can be used in any part of a program

A

global variable

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

similar to a list, declared by parentheses, but cannot be edited/changed within the code

A

tuple

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

common method for referencing the position of elements in a list or string using natural numbers

A

list index

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

each item in a specific location in one list correlates to the item in the same location within another list

A

parallel lists

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

attaching two things side-by-side with strings of text

A

concatenate

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

an ordered collection of items or values

A

list

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

native type of Python representing a sequence of characters

A

strings

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

any value that a method or function gives back ti the statement command from which the function/method is called

A

return values

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

used to test the relationship between two variables, expression, or values

A

relational operators

17
Q

compare two Boolean expressions using and, or, not

aka Boolean operators

A

logical operators

18
Q

helps to detect is a key will/won’t work when pressed by the user

A

onkeypress

19
Q

the value that are sent to the function when it is called

20
Q

the input variables of a procedure, a set of information included to help a process or function operate as intended

they are declared when writing the function

A

parameters

21
Q

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

22
Q

a repeating portion of an algorithm, repeats a specified number of times or until a condition is met

23
Q

parts of a algorithm are executed based on a condition being true/false

24
Q

application of each step of an algorithm in the order in which code statements are given

A

sequencing

25
a literal value ( 5 or "hello"), that is hard coded into a program instead of being assigned to a well-named variable. When used in large programs, they can be hard to find, their purpose hard to learn, and debugging them difficult
magic numbers
26
very common concept in comp sci and info tech meaning that a lot of detail of a system or a process is hidden, allowing the user to focus on the important details Ex: lists, functions
abstraction