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

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.



Page 14 of 37



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

Mohammed commented on November 15, 2024
After checking these questions and reviewing all the answers and Explanations I realized that I would not have been able to pass the exam based on my current knowledge. This is completely changed my approach in how I am going to prepare now.
UNITED STATES
upvote

Nigel commented on September 27, 2024
Managed to pass my exam bu using the full version of this exam. This free version has less questions compared to PDF.
Spain
upvote

Idris Abraham Idilli commented on September 23, 2024
Very interesting
Anonymous
upvote