PCAP-31-03 Certified Associate in Python Programming

Loading demo links...

Showing 7–9 of 10 questions

Question 7

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

Select an option, then click Submit answer.

  • sequential

  • named

  • positional

  • keyword

Question 8

What is the expected behavior of the following code?

x - 3 % 1

y -1 if x > else 0

print (y)

Select an option, then click Submit answer.

  • it outputs -1

  • the code is erroneous and it will not execute

  • it outputs 1

  • it outputs 0

Question 9

What is the expected behavior of the following code?

Select an option, then click Submit answer.

  • It outputs False

  • It outputs nothing

  • It outputs True

  • It raises an exception