Python Object-Oriented Programming Quiz

Python Object-Oriented Programming Quiz

University

10 Qs

quiz-placeholder

Similar activities

p2rt

p2rt

7th Grade - University

10 Qs

Internal Lab Quiz-1 CSECS

Internal Lab Quiz-1 CSECS

University

10 Qs

SEM-2(Python-Q1)

SEM-2(Python-Q1)

University

15 Qs

Understanding Python Classes and Objects

Understanding Python Classes and Objects

University

6 Qs

Python Basics-Quiz-I

Python Basics-Quiz-I

University

15 Qs

BugBlitz

BugBlitz

University

15 Qs

Quiz on Variables and Arithmetic Operations

Quiz on Variables and Arithmetic Operations

12th Grade - University

12 Qs

RoboRover

RoboRover

University

15 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?