Final Flashcards

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

A

object

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
Q

iterator

A

Type of any value in a for loop

26
Q

list

A

Mutable sequence that can hold any type

27
Q

method

A

Functions stored inside object

28
Q

object

A

Functions stored inside object

29
Q

operator overloading

A

Evaluating operator symbols

30
Q

overriding a method

A

Redefine a method

31
Q

scope

A

Variable name set of places in which it can be referenced

32
Q

sequence

A

Fixed length list of values

33
Q

setter

A

Change value of attribute

34
Q

statement

A

Change value of attribute

35
Q

tuple

A

immutable

36
Q

yield

A

Command for python to do something