Flashcard on Object-Oriented Programming Principles

Flashcard on Object-Oriented Programming Principles

Assessment

Flashcard

Computers

12th Grade

Practice Problem

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

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?