Sobes.tech

# Conduct a code review, find all errors def get_first_matching_object(predicate, objects=[]): matching_objects = (obj for obj in objects if predicate(object)) if matching_objects: object = matching_objects[0] return object else: return None

Middle+
153

Task 2. Merging two sorted arrays Given two sorted arrays in ascending order, nums1 and nums2. It is necessary to merge them into one sorted array in ascending order. nums1 = [1, 3, 5] nums2 = [2, 4, 6] merge_sorted(nums1, nums2) -> [1, 2, 3, 4, 5, 6]

Senior
153

Do you use the Java programming language in your projects?

Junior — Middle
153

What potential difficulties may arise when using multiple inheritance in programming?

Junior — Middle
152

Can you explain what the get_context_data method is in the context of web application development?

Junior — Middle
152

What is GIL in Python? Why does it hinder multithreading but not hinder asynchronous operations?

Middle
152

What is table partitioning in PostgreSQL? How to divide a product table?

Senior
151

Two tables with 100 rows each with arbitrary numbers. What is the minimum and maximum number of rows that FULL OUTER JOIN can return?

Middle
151

How to view running processes in Linux? How to check CPU load?

Middle+
150

What is a context manager in Python? Why is it needed? How to write your own?

Middle
150

Write a Dockerfile for a Python application that does the following: - Uses the latest Python image - Sets the working directory to /app - Copies the current directory contents into the container - Installs the dependencies listed in requirements.txt - Exposes port 8000 - Runs the application using the command: python app.py

Middle
150

The screenshot contains Python code using asyncio, but no explicit interview question or task is written in the image. If the task is implied, it might be related to identifying or fixing issues in the asynchronous code. Here is the code from the screenshot: ```python import asyncio async def func_1() -> None: await asyncio.sleep(2) async def func_2() -> None: await asyncio.Sleep(3) async def main() -> None: await func_1() await func_2() if __name__ == "__main__": asyncio.run(main()) ``` Potential implied task: Identify and fix any errors in the asynchronous code.

Senior
149

What is the structure of PostgreSQL?

Middle+
148

For a FULL JOIN of a table with 100 records and a table with 10 records — what is the minimum and maximum number of rows in the result?

Senior
148

How does the EventLoop work in Python? How does asynchrony differ from multithreading and multiprocessing?

Middle
148

What are the general ways to do multitasking in Python and what is each of them used for?

Middle
148

What types of indexes are available in PostgreSQL?

Senior
147

What are fork and spawn, and what is copy-on-write?

Middle+
147
/20