Object Oriented Programming midterm flashcards

Object Oriented Programming midterm flashcards

UNK CYBR 150

Isac (lvl 7)
Unsectioned

Preview this deck

Only instance a data attribute can be directly referenced

Front

Star 0%
Star 0%
Star 0%
Star 0%
Star 0%

0.0

0 reviews

5
0
4
0
3
0
2
0
1
0

Active users

2

All-time users

2

Favorites

0

Last updated

8 months ago

Date created

Apr 2, 2024

Cards (41)

Unsectioned

(41 cards)

Only instance a data attribute can be directly referenced

Front

If it is a constant (ALL CAPS)

Back

Modeling language used to describe code

Front

Unified Modeling Language (UML)

Back

In Python, what do we call setters

Front

Mutator methods

Back

Data type that is returned from the superstring function

Front

String

Back

Number of times a function calls itself

Front

Depth of recursion

Back

Order of parsing

Front

Open -> Read -> Close

Back

What is a class

Front

A blueprint for creating objects

Back

Polymorphism

Front

Default values

Back

How are data attributes accessed by external code

Front

Getters and Setters

Back

Prominent method type called in a to-string

Front

Getters

Back

4 Pillars of object-oriented programming

Front

Abstraction, Encapsulation, Polymorphism, Inheritance

Back

Give some examples of helper functions

Front

Equal to, compare to

Back

Define class

Front

Define how to create objects (instances) that possess a set of attributes and methods

Back

Proper order of methods for an object

Front

Init -> Helpers -> Getters -> Setters -> To-string

Back

Class header (Identify)

Front

Sub header (parenthesis)

Back

Functions of the to-string

Front

To build AND return a string that represents the state of an object

Back

Recursive function

Front

A function that calls itself

Back

Inheritance relationship

Front

"Is a" relationship

Back

Multi-dimensional array, be able to tell each level

Front

All list except for last level that will be data

Back

Front: What is an array

Front

 A list of elements

Back

What method is automatically called when an object is passed through the print function

Front

To-string

Back

Multi-dimensionality

Front

For loops equal the array (EX: 4 for loops for 4-dimensional array)

Back

Procedural programming

Front

Object is a collection of procedures/functions

Back

What a superclass is

Front

A class from which other classes are derived

Back

State of the function where the depth of recursion is met

Front

Base Case - Recursive Case

Back

In Python, what do we call getters

Front

Accessor methods

Back

Front: Which method types can actually refer to data attributes

Front

Getters and Setters

Back

Describe init function

Front

Initializes the object's state

Back

How a superclass data attributes and methods get incorporated into a subclass

Front

A subclass inherits ALL of the data attributes and methods of its superclass

Back

What method types can refer to data attributes?

Front

Getters and setters

Back

Whether recursion is more efficient than iteration or other functions

Front

Always less efficient

Back

What key is used in lists

Front

The index

Back

How do you create an instance of a class

Front

You call the class using class name and pass in whatever arguments its __init__ method accepts

Back

A list is nothing more than

Front

A memory address

Back

General term for initialization method

Front

Constructors

Back

 The term for a list being able to hold different data types

Front

Heterogeneous

Back

Indirect recursion is

Front

When function A calls function B, and function B calls function A

Back

How to make a function/variable private

Front

Using double underscores before the name (e.g., "__variable")

Back

Dot Notation

Front

Syntax used to access attributes or methods of an object

Back

1st argument of any definition in a class

Front

'self'

Back

How many for loops do you need for a 4 dimensional array?

Front

4 for loops

Back