Question 1

What is the expected output of the following snippet?
  • Question 2

    The following class definition is given. We want the show () method to invoke the get () method, and then output the value the get () method returns. Which of the invocations should be used instead of XXX?
  • Question 3

    If you want to transform a string into a list of words, what invocation would you use? (Select two answers) Expected output:
  • Question 4

    Which of the following lines of code will work flawlessly when put independently inside the add_new () method in order to make the snippet's output equal to [0, 1, 21 ? (Select two answers)
  • Question 5

    What is the expected output of the following code if the file named existing_text_file is a non-zero length text file located inside the working directory?