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

Page: 1 / 14
Total 147 questions

Question 1

Which of the following words can be used as a variable name? (Select two valid names)

Answer : C, D

Question 2

Assuming that the V variable holds an integer value to 2, which of the following operators should be used instead of OPER to make the expression equal to 1?

V OPER 1 -

Answer : C

Question 3

What is the expected output of the following snippet?

Answer : B

Question 4

Which of the listed actions can be applied to the following tuple? (Select two answers)

Answer : A, D

Question 5

A class constructor (Select two answers)

Answer : B, C

Question 6

Select the valid fun () invocations:

(select two answers)

def fun (a, b=0):

return a*b

Answer : B, D

Question 7

Can a module run like regular code?

Answer : A

Page:    1 / 14   
Total 147 questions