1.2: Comparing Procedural Programming to Object-Oriented Programming Flashcards

1
Q

Two popular approaches to writing computer programs

A

Procedural programming
Object-Oriented Programming

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

Writing computer programs as sets of operations executed in sequence

A

Procedural Programming

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

Named computer memory locations that hold values

A

Variables

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

Individual operations grouped into logical units

A

Procedures

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

It is an extension of procedural programming in which you take a slightly different approach to writing computer programs

A

Object-Oriented Programming

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

Writing object-oriented programs involves:

A

Creating classes, objects, and applications

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

Blueprints for objects in object-oriented programming

A

Classes

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

Specific instances of classes in object-oriented programming

A

Objects

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

Manipulates/uses objects in object-oriented programming

A

Applications

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

The three basic concepts in object-oriented programming

A

Encapsulation
Inheritance
Polymorphism

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

A term that describes a group or collection of objects with common properties.

A

Class

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

Describes what attributes a class’s objects will have and what those objects will be able to do.

A

Class definition

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

The characteristics that define an object.

Thy are properties of an object

A

Attributes

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

A specific, concrete instance of a class

A

Object

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

What creating an instance is called

A

Instantiation

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

The values of the properties of an object

A

State

17
Q

Besides defining properties, classes can also define what?

A

Methods their objects can use

18
Q

A self-contained block of program code that carries out some action

A

Method

19
Q

The enclosure of data and methods within an object. It allows the treatment of all of an object’s methods and data as a single entity

It also refers to the concealment of an object’s data and methods from outside sources. It lets you hide specific object attributes and methods from outside sources

A

Encapsulation

20
Q

Concealing data is sometimes called as:

A

Information hiding

21
Q

Concealing how methods work is referred to as:

A

Implementation hiding

22
Q

The ability to create classes that share the attributes and methods of existing classes, but with more specific features.

A

Inheritance

23
Q

Allows the same word or symbol to be interpreted correctly in different situations based on the context.

Means “many forms”

A

Polymorphism