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

Page 3 of 37

Which of the following snippets will execute without raising any unhandled exceptions? (Select answers)









Answer(s): B,C,D



What is the expected behavior of the following code?

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

Answer(s): B



What is the expected behavior of the following code?

  1. it outputs error
  2. it outputs list assignment index out of range
  3. the code is erroneous and it will not execute
  4. it outputs <class ' IndexError' >

Answer(s): B



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

  1. len('\'·) == 1
  2. len("""
    """) == o
  3. chr(ordCA') + 1) == 'B'
  4. ord("Z") - ord("z") -- ord("0")

Answer(s): B






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

PCAP-31-03 Discussions & Posts