InterviewTreedInterviewTreed

The question library

Technical interview questions and answers

Explore practical questions, clear explanations, and code examples across developer technologies.

Showing 2953–2964 of 3610 questions

Python ProgrammingIntermediate1 min read

JSON parsing

json.loads parses text, json.load reads a file, and dumps serializes Python data.

Python ProgrammingIntermediate1 min read

Calling REST APIs

A client sends HTTP requests, checks status, parses the response, and handles errors and timeouts.

Python ProgrammingIntermediate1 min read

HTTP timeouts

Timeouts bound waiting time and prevent stuck requests from consuming resources indefinitely.

Python ProgrammingIntermediate1 min read

API error handling

Handle network failures, HTTP status codes, invalid payloads, and business errors separately.

Python ProgrammingIntermediate1 min read

API pagination

Pagination splits large results using page/limit, offset, or cursor tokens.

Python ProgrammingIntermediate1 min read

Rate limiting

Rate limits cap request frequency; clients should honor Retry-After and use bounded backoff.

Python ProgrammingIntermediate1 min read

API keys

API keys identify or authorize clients; keep them out of source control and logs.

Python ProgrammingIntermediate1 min read

Async programming

Async code suspends at await points so an event loop can run other I/O tasks; it does not automatically speed CPU-bound …

Python ProgrammingIntermediate1 min read

Coroutines

Calling an async function creates a coroutine object that must be awaited or scheduled.

Python ProgrammingIntermediate1 min read

gather and TaskGroup

gather collects results from multiple awaitables; TaskGroup provides structured concurrency in Python 3.11+ and cancels …

Python ProgrammingIntermediate1 min read

Blocking I/O in async code

Blocking calls stall the event-loop thread; use async-compatible libraries or offload blocking work to a thread.