Search Header Logo

Python Functions and Features Quiz

Authored by Digital dreams

Computers

4th Grade

Used 1+ times

Python Functions and Features Quiz
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Why did we write the parameter “self” while defining the functions inside the classes?

We can access the functions created inside the class while using the objects of the class

We can access the functions created inside the class while using the variable of the class

We can access the functions created inside the function while using the objects of the function

None

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Polymorphism is considered as one of the important features of _______.

Function

Loop

Conditional statement

Object Oriented Programming

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is a class in python?

A way of organizing information of data type

programmers can reuse elements

can make multiple object from class

All of the above

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which module enables time zone calculations in our Python applications?

time

datetime

pytz

None

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the full form of the PIL library of python?

Python’s Image Library

Python Insert Library

Primary Image Library

All of them

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which function gives time in a proper format and astring format?

pytz.timezone()

datetime.now()

strftime()

None

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which function do we use to get the time zone?

pytz.time("timezone_name")

time(timezone_name)

pytz.timezone("timezone_name")

pytz.zone("timezone_name")

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?