Test Online Free Python Institute PCAP-31-03 Exam Questions and Answers

The questions for PCAP-31-03 were last updated On Aug.15 2022

Get PCAP-31-03 Full Access
 / 2

Question No : 1
What is the expected output of the following snippet?



Answer:

Question No : 2
Assuming that the following snippet has been successfully executed, which of the equations are False? (Select two answers)



Answer:
Explanation:
>>> print(len(a)==len(b)) True
>>> print(a[0]-1==b[0]) True
>>> print(a[0]==b[0]) False
>>> print(b[0]-1 == a[0]) False

Question No : 3
Assuming that String is six or more letters long, the following slice
String[1:-2]
is shorter than the original string by:

Answer:

Question No : 4
Select the valid fun () invocations:
(select two answers)
def fun (a, b=0):
return a*b

Answer:

Question No : 5
What is true about Python packages? (Select two answers)

Answer:

Question No : 6
What can you deduce from the following statement? (Select two answers)
str = open('file.txt', "rt")

Answer:

Question No : 7
What is the expected output of the following code?



Answer:

Question No : 8
What is the expected behavior of the following code?



Answer:

Question No : 9
The following expression
1+-2
is:

Answer:

Question No : 10
Which of the following lines of code will work flawlessly when put independently inside theadd_new () method in order to make the snippet's output equal to [0, 1, 1]? (Select two answers)



Answer:

 / 2
  TOP 50 Exam Questions
Exam