Pass4itsure > Python Institute > Python Institute Certifications > PCAP-31-03 > PCAP-31-03 Online Practice Questions and Answers

PCAP-31-03 Online Practice Questions and Answers

Questions 4

What is the expected behavior of the following code?

A. it outputs 1

B. it outputs 2

C. the code is erroneous and it will not execute

D. it outputs 3

Buy Now
Questions 5

Files with the suffix .pyc contain:

A. Python 4 source code

B. backups

C. temporary data

D. semi-compiled Python code

Buy Now
Questions 6

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

A. lists may not be stored inside tuples

B. tuples may be stored inside lists

C. tuples may not be stored inside tuples

D. lists may be stored inside lists

Buy Now
Questions 7

Executing the following snippet

will cause the dct:

A. to hold two keys named `pi' linked to 3.14 and 3.1415 respectively

B. to hold two key named `pi' linked to 3.14 and 3.1415

C. to hold one key named `pi' linked to 3.1415

D. to hold two keys named `pi' linked to 3.1415

Buy Now
Questions 8

What is the expected output of the following code?

A. True

B. 0

C. False

D. None

Buy Now
Questions 9

What is the expected output of the following code?

A. abcef

B. The program will cause a runtime exception error

C. acdef

D. abdef

Buy Now
Questions 10

What is the expected output of the following snippet?

A. True lower

B. True upper

C. False upper

D. False lower

Buy Now
Questions 11

Which of the equations are True? (Select two answers)

A. chr (ord (x)) = = x

B. ord (ord (x)) = = x

C. chr (chr (x)) = = x

D. ord (chr (x)) = = x

Buy Now
Questions 12

You are going to read just one character from a stream called s. Which statement would you use?

A. ch = read(s, 1)

B. ch = s. input(1)

C. ch = input(s, 1)

D. ch = s. read(l)

Buy Now
Questions 13

The following class definition is given. We want the show () method to invoke the get () method, and then output the value the get () method returns. Which of the invocations should be used instead of XXX?

A. print (get(self))

B. print (self.get())

C. print (get())

D. print (self.get (val))

Buy Now
Exam Code: PCAP-31-03
Exam Name: PCAP - Certified Associate in Python Programming
Last Update: May 29, 2026
Questions: 153
10%OFF Coupon Code: SAVE10

PDF (Q&A)

$49.99

VCE

$55.99

PDF + VCE

$65.99