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

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






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

PCAP-31-03 Discussions & Posts