PCAP-31-03 Exam Question 16

What is the expected output of the following code if existing_file is the name of a file located inside the working directory?
  • PCAP-31-03 Exam Question 17

    What is the expected output of the following code?
  • PCAP-31-03 Exam Question 18

    The following class hierarchy is given. What is the expected output of the code?
  • PCAP-31-03 Exam Question 19

    A Python module named pymod, py contains a function named pyfun ( ).
    Which of the following snippets will let you invoke the function? (Select two answers)
  • PCAP-31-03 Exam Question 20

    What is the expected behavior of the following code?
    x = 8 ** (1/3)
    y = 2. if x < 2.3 else 3.
    print(y)