munotes®

BSc CS Sem 2 October 2023 October 2023 Advanced Python Programming Question Paper - Mumbai University | munotes

October 2023 Question Paper, Oct 2023.pdf
SEM 2 · October 2023 · 131 KB · 29 Jun 2026

Loading PDF...

Older exam October 2023 - Calculus Semester-end · October 2023
Newer exam None yet: this is the latest New papers land after each exam season.

Questions asked in this paper

  1. Q1 Attempt the following: ( Any FOUR) 20 marks
    • i) What is file handling? Explain various types of file modes
    • ii) will be output of following :
    • a) d=now.strftime("%D")
    • e) d=datetime.now()
    • iii) Explain following functions with example :
    • iv) Write down REGEX for following example :
    • a) to find all words starting with or 'e' in a given string
    • b) matches a string that has an ‘a’ followed by zero or one
    • c) to find the sequences of one upper case letter followed by lower case letters
    • d) that matches a word containing 'z', not at the start or end of the word
    • e) the numbers (0-9) of length between 1 to 3 in a given string
    • v) a python program to read contents of ‘python.txt’ file and write same content in ‘copy.txt’ file
    • vi) What is thread ? Explain types of threads with example
  2. Q2 Attempt the following: ( Any FOUR) 20 marks
    • i) Explain exception handling with example using try, except, finally keywords
    • ii) | Establish a connection between python and database and write a python to display all records from Employee table(Empno, Empname, Dept, Salary). Assume records are already inserted in table
    • iii) | Write a source code in python where server sends current time string to the client
    • iv) How to generate customized exceptions? Explain with example to accept only Even
    • v) a python program to display five graphical shapes on Canvas
    • vi) Write a python program to accept a number from user on entry box. Display whether entered number is even or odd on message box as user clicks on show
  3. Q3 Attempt the following: ( Any FOUR) 20 marks
    • i) Explain the features of object Oriented Programming
    • ii) class that store the information of student and display the same
    • iii) List out types of methods supported by Python. Explain any one of them
    • iv) Differentiate between abstract class and Interfaces
    • v) out types of Inheritance .Explain any one with example
    • vi) What is method overloading? Write a program to demonstrate method overloading
  4. Q4 Attempt the following: ( Any FIVE) 15 marks
    • i) What is database connectivity in Python? Explain
    • ii) | Explain how to create a directory, how to change a directory and how to remove a directory in python
    • iii) timedelta() with example
    • iv) How to use fonts and colours in python? Specify example
    • v) Explain bind() with example
    • vi) What are the different types of messagebox available in message widget of tkinter

Read from the scan above, so a character or two may differ. The scan is the original.

Report or request

Something wrong on this page? Report it and we will check it against the scan.

Quick Help

No. The full paper opens straight away, with no login and nothing to pay.

Something wrong with this paper? Report it.

Connected Papers
BSc CS / Sem 2 · 47 papers
Browse all →
Questions? Email contact@munotes.in
Done!
Done!