Advance Python Programming (CY-406) - Important Questions
-
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).
-
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.
-
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.
-
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.
-
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.
-
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.
-
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.
-
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.
-
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.
-
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.
-
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.
Quick Add to Notes
Save questions, your own notes and screenshots into notes filed by unit. It takes a free account.
Create free accountHave an account? Log in
Notes Panel