最新的Python Institute Certified Associate in Python Programming - PCAP-31-03免費考試真題
問題1
What is the expected behavior of the following code?


正確答案: C
問題2
Which of the following statements are true? (Select two answers)
正確答案: C,D
問題3
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?


正確答案: C
問題4
Which of the following lambda function definitions are correct? (Select two answers)
正確答案: A,D
問題5
Python's built-in function named open () tries to open a file and returns:
正確答案: D
說明:(僅 VCESoft 成員可見)
問題6
What is the expected output of the following code?


正確答案: C
說明:(僅 VCESoft 成員可見)
問題7
A property that stores information about a given class's super-classes is named:
正確答案: B
問題8
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]
list1 = [False for i in range (1, 10) ]
list2 = list1 [-1:1:-1]
正確答案: A
說明:(僅 VCESoft 成員可見)
問題9
The simplest possible class definition in Python can be expressed as:
正確答案: C
說明:(僅 VCESoft 成員可見)
問題10
Python strings can be "glued" together using the operator:
正確答案: B
說明:(僅 VCESoft 成員可見)
問題11
Which of the following expressions evaluate to True? (Select two answers)
正確答案: B,D
問題12
What will the value of the i variable be when the following loop finishes its execution?


正確答案: A
說明:(僅 VCESoft 成員可見)
問題13
What is the expected output of the following snippet?


正確答案: B
說明:(僅 VCESoft 成員可見)

