Final Flashcards

(36 cards)

1
Q

Accumulator

A

stores information in a for loop that can be used later

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

Attribute

A

variable stored inside object

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

Bottom up rule

A

uses first attribute or method definition it can find. object to class folder

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

call frame

A

representation of executing a function call

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

call stack

A

all call frames of executing function call

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

class

A

type not built into python

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

class definition

A

defines class, w attributes and methods

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

constructor

A

function that creates an object for a class

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

default argument

A

value given to parameter

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

encapsulation

A

hiding parts of data and implementation from users

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

exception

A

hiding parts of data and implementation from users

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

getter

A

Object that stores stack trace

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

generator

A

Function for creating iterable

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

global space

A

Stores any variable not defined in body of function

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

heap

A

Stores any variable not defined in body of function

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

immutable Attribute

A

Area of memory that stores mutable objects

17
Q

implementation

A

Has getter but no setter

18
Q

inheritance

A

Object can have method or attribute without being specifically mentioned

19
Q

interface

A

Object can have method or attribute without being specifically mentioned

20
Q

instance

21
Q

invariant

A

Information user reads to know how to use a Python feature

22
Q

is

A

Compares folder names, not contents

23
Q

isinstance

A

Compares folder names, not contents

24
Q

iterable

A

Type of any value in a for loop

25
iterator
Type of any value in a for loop
26
list
Mutable sequence that can hold any type
27
method
Functions stored inside object
28
object
Functions stored inside object
29
operator overloading
Evaluating operator symbols
30
overriding a method
Redefine a method
31
scope
Variable name set of places in which it can be referenced
32
sequence
Fixed length list of values
33
setter
Change value of attribute
34
statement
Change value of attribute
35
tuple
immutable
36
yield
Command for python to do something