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

Page 4 of 37

What is the expected behavior of the following code?

  1. it raises an exception
  2. it outputs True
  3. it outputs False
  4. it outputs nothing

Answer(s): B



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

  1. 121 + 1 != '!' + 2 * '2'
  2. 'AbC' lower () < 'AB'
  3. '1' + '1' + '1' < '1' * 3'
  4. '3.14' != str(3.1415)

Answer(s): A,D



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

  1. str(1-1) in '012345£739'[:2]
  2. 'phd' in 'alpha'
  3. 'deb' not in 'abcde' [::-1]
  4. 'True' not in 'False'

Answer(s): C,D



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]

  1. string[0] == string[-1]
  2. string is None
  3. len (string] == 3
  4. string[0] == 'o'

Answer(s): B,C



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