Flashcard on Object-Oriented Programming Principles

Flashcard on Object-Oriented Programming Principles

Assessment

Flashcard

Computers

12th Grade

Hard

Created by

Krista Sweckard

FREE Resource

Student preview

quiz-placeholder

15 questions

Show all answers

1.

FLASHCARD QUESTION

Front

What is the primary purpose of encapsulation in OOP?

Back

To restrict access to an object's data

2.

FLASHCARD QUESTION

Front

Which of the following best describes a 'has-a' relationship?

Back

An object of class A encapsulates an object of class B for essential purposes

3.

FLASHCARD QUESTION

Front

What does high coupling between classes imply?

Back

Classes are interconnected and changes in one affect the other

4.

FLASHCARD QUESTION

Front

What is the role of the 'Drive' method in the Car class?

Back

To control the forward and backward movement of the car

5.

FLASHCARD QUESTION

Front

Which Unity class is used to get player input in the Player script?

Back

Input

6.

FLASHCARD QUESTION

Front

What is the main advantage of using abstraction in class design?

Back

To simplify the interface and hide complex details

7.

FLASHCARD QUESTION

Front

In the context of OOP, what does the term 'interface' refer to?

Back

The public methods of a class that allow interaction

Create a free account and access millions of resources

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?