Python Developer interview questions
Core Python, OOP, data structures, web frameworks, async, testing and performance.
198 questions · 7 topics · 14 free answers
0 of 198 practised · 0 bookmarked · saved on this device
17 questions match
Testing and quality#1What is the purpose of a test assertion?EasyConceptTesting and quality Pro answer
This answer is part of Pro
10 of 198 Python Developer answers are free. A Pro pass opens the rest, including hands-on task steps.
#2What is test-driven development?MediumConceptTesting and quality Pro answer
This answer is part of Pro
10 of 198 Python Developer answers are free. A Pro pass opens the rest, including hands-on task steps.
#3How do you test a function that writes to a file?MediumScenarioTesting and quality Pro answer
This answer is part of Pro
10 of 198 Python Developer answers are free. A Pro pass opens the rest, including hands-on task steps.
#4How would you test that an exception is raised with the right message?HardScenarioTesting and quality Pro answer
This answer is part of Pro
10 of 198 Python Developer answers are free. A Pro pass opens the rest, including hands-on task steps.
#5What is the difference between unit and integration tests?EasyConceptTesting and quality Pro answer
This answer is part of Pro
10 of 198 Python Developer answers are free. A Pro pass opens the rest, including hands-on task steps.
#6How do you write a test in pytest?EasyConceptTesting and quality Pro answer
This answer is part of Pro
10 of 198 Python Developer answers are free. A Pro pass opens the rest, including hands-on task steps.
#7What is a fixture in pytest?EasyConceptTesting and quality Pro answer
This answer is part of Pro
10 of 198 Python Developer answers are free. A Pro pass opens the rest, including hands-on task steps.
#8What does mocking mean and when should you avoid it?MediumConceptTesting and quality Pro answer
This answer is part of Pro
10 of 198 Python Developer answers are free. A Pro pass opens the rest, including hands-on task steps.
#9What does pytest.mark.parametrize do?MediumConceptTesting and quality Pro answer
This answer is part of Pro
10 of 198 Python Developer answers are free. A Pro pass opens the rest, including hands-on task steps.
#10What is test coverage and its limits?MediumConceptTesting and quality Pro answer
This answer is part of Pro
10 of 198 Python Developer answers are free. A Pro pass opens the rest, including hands-on task steps.
Hunting for a Python Developer role too? See open Python Developer jobs.