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

Page: 1 / 14
Total 144 questions
Question 1

Which of the following invocations are valid? (Select two answers)



Answer : A, D


Question 2

Is it possible to safely check if a class/object has a certain attribute?



Answer : B


Question 3

If you want to transform a string into a list of words, what invocation would you use? (Select two answers)

Expected output:



Answer : A, C


Question 4

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



Answer : C


Question 5

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


Question 6

The following class hierarchy is given. What is the expected output of the code?



Answer : D


Question 7

There is a stream named s open for writing. What option will you select to write a line to the stream''



Answer : A


Page:    1 / 14   
Total 144 questions