importing classes in python

importing classes in python

9th - 12th Grade

19 Qs

quiz-placeholder

Similar activities

CICS Test 2 Review

CICS Test 2 Review

9th - 12th Grade

15 Qs

Python Programming Quiz

Python Programming Quiz

9th - 12th Grade

20 Qs

Python

Python

6th - 10th Grade

17 Qs

Python Built-in Functions

Python Built-in Functions

11th - 12th Grade

15 Qs

Python_Unit 6 Graphics Review (6.1-6.6)

Python_Unit 6 Graphics Review (6.1-6.6)

9th - 10th Grade

20 Qs

Python Modules and More

Python Modules and More

9th Grade

20 Qs

PCAP Module 1 - Modules, Packages and PIP Review

PCAP Module 1 - Modules, Packages and PIP Review

9th - 10th Grade

14 Qs

LO13 Lesson 6

LO13 Lesson 6

10th Grade

18 Qs

importing classes in python

importing classes in python

Assessment

Quiz

Computers

9th - 12th Grade

Medium

Created by

Adrian Ortiga

Used 3+ times

FREE Resource

19 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Why is a good idea to store classes in modules in python?

To reduce the modularity of the code
To make the code more difficult to understand
To organize and reuse code, and prevent naming conflicts.
To increase the speed of the program

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

In python you can store your functions in a separate file called a...

folder
package
class
module

3.

FILL IN THE BLANK QUESTION

1 min • 1 pt

In python you can store your functions in a separate file called a...

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Importing classes is an _______ way to program.

outdated

effective

inefficient
complicated

5.

DRAG AND DROP QUESTION

1 min • 1 pt

You should write a ​ (a)   for each ​ (b)   you ​ (c)   .

docstring
module
create

6.

FILL IN THE BLANK QUESTION

1 min • 1 pt

Media Image

Write the python code needed to import the class Car from the module car.py

7.

FILL IN THE BLANK QUESTION

1 min • 1 pt

Write the python code needed to import the class Person from the module person.py

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?