PCAP-31-03 Online Practice Questions

Home / Python Institute / PCAP-31-03

Latest PCAP-31-03 Exam Practice Questions

The practice questions for PCAP-31-03 exam was last updated on 2025-06-03 .

Viewing page 1 out of 10 pages.

Viewing questions 1 out of 52 questions.

Question#1

What is the expected behavior of the following code?



It will:

A. print 4321
B. print <generator object f at (some hex digits)>
C. cause a runtime exception
D. print 1234

Question#2

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


A. a ( ) == 4
B. a is not None
C. b ( ) == 4
D. a ! = b

Question#3

Which of the following statements are true? (Select two answers)

A. open () requires a second argument
B. open () is a function which returns an object that represents a physical file
C. instd, outstd, errstd are the names of pre-opened streams
D. if invoking open () fails, an exception is raised

Question#4

What is true about Object-Oriented Programming in Python? (Select two answers)

A. if a real-life object can be described with a set of adjectives, they may reflect a Python object method
B. the same class can be used many times to build a number of objects
C. each object of the same class can have a different set of methods
D. a subclass is usually more specialized than its superclass

Question#5

With regards to the directory structure below, select the proper forms of the directives in order to import module_a. (Select two answers)


A. import pypack.module_a
B. import module_a from pypack
C. import module_a
D. from pypack import module_a

Exam Code: PCAP-31-03Q & A: 147 Q&AsUpdated:  2025-06-03

 Get All PCAP-31-03 Q&As