LO13 Lesson 9_Modules

LO13 Lesson 9_Modules

10th Grade

18 Qs

quiz-placeholder

Similar activities

TES AdS (20 JUNI 2022)

TES AdS (20 JUNI 2022)

1st - 12th Grade

18 Qs

8525 AQA GCSE  3.1.1 Pseudo-code

8525 AQA GCSE 3.1.1 Pseudo-code

10th - 11th Grade

14 Qs

Python básico

Python básico

9th - 12th Grade

20 Qs

CS 2.01-2.05 Review

CS 2.01-2.05 Review

9th - 12th Grade

14 Qs

Tin 10 - Bái 21 - 22 - 23

Tin 10 - Bái 21 - 22 - 23

10th Grade

16 Qs

PRUEBA CORTA I - SISTEMA E INSTALACIÓN DE SOFTWARE I - U4

PRUEBA CORTA I - SISTEMA E INSTALACIÓN DE SOFTWARE I - U4

9th - 12th Grade

15 Qs

Python Essentials 119

Python Essentials 119

9th - 12th Grade

20 Qs

RPG (Lessons 17 - 24) Worksheet

RPG (Lessons 17 - 24) Worksheet

9th - 12th Grade

15 Qs

LO13 Lesson 9_Modules

LO13 Lesson 9_Modules

Assessment

Quiz

Computers, Instructional Technology, Other

10th Grade

Practice Problem

Medium

Created by

Samantha Cassia

Used 2+ times

FREE Resource

AI

Enhance your content in a minute

Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...

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

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?

Discover more resources for Computers