Programming in Python — End Sem 2025
Programming in Python (BTCS 510-18) End Sem 2025 question paper from I.K. Gujral Punjab Technical University. Read it online or download the PDF; an answer key is included.
Questions in this paper
- Name two built-in Python modules commonly used in data analysis. — 2 marks
- Explain the difference between string indexing and string slicing with examples. — 2 marks
- Name two methods used to write data into a file in Python. — 2 marks
- Illustrate how the "with" statement is used in file handling and why it is preferred over explicitly calling close ( ). — 2 marks
- Which Python statement is used to start a new thread using the thread module? — 2 marks
- Explain the acronym GIL in Python. — 2 marks
- Name any one Python library used for web clients. — 2 marks
- Demonstrate the process of establishing a client-server connection. — 2 marks
- Why do we need Python for database programming? — 2 marks
- Explain two Python modules that support DB-API. — 2 marks
- Identify the difference between strings, list and tuples. — 5 marks
- Compare the behavior of code execution when using try-except alone versus try-except-else. — 5 marks
- Explain the difference between threads and processes in Python with suitable examples. — 5 marks
- Construct a menu in Tkinter applications and explain with an example. — 5 marks
- Explain the importance DB-API and Object Relational Managers (ORMs). Write an example using SQL Alchemy to define a model, insert records, and query them. — 10 marks
- Analyze the use of built-in modules versus user-defined modules in terms of reusability, performance, and scalability. — 10 marks
- Identify the difference between various types of GUI's. — 10 marks
- Elaborate the role of web servers (HTTP Servers) in managing client-server communication efficiency in Python web programming. — 10 marks
Other Programming in Python papers
- Programming in Python — Mid Sem 1 2026 · Section A
- Programming in Python — Mid Sem 2 2026
- Programming in Python — Supplementary 2026
- Programming in Python — End Sem 2025
- Programming in Python — Mid Sem 2 2025
- Programming in Python — Supplementary 2025
- Programming in Python — End Sem 2024
- Programming in Python — End Sem 2022