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

With regards to the directory structure below, select the proper forms of the directives in order to import module_c. (Select two answers)



Answer : A, B


Question 3

What is the expected output of the following code if the file named existing_text_file is a non-zero length text file located inside the working directory?



Answer : B


Question 4

What is true about Python class constructors? (Choose two.)



Answer : A, C


Question 5

What is the expected behavior of the following code?

It will



Answer : B


Question 6

What is the expected behavior of the following code?

It will:



Answer : B


Question 7

If you need to serve two different exceptions called Ex1 and Ex2 in one except branch, you can write:



Answer : D


Page:    1 / 14   
Total 144 questions