nerdexam
Python_Institute

PCAP-31-03 · Question #2

PCAP-31-03 Question #2: Real Exam Question with Answer & Explanation

Sign in or unlock PCAP-31-03 to reveal the answer and full explanation for question #2. The question stem and answer options stay visible for context.

Question

A Python module named pymod.py contains a variable named pyvar. Which of the following snippets will let you access the variable?

Options

  • Aimport pyvar from pymod pyvar = 1
  • Bfrom pymod import pyvar = 1
  • Cfrom pymod import pyvar pyvar ()
  • Dimport pymod pymod.pyvar = 1

Unlock PCAP-31-03 to see the answer

You've previewed enough free PCAP-31-03 questions. Unlock PCAP-31-03 for full answers, explanations, the timed quiz mode, progress tracking, and the master PDF. Question stem and options stay visible so you can still see what's on the exam.

Full PCAP-31-03 Practice