Python track

Python interview questions and answers

Panel-ready Python & Django questions for freshers and experienced developers. Practice at Coding Cadre in Faridabad, or Online from Delhi NCR.

41 High Celery Python

What do chain, group, and chord express?

Short take Full answer on next page

Simple meaning

chain runs tasks sequentially, passing return values forward.

Open the full page for Why, Steps, Example and Key takeaway.

Read full answer Example · Mistake · Say this
46 High Caching Python

How do the per-site cache and Vary headers interact?

Short take Full answer on next page

Simple meaning

UpdateCacheMiddleware/FetchFromCacheMiddleware store responses keyed by path plus the Vary-derived header values.

Open the full page for Why, Steps, Example and Key takeaway.

Read full answer Example · Mistake · Say this
49 High Testing Python

How do you test Celery tasks without a live worker?

Short take Full answer on next page

Simple meaning

Set CELERY_TASK_ALWAYS_EAGER (or the modern task_always_eager) in test settings so delay() runs in-process.

Open the full page for Why, Steps, Example and Key takeaway.

Read full answer Example · Mistake · Say this
54 High Memory Python

How can weakref help with in-process caches?

Short take Full answer on next page

Simple meaning

weakref.WeakValueDictionary drops entries when no strong references remain, so a memoizer does not pin models forever.

Open the full page for Why, Steps, Example and Key takeaway.

Read full answer Example · Mistake · Say this
Prev Page 3 of 4 Next
Chat with us