Resources
Legal
Prepare for interviews with a database of questions from real interviews.
Showing 21–38 of 38
How can you find files in a directory by a specific name in Linux?
How can you check which processes are using a specific port in Linux?
How can you display the last 20 lines of a file in Linux?
What is a fixture in pytest, and why is it not a good idea to call it inside a test like a regular function?
Write an `OrdersAPIClient` class with the methods `create_order`, `get_order`, `list_orders`, and `update_order_status`, and rewrite the `test_order_create` test to use it.
How can you create a new branch called `feature/login` and switch to it right away in Git?
How can you view all local and remote branches in Git?
How can you revert changes to a specific file to the state before the last commit without affecting other files?
How can you check processes and how much memory, CPU, and disk space they use in Linux?
Write a test for creating an order (`test_order_create`) using the `requests` library that checks for status code 201, the presence of an order ID, and the status `'created'`.
What is a pipe (`|`) in Linux, and how does it work?
What does the permission string `-rwxr-xr--` mean in Linux (`chmod`)?
What should you do if a conflict occurs after `git merge main`? Describe the steps.
What are the principles of OOP, and are they used only in Python?
How can you undo the last commit while keeping the changes in the working directory?
Improve the order-flow test: avoid the fixed `time.sleep(5)` when waiting for the asynchronous service to process the order, and ensure the test reliably verifies the order’s status becomes `"paid"` before updating it to `"shipped"` and then `"delivered"`.
Can abstraction be implemented in Python, and if so, how?
Were you the main driver of implementing automation, or were the tasks distributed among several people?