Certified Associate in Python Programming Exam
PCAP-31-03 Exam
QUESTIONS & ANSWERS
(FREE - DEMO VERSION)
Download Now Updated PCAP-31-03 Exam PFD Demo
Buy Full Product Here
https://authenticdumps.com/dumps/pcap-31-03/ Certified Associate inPythonProgramming ExamPython Institute
PCAP-31-03 Exam
Questions & Answers
Demo Questions &AnswersPDF Page2
Version: 5.0
Question: 1
WhatistrueaboutPythonpackages? (Selecttwoanswers)
A.the__name__variable contentdetermines thewayinwhichthemodulewasrun
B.apackagecanbestoredasatreeofsub-directories/sub -folders
C.__pycache__is thenameofabuilt-invariable
D.hashbang isthenameofabuilt-inPythonfunction
Answer:D
Question: 2
APythonmodulenamedpymod.py containsavariablenamedpyvar.
Whichofthefollowing snippetswillletyouaccessthevariable? (Selecttwoanswers)
A.importpyvarfrompymodpyvar=1
B.frompymodimportpyvar=1
C.frompymodimportpyvarpyvar()
D.importpymodpymod.pyvar =1
Answer: AD
Question: 3
Assuming thatthecodebelowhasbeenexecuted successfully, whichofthefollowing expressions will
alwaysevaluatetoTrue?(Selecttwoanswers)
importrandom
v1=random.random()
v2=random.random()
A.len(random. sample([1,2,3],1)) >2
B.v1==v2
C.random.choice{[1,2,3]) >0
D.v1<1
Answer:CD
Question: 4 Questions &AnswersPDF Page3
Withregardstothedirectory structure below,selecttheproperformsofthedirectives inordertoimport
module_
a.(Selecttwoanswers)
A.importpypack.module_a
B.importmodule_a frompypack
C.importmodule_a
D.frompypackimportmodule_a
Answer:AD
Question: 5
Whichoneoftheplatform modulefunctions shouldbeusedtodetermine theunderlying platform
name?
A.platform.uname ()
B.platform.platform ()
C.platform.python_version()
D.platform.processor()
Answer:B