Welcome to ExamTopics
ExamTopics Logo
- Expert Verified, Online, Free.

Python Institute PCAP Exam Actual Questions

The questions for PCAP were last updated at Nov. 21, 2022.
  • Viewing page 1 out of 36 pages.
  • Viewing questions 1-4 out of 145 questions

Topic 1 - Single Topic

Question #1 Topic 1

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
Reveal Solution Hide Solution   Discussion   13

Correct Answer: A 🗳️

Question #2 Topic 1

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

  • A. --
  • B. ++
  • C. <<
  • D. >>
Reveal Solution Hide Solution   Discussion   4

Correct Answer: CD 🗳️
Reference:
https://www.geeksforgeeks.org/basic-operators-python/

Question #3 Topic 1

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
Reveal Solution Hide Solution   Discussion   42

Correct Answer: B 🗳️
Reference:
https://www.programiz.com/python-programming/pass-statement

Question #4 Topic 1

The following expression -
is:

  • A. equal to 1
  • B. invalid
  • C. equal to 2
  • D. equal to -1
Reveal Solution Hide Solution   Discussion   2

Correct Answer: D 🗳️

Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...