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 can you do if you don't like a long package path tike this one0 import alpha.beta.gamma.delta.epsiIon.zeta
Options
A you can make an alias for the name using the a 1 i a s keyword
B nothing; you need to come to terms with it
C you can shorten it to alpha. zeta and Python will find the proper connection
D you can make an alias for the name using die as keyword
Discussion (0 comments)

to join the discussion

Community Discussion

No discussions yet. Be the first to ask!

2
Question
What is the expected output of the following code?

Exhibit
Options
A 3
B 5
C 4
D an exception is raised
Discussion (0 comments)

to join the discussion

Community Discussion

No discussions yet. Be the first to ask!

3
Question
What can you do if you don’t like a long package path like this one?
Options
A you can make an alias for the name using the alias keyword
B nothing, you need to come to terms with it
C you can shorten it to alpha. zeta and Python will find the proper connection
D you can make an alias for the name using the as keyword
Discussion (0 comments)

to join the discussion

Community Discussion

No discussions yet. Be the first to ask!

4
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!

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

Exhibit
Select 2
Options
A len(a)== len (b)
B a [0]-1 ==b [0]
C a[0] = b[0]
D b[0] - 1 == a[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.