Free Python Institute PCAP-31-03 Exam Actual Questions

The questions for PCAP-31-03 were last updated On Apr 25, 2024

Question No. 1

What is true about Python packages? (Select two answers)

Show Answer Hide Answer
Correct Answer: B, C

Question No. 2

A Python module named pymod.py contains a variable named pyvar.

Which of the following snippets will let you access the variable? (Select two answers)

Show Answer Hide Answer
Correct Answer: A, D

Question No. 3

Assuming that the code below has been executed successfully, which of the following expressions will always evaluate to True? (Select two answers)

import random

v1 = random. random()

v2 = random. random()

Show Answer Hide Answer
Correct Answer: B, C

Question No. 4

With regards to the directory structure below, select the proper forms of the directives in order to import module_

a. (Select two answers)

Show Answer Hide Answer
Correct Answer: A, D

Question No. 5

Which one of the platform module functions should be used to determine the underlying platform name?

Show Answer Hide Answer
Correct Answer: C