Programming in Python — End Sem 2023

Programming in Python (BTCS 510-18) End Sem 2023 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

  1. Differentiate between Lists and Tuples with the help of an example. — 4 marks
  2. Discuss briefly about dir() and help() functions. — 2 marks
  3. Differentiate between an error and an exception. — 8 marks
  4. What is persistent storage? — 2 marks
  5. Explain briefly about modulus. — 2 marks
  6. Write a short note on global interpreter lock. — 2 marks
  7. What are regular expressions? — 2 marks
  8. Explain briefly about web surfing. — 2 marks
  9. Describe the relationship between child and parent windows. — 2 marks
  10. Write a short note on application programmer's interface (DB-API). — 2 marks
  11. Write a SQL command to create a table with three fields of different types. — 2 marks
  12. What are command-line arguments? Explain clearly the difference between 'argc' and 'argv' arguments. — 5 marks
  13. What is pattern-matching? Describe two ways to accomplish pattern-matching. — 5 marks
  14. Write a short note on Tkinter, Pmw and Tix GUI highlighting the difference among them. — 5 marks
  15. What are adapters in databases? Discuss various factors to be considered while choosing an adapter. — 5 marks
  16. What is Common Gateway Interface (CGI)? Explain in detail about the working of CGI with the help of an example. — 10 marks
  17. What are hash tables and how do they relate to dictionaries? Also explain how are the elements inserted, updated and removed from dictionaries. — 10 marks
  18. Describe the process of exception detection and handling in detail with the help of an example. What role does assertion play in exception handling? — 10 marks

Other Programming in Python papers

Related