Free PCAP-31-02 – Certified Associate in Python Programming Practice Test Question

Free demo downloads

Loading demo links...

Showing 7–9 of 10 questions

Question 7

Assuming that the V variable holds an integer value to 2, which of the following operators should be used instead of OPER to make the expression equal to 1?

V OPER 1

Select an option, then click Submit answer.

  • ○

    <<<

  • ○

    >>>

  • ○

    >>

  • ○

    <<

Question 8

What is the expected output of the following snippet?

Select an option, then click Submit answer.

  • ○

    3

  • ○

    1

  • ○

    2

  • ○

    the code is erroneous

Question 9

The following expression

is:

Select an option, then click Submit answer.

  • ○

    equal to 1

  • ○

    invalid

  • ○

    equal to 2

  • ○

    equal to -1