importing classes in python

importing classes in python

9th - 12th Grade

19 Qs

quiz-placeholder

Similar activities

Python turtle year 8 assessment

Python turtle year 8 assessment

7th - 9th Grade

20 Qs

The Technology Life

The Technology Life

8th - 12th Grade

14 Qs

Python - Chpt 3 - Review

Python - Chpt 3 - Review

9th - 12th Grade

15 Qs

Basics Python

Basics Python

8th - 10th Grade

20 Qs

Python programming

Python programming

6th - 12th Grade

16 Qs

G10 Quiz 05/05/2021

G10 Quiz 05/05/2021

10th Grade

15 Qs

python modules

python modules

11th Grade

20 Qs

Micro:bit Python #1

Micro:bit Python #1

9th - 12th Grade

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