Search Header Logo

OOP MIDTERM EXAMINATION 24-25

Authored by JONARD LOPEZ

Computers

University

Used 1+ times

OOP MIDTERM EXAMINATION 24-25
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

15 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the primary focus of Object-Oriented Programming (OOP)?

Manipulating functions and logic to achieve specific tasks

Organizing software design around "objects" which encapsulate data and behavior

Developing code that executes in a linear, step-by-step fashion

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which concept in OOP restricts access to certain parts of an object’s data?

Inheritance

Polymorphism

Encapsulation

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

In OOP, what does the term 'method' refer to?

A variable that holds data for an object

A function defined inside a class that describes the behavior of an object

The blueprint for creating objects

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is an object in the context of OOP?

The blueprint used to create instances

A specific instance of a class that contains data and methods

A collection of variables with no associated behavior

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How does inheritance benefit OOP design?

It allows for code reuse and creates a hierarchy between classes

It hides the internal state of objects

It focuses on writing code sequentially

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the purpose of attributes in a class?

To define functions that can be performed on objects

To represent the state or characteristics of an object

To act as a template for creating methods

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which language is considered a strongly typed language, where each variable must be declared with a specific data type?

PHP

Java

Python

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?