Search Header Logo

Basics

Authored by Fatma Orsun

Fun

University

Used 8+ times

Basics
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

12 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

What is the difference between object-oriented programming and procedural programming?

Procedural programming can use looping and branching, but object-oriented programming cannot.

Procedural programming uses subroutines, but object-oriented programming does not allow them.

Procedural programming specifies a sequence of tasks, but object-oriented programming describes the properties of tools or items.

Procedural programming specifies a sequence of calculations, but object-oriented programming involves more logic.

2.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

How do object behaviors and attributes differ?

Attributes apply only to a specified object, but behaviors apply to other linked objects.

Behaviors are vector quantities, but attributes are scalars.

Attributes describe a state, but behaviors describe actions.

Behaviors describe dynamic properties, but attributes are static.

3.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

You are designing a traffic simulation program. What is a possible attribute that you could use for a car object?

opening the door

accelerating

cleaning

gas mileage

4.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Robert has gathered the requirements for a new solution, described the application he is going to build, and identified the main objects in the solution. What should he do next?

Describe object interactions.

Start writing code.

Build class diagrams.

Build CRC cards.

5.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

What is the purpose of encapsulation?

to protect an object from unwanted changes

to eliminate redundant properties

to separate attributes from behaviors

to organize attributes and behaviors in a hierarchical fashion

6.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

In addition to attributes and behaviors, which quality must a class possess?

a data type

a state

a color

a name

7.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Media Image

In the following class diagram, what does promote() represent?

an attribute

an abstraction

a behavior

a name

Access all questions and much more by creating a free account

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?