Free PCAP-31-03 Exam Braindumps (page: 15)

Page 14 of 37

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/



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

  1. 10
  2. the variable becomes unavailable
  3. 11
  4. 9

Answer(s): D

Explanation:

Pass only means there are no statements to execute it does not means the variable is unavailable. Try a Print statement Print(i) after the For Loop and there is your result.






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

PCAP-31-03 Discussions & Posts