ITP221-Midterms

ITP221-Midterms

University

42 Qs

quiz-placeholder

Similar activities

TUTORIAL 10

TUTORIAL 10

University

40 Qs

color quiz

color quiz

6th Grade - University

43 Qs

INSTRUMENT (BASIC) ชุดที่ 2

INSTRUMENT (BASIC) ชุดที่ 2

University

40 Qs

CHE 135-HAZARD AND RISK ASSESSMENT

CHE 135-HAZARD AND RISK ASSESSMENT

University

40 Qs

Strategic Management SeAMK 2019

Strategic Management SeAMK 2019

University - Professional Development

41 Qs

CONTACT (FINAL) FOR CT-4E ชุดที่ 2

CONTACT (FINAL) FOR CT-4E ชุดที่ 2

University

40 Qs

trivia Bible

trivia Bible

1st Grade - Professional Development

40 Qs

Power Systems Analysis

Power Systems Analysis

University

40 Qs

ITP221-Midterms

ITP221-Midterms

Assessment

Quiz

Other

University

Hard

Created by

Rod Puyat

Used 43+ times

FREE Resource

42 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is object-oriented programming (OOP)?

A way of organizing code for maximum reusability.

A method for writing procedural code.

A technique for managing databases.

A programming language.

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is a class in OOP?

A user-defined data type.

A built-in data type.

A function that creates objects.

A method for data manipulation.

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is an object in OOP?

An instance of a class.

A blueprint for a class.

A type of function.

A method for data encapsulation.

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does encapsulation refer to in Python?

Bundling of data and methods together.

Hiding the internal state of an object.

Creating multiple classes.

Using inheritance.

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is inheritance in OOP?

Acquiring properties and methods from another class.

Creating new classes without any base class.

A method for data encapsulation.

A way to define functions.

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What are the types of inheritance?

Single, Multiple, Multilevel, Hierarchical, Hybrid.

Public, Protected, Private.

Encapsulation, Abstraction, Inheritance.

Classes, Objects, Methods.

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the purpose of the self parameter in Python?

To refer to the current instance of the class.

To create a new instance of a class.

To define a class method.

To access class attributes.

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?