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

Page 12 of 37

Which of the following expression evaluate to True? (Select two answers)

  1. 'in not' in 'not'
  2. 'in' in 'Thames'
  3. 't' . upper ( ) in 'Thames'
  4. 'in' in 'in'

Answer(s): C,D



What is a true about python class constructors? (Select two answers)

  1. the constructor must have at least one parameter
  2. the constructor must return a value other than None
  3. the constructor is a method named_init_
  4. there can the more than one constructor in a Python class.

Answer(s): A,C



Which of the following lines of code will work flawlessly when put independently inside the add_new () method in order to make the snippet's output equal to [0, 1, 1] ? (Select two answers)

  1. put self.store(1])
  2. self put stire(1])
  3. self .put self.get () [-1])
  4. self .put (self.store[1])

Answer(s): B,D



What is the expected behavior of the following code? x - 3 % 1
y -1 if x > else 0
print (y)

  1. it outputs -1
  2. the code is erroneous and it will not execute
  3. it outputs 1
  4. it outputs 0

Answer(s): D



Page 12 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