DCIT50 (LEC) Flashcards

1
Q

what is the programming model used in functional programming?

A

declarative

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

what programming model do object-oriented programming uses?

A

imperative programming model

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

in functional programs, what are the main elements of the code?

A

variables and functions

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

in object-oriented programs, what are the key elements?

A

objects and methods

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

it is a programming paradigm that provides a means of structuring programs so that properties and behaviors are bundled into individual objects

A

object-oriented programming

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

it models real-world entities as software objects that have some data associated with them and can perform certain operations

A

object-oriented programming

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

it is a group of objects that share common properties and behavior

A

class

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

it is a blueprint or template from which objects are created

A

class

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

it is an instance of a class

A

object

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

they are basically an encapsulation of data variables and methods acting on that data into a single entity

A

objects

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

these are variables of a class that are shared between all of its instances

A

class attributes

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

they are owned by one specific instance of the class and are not shared between instances

A

instance attributes

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

what are the qualities of object-oriented model?

A

classes and objects
encapsulation
abstraction
inheritance
polymorphism

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

it is where the blueprint for an object is defined

A

class

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

it defines the methods, attributes, and other aspects of the object

A

class

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

they are created from classes

17
Q

it means to enclose all the important information in a capsule and expose all the other selected information to the outside world

A

encapsulation

18
Q

it is what a developer needs to implement in the software or a product for a better user experience

A

abstraction

19
Q

it is used to hide all the complexities and displays only essential information to the outside world

A

abstraction

20
Q

it means inheriting someone’s characteristics

A

inheritance

21
Q

they are one of the most essential and important characteristics of oops

A

combining and inheriting the objects and their properties

22
Q

it means to have the same name of a method performing different tasks

A

polymorphism

23
Q

it has the ability to display the message in more than one form

A

polymorphism

24
Q

example of this is that a person can possess different characteristics at the same time

A

polymorphism

25
it is one of the fundamental concepts in object-oriented programming (OOP)
encapsulation
26
it describes the idea of wrapping data and the methods that work on data within one unit
encapsulation
27
it puts restrictions on accessing variables and methods directly and can prevent the accidental modification of data
encapsulation
28
these can only be changed by an object’s method
private variables
29
they are intended to be restricted within the class or object that defines them
private variables
30
it encapsulates data that prevents access directly from the class
private variables
31
it is essential for maintaining data integrity and ensures that the program operates as expected
data validation
32
where do the process of ensuring that inputs and how the class is modified or used set?
in data validation
33
it allows us to define a class that inherits all the methods and properties from another class
inheritance
34
it is also known as base class
parent class
35
parent class is also known as?
base class
36
it is a class that is extended or inherited by one or more other classes
parent class
37
it inherits attributes and methods from the parent class
child class
38
it can add its own attributes and methods in addition to those inherited from the parent class
child class
39
it allows child classes to properly initialized attributes or methods that are define in the parent class
super ()