Python Institute Certified Associate in Python Programming PCAP-31-03 Exam Questions

Page: 1 / 14
Total 147 questions
Question 1

What is the expected output of the following code if there is no file named non existing_file inside the working directory?



Answer : B


Question 2

An operator able to perform bitwise shifts is coded as (select two answers)



Answer : C, D


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

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



Answer : B, D


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

A property that stores information about a given class's super-classes is named:



Answer : D


Question 7

You are going to read just one character from a stream called s. Which statement would you use?



Answer : D


Page:    1 / 14   
Total 147 questions