Playwright Test Data and Cross-Browser MCQ Mock Test (200 Questions)

← All Playwright mock interview topics

Test your knowledge of Test Data, Configuration and Cross-Browser with a timed Playwright MCQ mock test. Each attempt gives you 20 random questions in 20 minutes from a 200-question bank covering parameterized and data-driven tests, JSON and CSV test data, .env files and secrets, multiple config files and environments, projects for Chromium, Firefox and WebKit, branded channels, mobile device emulation, locale, timezone, geolocation and permissions. Submit to see your score, the correct answers and an explanation for every question.

Advertisement

What this mock test covers

The questions follow Module 7 of the free Playwright with TypeScript tutorial. Revise these lessons if a question catches you out:

Advertisement

Sample questions with answers

  • Q. What is a parameterized test?
    Answer: The same test logic run several times with different input data
    Parameterization avoids copy-pasting tests for each data set.
  • Q. Why must each parameterized test have a unique title?
    Answer: Playwright requires unique titles in a file and errors on duplicates; unique titles also make reports readable
    Include the data, such as the role or case name, in the title.
  • Q. Where can the loop that generates parameterized tests live?
    Answer: At the top level or inside a describe block
    Tests must be declared at collection time, not inside other tests.
  • Q. Can you call `test()` inside another test's body to generate cases?
    Answer: No, tests must be declared at file or describe level when the file is loaded
    Declare all tests up front. Loop over data outside the test bodies.
  • Q. What is project-level parameterization?
    Answer: Using option fixtures whose values differ per project, so the same tests run with different settings
    For example, projects 'admin' and 'guest' set a `role` option differently.

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

Advertisement

Frequently asked questions

How many questions does the Test Data, Configuration and Cross-Browser 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.