LO13 Lesson 6

LO13 Lesson 6

10th Grade

18 Qs

quiz-placeholder

Similar activities

CP Module 2 Quiz Review

CP Module 2 Quiz Review

10th - 12th Grade

18 Qs

Basics Python

Basics Python

8th - 10th Grade

20 Qs

Math Extra Credits

Math Extra Credits

9th - 12th Grade

14 Qs

9.1.5 - Starter Quiz

9.1.5 - Starter Quiz

7th - 11th Grade

14 Qs

Python Повторення, змінні і вирази

Python Повторення, змінні і вирази

1st - 11th Grade

17 Qs

Python - Chpt 3 - Review

Python - Chpt 3 - Review

9th - 12th Grade

15 Qs

CS Unit 3 Review questions

CS Unit 3 Review questions

9th - 12th Grade

17 Qs

LO13 Lesson 6

LO13 Lesson 6

Assessment

Quiz

Computers, Instructional Technology, Other

10th Grade

Medium

Created by

Samantha Cassia

Used 2+ times

FREE Resource

18 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

A Python module file can be imported into another Python file.

True

False

2.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

A Python file cannot contain variables.

True

False

3.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

A Python file cannot contain runnable code.

True

False

4.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

You can create your own modules.

True

False

5.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Which of the following is not an advantage of using modules?

Provides a means of reuse of program code

Provides a means of dividing up tasks

Provides a means of reducing the size of the program

6.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

A Python module is a file with the _____ file extension that contains valid Python code.
.pymodule
.py
.module
.pym

7.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Suppose a function called add() is defined in a module called adder.py.

Which of the following code snippets correctly shows how to import and use the add() function?

import add from adder

result = add(2, 3)

from adder import add

result = add(2, 3)

from adder import add

result = adder.add(2, 3)

import add

result = adder.add(2, 3)

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?