Python Institute PCAP - Certified Associate in Python Programming Exam

Page:    1 / 29   
Total 141 questions

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


  • A. 1
  • B. 0
  • C. 2
  • D. the variable becomes unavailable


Answer : A

Explanation:


And operator able to perform bitwise shifts is coded as (Choose two.)

  • A. --
  • B. ++
  • C. <<
  • D. >>


Answer : CD

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

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


  • A. 10
  • B. the variable becomes unavailable
  • C. 11
  • D. 9


Answer : B

Reference:
https://www.programiz.com/python-programming/pass-statement

The following expression -

is:

  • A. equal to 1
  • B. invalid
  • C. equal to 2
  • D. equal to -1


Answer : D

Explanation:


A compiler is a program designed to (Choose two.)

  • A. rearrange the source code to make it clearer
  • B. check the source code in order to see of itג€™s correct
  • C. execute the source code
  • D. translate the source code into machine code


Answer : BD

Page:    1 / 29   
Total 141 questions