stud
bud
Sign up
Log in
Home
Library
Explore
SAT
More
Introduction to OOP Flashcards | StudBud
Explore
/
Introduction to OOP
Introduction to OOP
9 terms
·
StudBud Administration
·
150 plays
Basic concepts of object-oriented programming #OOP
Flashcards
9 cards
F
Practice quiz
P
Host live
L
Questions
9
Answers
1
What are objects made from?
variables (data items) and instantiations (behaviour)
tuples (data items) and methods (behaviour)
attributes (data items) and methods (behaviour)
lists (data items) and methods (behaviour)
2
What is information hiding?
Attributes are accessed and changed only by object’s methods
All methods and attributes are private
All data is encrypted
Methods are accessed and changed only by object’s attributes
3
What is encapsulation?
Keeping the the code within the same objection.
Keeping the data and the code within the same object.
Keeping the data in the same place.
Keeping the code in jail.
4
What does a class contain?
properties and real estate
local and global variables
properties or attributes (describes data) and methods
animals
5
What are the 2 main building blocks of an OOP program?
methods and functions
classes and objects
methods and variables.
objects and methods
6
In OOP what is a class?
A class is a list or dictionary
A class is an object
A class is a group of students
A class is a blueprint or template for an object
7
Describe Object Oriented Programming.
Real world intelligence modelling.
Objective correlative
The world is viewed as a collection of objects
Structured code using sequence, selection and iteration
8
What is instantiation?
The process of creating instants
The process of creating a class from a class
The process of creating an object from a class
The process of creating an method from a variable
9
What is an instance?
Every method is defined as an instance of a class
Every attribute is defined as an instance of a class
Every object is defined as an instance of a class
Every variable is defined as an instance of a class