Python Library-1

Python Library-1

12th Grade

11 Qs

quiz-placeholder

Similar activities

Modular Programming & Algorithmic Strategies

Modular Programming & Algorithmic Strategies

12th Grade

10 Qs

FILE HANDLING IN PYTHON

FILE HANDLING IN PYTHON

12th Grade

10 Qs

Python Function and Library

Python Function and Library

12th Grade

14 Qs

C# Concepts and Code Quiz

C# Concepts and Code Quiz

12th Grade

15 Qs

[FSW] PRE-Test Chapter 5

[FSW] PRE-Test Chapter 5

12th Grade

15 Qs

Python Libraries - Random Numbers

Python Libraries - Random Numbers

12th Grade

10 Qs

XII  Csc Unit 1 Reduced one word

XII Csc Unit 1 Reduced one word

12th Grade

15 Qs

Python Random

Python Random

12th Grade

10 Qs

Python Library-1

Python Library-1

Assessment

Quiz

Computers

12th Grade

Hard

Created by

Bessie Carl

Used 27+ times

FREE Resource

11 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

Which of these definitions correctly describes a module?
a) Denoted by triple quotes for providing the specification of certain program elements
b) Design and implementation of specific functionality to be incorporated into a program
c) Defines the specification of how it is to be used
d) Any program that reuses code

2.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

Which of the following is not an advantage of using modules?
a) Provides a means of reuse of program code
b) Provides a means of dividing up tasks
c) Provides a means of reducing the size of the program
d) Provides a means of testing individual parts of the program

3.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

Program code making use of a given module is called a ______ of the module.
a) Client
b) Docstring
c) Interface
d) Modularity

4.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

______ is a string literal denoted by triple quotes for providing the specifications of certain program elements.
a) Interface
b) Modularity
c) Client
d) Docstring

5.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

Which of the following is not a valid namespace?
a) Global namespace
b) Public namespace
c) Built-in namespace
d) Local namespace

6.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

Which of the following is false about “import modulename” form of import?
a) The namespace of imported module becomes part of importing module
b) This form of import prevents name clash
c) The namespace of imported module becomes available to importing module
d) The identifiers in module are accessed as: modulename.identifier

7.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

Which of the following is false about “from-import” form of import?
a) The syntax is: from modulename import identifier
b) This form of import prevents name clash
c) The namespace of imported module becomes part of importing module
d) The identifiers in module are accessed directly as: identifier

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?