PCAP Cheat Sheet 2026

The 30 highest-yield PCAP facts, distilled from real exam questions. Print it, save it as a PDF, or study it here โ€” free, no sign-up.

PCAP exam key facts

  • The PCAP exam consists of 40 questions. Source
  • The PCAP exam has a duration of 65 minutes with an additional 10 minutes allocated for the non-disclosure agreement and tutorial. Source
  • The passing score for the PCAP exam is 70%. Source
  • The PCAP exam voucher starts from $295. Source
  • Candidates must wait 15 days after a failed attempt before retaking the PCAP exam. Source
  • The PCAP certification is valid for 5 years. Source
Start the Timed PCAP Mock Exam โ†’
40 questions
65 min time limit
70% to pass
  1. What does the `'b'` flag in `open('file', 'rb')` indicate? โ†’ Binary mode
  2. What is the correct syntax to create a tuple in Python? โ†’ tuple = (1, 2, 3)
  3. Which data structure is used to store a sequence of items that are ordered and changeable in Python? โ†’ List
  4. Which of the following is used to define a function in Python? โ†’ def
  5. What is the `nonlocal` keyword used for inside a nested function? โ†’ To modify a variable defined in the nearest enclosing non-global scope
  6. Which exception is raised when you try to open a file that does not exist? โ†’ FileNotFoundError
  7. Which built-in function returns the number of items in a container? โ†’ len()
  8. What does `os.path.join('folder', 'file.txt')` return on Linux? โ†’ folder/file.txt
  9. How do you create a list in Python? โ†’ list = [1, 2, 3]
  10. What does `abs(-5)` return? โ†’ 5
  11. What happens if an exception is raised inside a `finally` block? โ†’ It replaces any previously raised exception
  12. Which of the following is a valid variable name in Python? โ†’ variable_ name
  13. How do you check if a key exists in a dictionary? โ†’ if key in dict:
  14. What does `except Exception as e:` allow you to do? โ†’ Access the exception object via the variable `e`
  15. What does the `@classmethod` decorator do? โ†’ Passes the class as the first argument instead of the instance
  16. How do you define a class variable (shared by all instances) in Python? โ†’ Declare it outside any method, inside the class body
  17. What does `file.readlines()` return? โ†’ A list of strings, one per line
  18. What does the `__name__ == '__main__'` guard do? โ†’ Prevents code from running when the module is imported
  19. Which dunder method allows an object to be represented as a string when printed? โ†’ __str__
  20. What does `sorted()` return? โ†’ A new sorted list
  21. What does the `enumerate()` function return when iterating? โ†’ A tuple of (index, value)
  22. Which module provides `namedtuple` for creating tuple subclasses with named fields? โ†’ collections
  23. Which function from the `os` module returns the current working directory? โ†’ os.getcwd()
  24. What is a closure in Python? โ†’ A function that captures variables from its enclosing scope
  25. What is the base class for all built-in exceptions in Python? โ†’ BaseException
  26. Which exception is raised when accessing an index that does not exist in a list? โ†’ IndexError
  27. What does `functools.wraps` do when used in a decorator? โ†’ Preserves the original function's metadata
  28. What does the `copy` module's `deepcopy()` function do? โ†’ Recursively copies an object and all objects it references
  29. How do you raise a custom exception in Python? โ†’ raise Exception('msg')
  30. What happens if no exception is raised in a `try` block that has an `else` clause? โ†’ The else block is executed

What Practice Test Geeks adds beyond an AI chat for PCAP

An AI chatbot can quiz you, but it can't reproduce the exam conditions or keep your record. Here you get:

  • A timed, full-length PCAP mock exam โ€” 40 questions in 65 minutes with a 70% pass mark, modeled on the official exam's question count and time limit, followed by a score report broken down by exam domain.
  • A fixed PCAP question bank: the same test every attempt, so your score is comparable from one try to the next instead of changing with every regenerated quiz.
  • Progress saved on your device: completed tests, scores and missed questions stay in My Progress, so you can retake only what you got wrong.
  • PCAP flashcards built from the same question bank.
  • Free PCAP practice tests with the correct answer shown after each question.
Start the Timed PCAP Mock Exam โ†’
Was this helpful?

How this page was made: written with AI tools and published by Nathan Beja, founder of Practice Test Geeks, who is responsible for its content. Exam facts are checked against the official sources listed below. Not reviewed by a subject-matter expert. Editorial policy

Sources & references

Exam facts on this page (fees, format, dates, passing scores) are checked against these official sources; the date is our last check. Editorial policy

  1. pythoninstitute.org โ€” Eligibility, fees, exam format, passing score, retake fee, retake policy, score release, time limit, score validity, exam information ยท verified Oct 2026
  2. home.pearsonvue.com โ€” Test delivery ยท verified Oct 2026