LO13 Lesson 6

LO13 Lesson 6

10th Grade

18 Qs

quiz-placeholder

Similar activities

10 56 Условия в Python

10 56 Условия в Python

10th Grade

15 Qs

Python Loops Quiz

Python Loops Quiz

10th Grade

20 Qs

Programming Basics Quiz

Programming Basics Quiz

8th Grade - University

20 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 Повторення, змінні і вирази

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

1st - 11th Grade

17 Qs

Python Syntax

Python Syntax

6th - 12th Grade

18 Qs

MAC - Unit 2

MAC - Unit 2

9th - 12th Grade

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