Skip to content
CY-406 · Advance Python Programming/Important Questions

Advance Python Programming (CY-406) - Important Questions

  1. Unit 214 Marks High Priority

    Write a TCP server and client in Python demonstrating concurrent handling of multiple clients.

    Core networking and concurrency programming; repeated in past papers (networking + concurrent client handling).

  2. Unit 37 Marks High Priority

    Explain the Global Interpreter Lock (GIL) in CPython and its implications for multi-threaded programs.

    Fundamental concurrency concept affecting threaded programs in CPython; frequently asked theory question.

  3. Unit 410 Marks High Priority

    Parse provided XML/JSON data and extract required fields using ElementTree/json; show code and output.

    Practical data-processing task using standard libraries; often appears as a coding problem.

  4. Unit 110 Marks High Priority

    Explain and demonstrate the use of generators and coroutines for cooperative multitasking with an example.

    Core language feature for lazy evaluation and cooperative multitasking; repeated conceptually and in examples.

  5. Unit 314 Marks High Priority

    Compare threading and multiprocessing in Python and implement a producer-consumer pattern using queues.

    Comparative/conceptual plus implementation (producer-consumer) covering threading vs multiprocessing patterns.

  6. Unit 310 Marks High Priority

    Explain the threading library in Python. Discuss Thread objects, synchronization primitives (Lock, RLock, Condition, Semaphore), and demonstrate with code.

    Deep coverage of Python's threading module: API, synchronization primitives, and practical usage.

  7. Unit 310 Marks High Priority

    Explain multiprocessing: process objects, pipes, queues, shared memory objects, and process pools.

    Covers multiprocessing primitives and patterns used for CPU-bound parallelism; important for practical tasks.

  8. Unit 214 Marks High Priority

    Implement a basic custom HTTP server in Python that can handle GET and POST requests and serve static files. Provide code and explain request handling.

    Implementation-focused network programming topic (custom server internals); appears frequently in applied questions.

  9. Unit 310 Marks High Priority

    Explain asynchronous I/O in Python. Demonstrate using asyncio with async/await by writing an asynchronous TCP client and server.

    Asynchronous programming model in Python (asyncio); often asked for both explanation and coding demonstration.

  10. Unit 27 Marks Medium Priority

    Explain XML-RPC and demonstrate a simple XML-RPC server and client in Python.

    Lighter topic on remote procedure mechanisms in Python; less frequent than core networking but regularly tested.

  11. Unit 17 Marks High Priority

    Explain classes and objects in Python with examples demonstrating inheritance, encapsulation, and polymorphism.

    Fundamental OOP concepts in Python; basic theory and examples question appearing moderately often.

Go to where you left off?

Quick Add to Notes

Save questions, your own notes and screenshots into notes filed by unit. It takes a free account.

Create free account

Have an account? Log in