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 literals reflect the value given as 34.23? (select two answers)



Answer : A, B


Question 2

What is the expected output of the following snippet?



Answer : B


Question 3

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



Answer : D


Question 4

What will be the value of the i variable when the while e loop finishes its execution?



Answer : A


Question 5

If you need a function that does nothing, what would you use instead of XXX? (Select two answers)

def idler ( ):

XXX



Answer : A, D


Question 6

A Python module named pymod, py contains a function named pyfun ( ).

Which of the following snippets will let you invoke the function? (Select two answers)



Answer : B, D


Question 7

What is the expected output of the following snippet?



Answer : B


Page:    1 / 14   
Total 144 questions