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

Want to Unlock All Questions for this Exam?

Full Exam Access, Discussions, No Robots Checks

Python Institute PCAP Exam Actual Questions

The questions for PCAP were last updated on April 14, 2024.
  • 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   21

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   9

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   55

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   12

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 ...