Python Institute Certified Associate in Python Programming - PCAP-31-03 模擬練習

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?

正解: B
What is the expected output of the following code?

正解: D
解説: (PassTest メンバーにのみ表示されます)
Files with the suffix .pyc contain:

正解: C
What is the expected behavior of the following code?

正解: D
What can you do if you don't like a long package path tike this one0 import alpha.beta.gamma.delta.epsiIon.
zeta

正解: B
解説: (PassTest メンバーにのみ表示されます)
What is the expected output of the following code?

正解: B
解説: (PassTest メンバーにのみ表示されます)
What is the expected behavior of the following code?

It will:

正解: C
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, 1] ? (Select two answers)

正解: A,D
The following expression
1+-2
is:

正解: D
解説: (PassTest メンバーにのみ表示されます)
What is the expected out of the following code of the file named zero_length_existing_file is a zero-length file located inside the working directory?

正解: C