Additional Prelim CP2 Flashcards

1
Q

What is Object-Oriented Programming?

A

A programming methodology that defines objects whose behaviors and interactions accomplish a given task

Object-Oriented Programming emphasizes encapsulation, inheritance, and polymorphism.

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

What does an object represent?

A

Either a real-world object or an abstraction

Objects can be tangible items or conceptual ideas.

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

What term describes the actions or functionalities of an object?

A

Behavior (methods)

Methods define how objects interact or perform operations.

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

What is an example of an object?

A

Car

A car can represent a specific type of object in programming.

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

What is a class in object-oriented programming?

A

A blueprint for defining the objects

Classes outline the structure and behavior of objects.

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