PCAP-31-03 Exam Question 1

How many elements will the list2 list contain after execution of the following snippet?
list1 = [False for i in range (1, 10) ]
list2 = list1 [-1:1:-1]
  • PCAP-31-03 Exam Question 2

    The first parameter of each method:
  • PCAP-31-03 Exam Question 3

    What is the expected behavior of the following code?
  • PCAP-31-03 Exam Question 4

    The__bases__property contains:
  • PCAP-31-03 Exam Question 5

    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]