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

A

objects

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
Q

it is one of the fundamental concepts in object-oriented programming (OOP)

A

encapsulation

26
Q

it describes the idea of wrapping data and the methods that work on data within one unit

A

encapsulation

27
Q

it puts restrictions on accessing variables and methods directly and can prevent the accidental modification of data

A

encapsulation

28
Q

these can only be changed by an object’s method

A

private variables

29
Q

they are intended to be restricted within the class or object that defines them

A

private variables

30
Q

it encapsulates data that prevents access directly from the class

A

private variables

31
Q

it is essential for maintaining data integrity and ensures that the program operates as expected

A

data validation

32
Q

where do the process of ensuring that inputs and how the class is modified or used set?

A

in data validation

33
Q

it allows us to define a class that inherits all the methods and properties from another class

A

inheritance

34
Q

it is also known as base class

A

parent class

35
Q

parent class is also known as?

A

base class

36
Q

it is a class that is extended or inherited by one or more other classes

A

parent class

37
Q

it inherits attributes and methods from the parent class

A

child class

38
Q

it can add its own attributes and methods in addition to those inherited from the parent class

A

child class

39
Q

it allows child classes to properly initialized attributes or methods that are define in the parent class

A

super ()