Playwright Python: Python Essentials MCQ Mock Test (200 Questions)

← All Playwright Python mock interview topics

Test your knowledge of Python Essentials for Playwright with a timed Playwright Python MCQ mock test. Each attempt gives you 20 random questions in 20 minutes from a 200-question bank covering Python variables, data types, strings, lists, dictionaries, conditions, loops, functions, exceptions, OOP and decorators, plus modules and imports, virtual environments and pip, type hints, context managers and async/await. Submit to see your score, the correct answers and an explanation for every question.

What this mock test covers

The questions follow Module 2 of the free Playwright with Python & Pytest tutorial. Revise these lessons if a question catches you out:

Sample questions with answers

  • Q. Which statement about Python variables is true?
    Answer: A variable is a name that refers to an object; it has no fixed type
    Python is dynamically typed: the object has a type, the name does not.
  • Q. Which name follows Python's naming convention (PEP 8) for a variable?
    Answer: base_url
    Variables and functions use snake_case; classes use PascalCase; constants use UPPER_CASE.
  • Q. How do Python programmers mark a value as a constant by convention?
    Answer: Write the name in UPPER_CASE, e.g. BASE_URL
    Python has no constant keyword; UPPER_CASE signals 'do not change'.
  • Q. What is the main difference between a list and a tuple?
    Answer: Lists can be changed after creation; tuples cannot
    Tuples are immutable, which makes them good for fixed values such as a viewport size.
  • Q. Which values can be dictionary keys?
    Answer: Immutable values such as str, int and tuple
    Keys must be hashable; lists and dicts cannot be keys.

Ready for more? Go back to the Playwright Python mock interview dashboard to track your overall interview readiness.

Frequently asked questions

How many questions does the Python Essentials for Playwright mock test have?

The question bank has 200 questions. Each test picks 20 at random, favouring questions you have not seen, so about 10 attempts cover the full bank.

What is the pass mark?

You pass a test with 70% or more, which is 14 of 20 questions correct.

Can I retake the test?

Yes. Retake as often as you like. Every retake draws a fresh set of 20 questions and counts toward your 20-exam readiness target.