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

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

Exhibit
Options
A it raises an exception
B it outputs 0
C it outputs 1
D it outputs 2
Discussion (0 comments)

to join the discussion

Community Discussion

No discussions yet. Be the first to ask!

3
Question
If you want to access an exception object's components and store them in an object called e, you
have to use the following form of exception statement
Options
A except Exception as e:
B except e=Exception:
C except Exception(e):
D such an action is not possible in Python
Discussion (0 comments)

to join the discussion

Community Discussion

No discussions yet. Be the first to ask!

4
Question
Assuming that the following code has been executed successfully, selected the expression which evaluate to True (Select two answers)

Exhibit
Select 2
Options
A a ( ) == 4
B a is not None
C b ( ) == 4
D a ! = b
Discussion (0 comments)

to join the discussion

Community Discussion

No discussions yet. Be the first to ask!

5
Question
What is true about Object-Oriented Programming in Python? (Select two answers)
Select 2
Options
A an object is a recipe for a class
B the arrows on a class diagram are always directed from a superclass towards its subclass
C inheritance is the relation between a superclass and a subclass
D encapsulation allows you to protect some data from uncontrolled access
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.