Free PCAP-31-03 Exam Braindumps
Certified Associate in Python Programming Exam Questions 51–55 (page: 12)

Updated On: 9-Feb-2026

What is the expected output of the following code?

  1. 3
  2. 5
  3. 4
  4. an exception is raised

Answer(s): A



Which of the following lambda definitions are correct? (Select two answers)

  1. lanbda x, y; return x\\y - x%y
  2. lambda x, y: x//y - x%y
  3. lambda (x, y = x\\y x%y
  4. lambda x, y: (x, y)

Answer(s): B,D



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

  1. a ( ) == 4
  2. a is not None
  3. b ( ) == 4
  4. a ! = b

Answer(s): A,B



What will be the value of the i variable when the while e loop finishes its execution?

  1. 1
  2. 0
  3. 2
  4. the variable becomes unavailable

Answer(s): A

Explanation:



An operator able to perform bitwise shifts is coded as (select two answers)

  1. - -
  2. ++
  3. <<
  4. >>

Answer(s): C,D


Reference:

https://www.geeksforgeeks.org/basic-operators-python/



Viewing page 12 of 30
Viewing questions 56 - 60 out of 147 questions


Post your Comments and Discuss Python Institute PCAP-31-03 exam prep with other Community members:

AI Tutor AI Tutor 👋 I’m here to help!