Python Object-Oriented Programming Quiz

Python Object-Oriented Programming Quiz

University

10 Qs

quiz-placeholder

Similar activities

Variables y constantes

Variables y constantes

University

15 Qs

Variables Aleatorias y Modelos de Probabilidad

Variables Aleatorias y Modelos de Probabilidad

University

10 Qs

C Programming Day-10

C Programming Day-10

University

10 Qs

SIM- Module 1

SIM- Module 1

University

10 Qs

p2rt

p2rt

7th Grade - University

10 Qs

Internal Lab Quiz-1 CSECS

Internal Lab Quiz-1 CSECS

University

10 Qs

Understanding Classes in OOP

Understanding Classes in OOP

University

10 Qs

Week10: Analog to Digital Conversion and LCD

Week10: Analog to Digital Conversion and LCD

University

10 Qs

Python Object-Oriented Programming Quiz

Python Object-Oriented Programming Quiz

Assessment

Quiz

Engineering

University

Medium

Created by

Sankarsan Sahoo

Used 3+ times

FREE Resource

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does a class represent in Python?

A function

A blueprint for objects

A variable

A module

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is an object in Python?

A block of code

An instance of a class

A data type

A loop

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which method is called automatically when an object is created?

__start__

__create__

__init__

__object__

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does self refer to in a Python class method?

The class itself.

The current instance of the class.

A global variable.

A static variable.

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How do you create an object (instance) of a class named MyClass?

obj = MyClass()

obj = new MyClass

MyClass.create_object()

instance = MyClass.object

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is an instance variable in a Python class?

A variable shared among all instances of a class.

A variable defined outside the class.

A variable specific to an instance of a class.

A variable used for method overloading.

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following core principle of Object-Oriented Programming (OOP) that involves bundling data and methods that operate on that data into a single unit (class)?

Inheritance

Polymorphism

Encapsulation

Abstraction

Create a free account and access millions of resources

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?