Free PCAP-31-03 Exam Braindumps (page: 19)

Page 19 of 37

You need data which can act as a simple telephone directory. You can obtain it with the following clauses (choose two relevant variants; assume that no other items have been created before)

  1. dir={'Mom':5551234567, 'Dad':5557654321>
  2. dir={'Mom':'5551234567', * Dad':'5557654321'}
  3. dir={Mom:5551234567, Dad:5557654321}
  4. dir={Mom:'5551234567', Dad:'5557654321'}

Answer(s): C,D



Can a module run like regular code?

  1. yes, and it can differentiate its behavior between the regular launch and import
  2. it depends on the Python version
  3. yes, but it cannot differentiate its behavior between the regular launch and import
  4. no. it is not possible; a module can be imported, not run

Answer(s): A



Select the valid fun () invocations:
(select two answers)
def fun (a, b=0):
return a*b

  1. fun(b=1)
  2. fun (a=0)
  3. fun(b=1, 0)
  4. fun (1)

Answer(s): B,D



A file name like this one below says mat: (select three answers) services. cpython-36.pyc

  1. the interpreter used to generate the file is version 3.6
  2. it has been produced by CPython
  3. it is the 36th version of the file
  4. the file comes from the services . py source file

Answer(s): A,B,D



Page 19 of 37



Post your Comments and Discuss Python Institute PCAP-31-03 exam with other Community members:

Mohammed commented on November 15, 2024
After checking these questions and reviewing all the answers and Explanations I realized that I would not have been able to pass the exam based on my current knowledge. This is completely changed my approach in how I am going to prepare now.
UNITED STATES
upvote

Nigel commented on September 27, 2024
Managed to pass my exam bu using the full version of this exam. This free version has less questions compared to PDF.
Spain
upvote

Idris Abraham Idilli commented on September 23, 2024
Very interesting
Anonymous
upvote