Pass Python Institute PCAP-31-03 exam questions - convert Test Engine to PDF [Q80-Q98] | TestBraindump

Pass Python Institute PCAP-31-03 exam questions - convert Test Engine to PDF [Q80-Q98]

Share

Pass Python Institute PCAP-31-03 exam questions - convert Test Engine to PDF

Pass Your PCAP-31-03 Exam Easily - Real PCAP-31-03 Practice Dump Updated May 08, 2026

NEW QUESTION # 80
Assuming that the following code has been executed successfully, selected the expression which evaluate to True (Select two answers)

  • A. b ( ) == 4
  • B. a is not None
  • C. a ! = b
  • D. a ( ) == 4

Answer: B,C


NEW QUESTION # 81
Which of the following statements are true? (Select two answers)

  • A. Python strings are actually lists
  • B. Python strings can be sliced like lists
  • C. Python strings can be concatenated
  • D. Python strings are mutable

Answer: B,C


NEW QUESTION # 82
What is the expected behavior of the following code?

  • A. it outputs <class ' IndexError' >
  • B. it outputs error
  • C. it outputs list assignment index out of range
  • D. the code is erroneous and it will not execute

Answer: C


NEW QUESTION # 83
What will the value of the i variable be when the following loop finishes its execution?

  • A. 0
  • B. 1
  • C. the variable becomes unavailable
  • D. 2

Answer: B

Explanation:
Pass only means there are no statements to execute it does not means the variable is unavailable. Try a Print statement Print(i) after the For Loop and there is your result.


NEW QUESTION # 84
What is the expected behavior of the following code?

  • A. it outputs 3
  • B. it outputs 1
  • C. it outputs 2
  • D. the code is erroneous and it will not execute

Answer: C


NEW QUESTION # 85
What is the expected behavior of the following code?

  • A. it outputs 2
  • B. it outputs 1
  • C. it outputs 3
  • D. the code is erroneous and it will not execute

Answer: C


NEW QUESTION # 86
What is true about the following snippet? (Select two answers)

  • A. the code will raise an unhandled exception
  • B. the siring I feel fine 'will be seen
  • C. the string what a pity will be seen
  • D. the string it's nice to see you will be seen

Answer: B,C


NEW QUESTION # 87
What is the expected behavior of the following code?

  • A. it outputs None
  • B. it outputs 'tuple' object does not support item assignment
  • C. 0it outputs list assignment index out of range
  • D. the code is erroneous and it will not execute

Answer: B


NEW QUESTION # 88
What is true about Object-Oriented Programming in Python? (Select two answers)

  • A. a subclass is usually more specialized than its superclass
  • B. if a real-life object can be described with a set of adjectives, they may reflect a Python object method
  • C. each object of the same class can have a different set of methods
  • D. the same class can be used many times to build a number of objects

Answer: B,D


NEW QUESTION # 89
What is the expected behavior of the following code?

  • A. It outputs 123
  • B. it outputs 321
  • C. it outputs 6
  • D. it raises an exception

Answer: C


NEW QUESTION # 90
Assuming that the math module has been successfully imported, which of the following expressions evaluate to True? (Select two answers)

  • A. math. hypot (2,5) == math.true (2.5)
  • B. math. cell (2,5) == math.floor (2.5)
  • C. math. hypot (3,4) == math.sqrt (25)
  • D. math. hypot (2,5) == math.truec (2.5)

Answer: C,D


NEW QUESTION # 91
Assuming that the snippet below has been executed successfully, which of the following expressions will evaluate to True? (Select two answers) string = 'python' [::2] string = string[-1] + string[-2]

  • A. string[0] == 'o'
  • B. len (string] == 3
  • C. string[0] == string[-1]
  • D. string is None

Answer: A


NEW QUESTION # 92
A property that stores information about a given class's super-classes is named:

  • A. _super_
  • B. _upper_
  • C. _ancestors_
  • D. _bases_

Answer: D


NEW QUESTION # 93
What is the expected behavior of the following code?

  • A. it outputs [4, 2, 0]
  • B. it outputs [3, 1]
  • C. it outputs [1, 3]
  • D. the code is erroneous and it will not execute

Answer: D


NEW QUESTION # 94
Assuming that the following piece of code has been executed successfully, which of the expressions evaluate to True? (Select two answers)

  • A. VarA == 3
  • B. hasattr(obj_b, 'prop_aa')
  • C. isinstance(obj_c,A)
  • D. obj_b.prop_a == 3

Answer: B,C


NEW QUESTION # 95
Assuming that the snippet below has been executed successfully, which of the following expressions will evaluate to True? (Select two answers) string = 'SKY' (:: -1) string = string (-1)

  • A. len (string) == 1
  • B. string (0) == string (-1
  • C. string (0) == 'Y'
  • D. string is None

Answer: A,C


NEW QUESTION # 96
Is it possible to safely check if a class/object has a certain attribute?

  • A. yes, by using the hasattr attribute
  • B. no, it is not possible
  • C. yes, by using the hasattr ( ) method
  • D. yes, by using the hassattr ( ) function

Answer: C


NEW QUESTION # 97
What is the expected output of the following snippet?

  • A. abc
  • B. The code will cause a runtime exception
  • C. 0
  • D. ABC

Answer: B

Explanation:


NEW QUESTION # 98
......

PCAP-31-03 Real Exam Questions and Answers FREE: https://www.testbraindump.com/PCAP-31-03-exam-prep.html

2026 Realistic Verified Free Python Institute PCAP-31-03 Exam Questions: https://drive.google.com/open?id=1pEAQySlupNEUHiekulcAqg3idzbFx-KZ