100% satisfaction guarantee Immediately available after payment Both online and in PDF No strings attached 4.2 TrustPilot
logo-home
Exam (elaborations)

PCAP-31-03 - Module 1 - Modules, Packages & PIP UPDATED ACTUAL Exam Questions and CORRECT Answers

Rating
-
Sold
-
Pages
12
Grade
A
Uploaded on
11-07-2025
Written in
2024/2025

PCAP-31-03 - Module 1 - Modules, Packages & PIP UPDATED ACTUAL Exam Questions and CORRECT Answers Decomposition - CORRECT ANSWER manageable parts, using modules Module - CORRECT ANSWER breaking a large problem into smaller more a file containing python definitions and statements Module user - CORRECT ANSWER Module supplier - CORRECT ANSWER someone who uses an existing module someone who creates a brand new module

Show more Read less
Institution
PCEP
Course
PCEP









Whoops! We can’t load your doc right now. Try again or contact support.

Written for

Institution
PCEP
Course
PCEP

Document information

Uploaded on
July 11, 2025
Number of pages
12
Written in
2024/2025
Type
Exam (elaborations)
Contains
Questions & answers

Subjects

Content preview

PCAP-31-03 - Module 1 - Modules, Packages
& PIP UPDATED ACTUAL Exam
Questions and CORRECT Answers
Decomposition - CORRECT ANSWER breaking a large problem into smaller more
manageable parts, using modules


Module - CORRECT ANSWER a file containing python definitions and statements



Module user - CORRECT ANSWER someone who uses an existing module



Module supplier - CORRECT ANSWER someone who creates a brand new module



What a module can contain (5 entities) - CORRECT ANSWER functions, constants,
objects, variables, classes


Namespace - CORRECT ANSWER a space in which names exist, with no names that
conflict each other ( no duplicates )


What happens to the namespace when module is imported? - CORRECT ANSWER All
the names become known but need to be qualified to enter the codes namespace, so there can be
a variable such as randint without conflict


Qualify - CORRECT ANSWER name of module, followed by dot, followed by name of
entity.
for example... random.randint()


import module math - CORRECT ANSWER import math

, import module math as 'm' - CORRECT ANSWER import math as m



make all entities in math accessible without qualification - CORRECT ANSWER from
math import *


To make the entity sin accessible without qualification - CORRECT ANSWER from math
import sin


Import sin under the name 's', and pi under name 'p' - CORRECT ANSWER from math
import sin as s, pi as p


Make sin accessible without qualification, and import the rest of math - CORRECT
ANSWER from math import sin
import math


A name gets assigned that's already in the namespace - CORRECT ANSWER the original
name is overwritten


dir() - CORRECT ANSWER returns alphabetically a sorted list containing the names for
all teh entities


pow(X, Y) - CORRECT ANSWER returns value X to the power of Y



ceil(x) - CORRECT ANSWER smallest integer greater or equal to x



ceil(1.4) - CORRECT ANSWER 2



floor(x) - CORRECT ANSWER largest integer less than of equal to x
$11.99
Get access to the full document:

100% satisfaction guarantee
Immediately available after payment
Both online and in PDF
No strings attached

Get to know the seller
Seller avatar
WIZGrades

Also available in package deal

Thumbnail
Package deal
PCAP Bundled Exam Questions WITH CORRECT Answers
-
5 2025
$ 61.45 More info

Get to know the seller

Seller avatar
WIZGrades Havard School
View profile
Follow You need to be logged in order to follow users or courses
Sold
9
Member since
1 year
Number of followers
1
Documents
4519
Last sold
1 month ago

0.0

0 reviews

5
0
4
0
3
0
2
0
1
0

Recently viewed by you

Why students choose Stuvia

Created by fellow students, verified by reviews

Quality you can trust: written by students who passed their tests and reviewed by others who've used these notes.

Didn't get what you expected? Choose another document

No worries! You can instantly pick a different document that better fits what you're looking for.

Pay as you like, start learning right away

No subscription, no commitments. Pay the way you're used to via credit card and download your PDF document instantly.

Student with book image

“Bought, downloaded, and aced it. It really can be that simple.”

Alisha Student

Frequently asked questions