Basics

Basics

University

12 Qs

quiz-placeholder

Similar activities

Hari 3 - Kuis Coding & Perkenalan AI

Hari 3 - Kuis Coding & Perkenalan AI

University

10 Qs

Teknologi Semasa Dalam Pembangunan Web

Teknologi Semasa Dalam Pembangunan Web

University

9 Qs

Piaget's Stages of Cognitive Development

Piaget's Stages of Cognitive Development

University

15 Qs

How well do you know Seb???

How well do you know Seb???

University

9 Qs

Sciences

Sciences

KG - University

10 Qs

Flutter & Dart Overview

Flutter & Dart Overview

University

12 Qs

OOPS MOCK QUIZ

OOPS MOCK QUIZ

University

10 Qs

Basics

Basics

Assessment

Quiz

Fun

University

Medium

Created by

Fatma Orsun

Used 8+ times

FREE Resource

AI

Enhance your content

Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...

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

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

By signing up, you agree to our Terms of Service & Privacy Policy

Already have an account?