Python Institute PCAP-31-03 Certified Associate in Python Programming Exam Practice Test

Page: 1 / 14
Total 144 questions
Question 1

What is the expected output of the following code?



Answer : D


Question 2

What is the expected output of the following code?



Answer : A


Question 3

Assuming that the following piece of code has been executed successfully, which of the expressions evaluate to True? (Select two answers)



Answer : C, D


Question 4

Assuming that the following code has been executed successfully, select the expressions which evaluate to True (Select two answers.)



Answer : B, D


Question 5

A two-parameter lambda function raising its first parameter to the power of the second parameter should be declared as:



Answer : D


Question 6

A method for passing the arguments used by the following snippet is called:



Answer : C


Question 7

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?



Answer : B


Page:    1 / 14   
Total 144 questions