Python Institute PCAP-31-03 Actual Free Exam Questions & Community Discussion
Which of the following lines of code will work flawlessly when put independently inside the inc ( ) method in order to make the snippet's output equal to 3? (Select two answers)




Correct Answer: B,D
Vote an answer
Which of the following literals reflect the value given as 34.23? (select two answers)
Correct Answer: B,C
Vote an answer
Explanation: Only visible for EduDump members. You can sign-up / login (it's free).
Assuming that the following inheritance set is in force, which of the following classes are declared properly?
(Select two answers)

(Select two answers)

Correct Answer: A,C
Vote an answer
What is the expected output of the following snippet?


Correct Answer: A
Vote an answer
Explanation: Only visible for EduDump members. You can sign-up / login (it's free).
What is true about Python class constructors? (Select two answers)
Correct Answer: A,B
Vote an answer
What is the output of the following piece of code?


Correct Answer: A
Vote an answer
Explanation: Only visible for EduDump members. You can sign-up / login (it's free).
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]
Correct Answer: C
Vote an answer
Explanation: Only visible for EduDump members. You can sign-up / login (it's free).
What is the expected behavior of the following code?

It will:

It will:
Correct Answer: C
Vote an answer
What will the value of the i variable be when the following loop finishes its execution?


Correct Answer: D
Vote an answer
Explanation: Only visible for EduDump members. You can sign-up / login (it's free).
Which of the following expression evaluate to True? (Select two answers)
Correct Answer: D
Vote an answer
The following expression
1+-2
is:
1+-2
is:
Correct Answer: B
Vote an answer
Explanation: Only visible for EduDump members. You can sign-up / login (it's free).
Assuming that the code below has been placed inside a file named code.py and executed successfully, which of the following expressions evaluate to True? (Select two answers)


Correct Answer: A,B
Vote an answer
Assuming that the following snippet has been successfully executed, which of the equations are True? (Select two answers)


Correct Answer: B,C
Vote an answer
Explanation: Only visible for EduDump members. You can sign-up / login (it's free).
0
0
0
10

