Official Bank 0/144

Certified Associate in Python Programming Exam (PCAP) - Python Exam Questions

Last updated on July 22, 2026

97% Exam Compliance
144 Total Questions
1
Question
What is the expected output of the following code?
Options
A False
B 0
C True
D None
Discussion (0 comments)

to join the discussion

Community Discussion

No discussions yet. Be the first to ask!

2
Question
Assuming that the following snippet has been successfully executed, which of the equations are True? (Select two answers)

Exhibit
Select 2
Options
A a[0] + 1 == b[0]
B b[0] fe- 1 == a[0]
C a [0] == b [0]
D len(a) == len (b)
Discussion (0 comments)

to join the discussion

Community Discussion

No discussions yet. Be the first to ask!

3
Question
What is the expected behavior of the following snippet?

It will:
Options
A print 0 , [1]
B print 1
C cause a runtime exception
D print [1J
Discussion (0 comments)

to join the discussion

Community Discussion

No discussions yet. Be the first to ask!

4
Question
If you need to serve two different exceptions called Ex1 and Ex2 in one except branch, you can write:
Options
A except Ex1, Ex2:
B except (ex1, Ex2):
C except Ex1 Ex2:
D except Ex1+Ex2:
Discussion (0 comments)

to join the discussion

Community Discussion

No discussions yet. Be the first to ask!

5
Question
What is the expected behavior of the following code?
Options
A it outputs [3, 1]
B the code is erroneous and it will not execute
C it outputs [1, 3]
D it outputs [4, 2, 0]
Discussion (0 comments)

to join the discussion

Community Discussion

No discussions yet. Be the first to ask!

Finish Practice?

Are you sure you want to finish? This will end your practice session.