Big Black Friday Sale 70% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: save70

Python Institute PCAP-31-03 Questions Answers

Page: 8 / 12
Total 154 questions

Certified Associate in Python Programming Questions and Answers

Question 29

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:

Question 30

Python strings can be “glued” together using the operator:

Options:

A.

.

B.

&

C.

_

D.

+

Question 31

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

Options:

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

Question 32

A method for passing the arguments used by the following snippet is called:

Options:

A.

sequential

B.

named

C.

positional

D.

keyword

Page: 8 / 12
Total 154 questions