B.Sc. (Computer Science) Sem 2 Advanced Python Programming Apr 2019 Question Paper - Mumbai University | munotes
Loading PDF...
Questions asked in this paper
- 2) Figures to the right indicate marks
-
Q3 Illustrations, in-depth answers and diagrams will be appreciated
-
Q4 Mixing of sub-questions is not allowed
-
Q1 Attempt all. (Each of 5 marks) (15M)
- (a) Multiple Choice Questions (Choose the correct alternative.) (5M)
- (i) The method is used to display the current working directory
- (ii) Grid is used for
- (a) Positioning widgets at absolute locations
- (b) Arranging widgets
- (c) Packing widgets into a cavity
- (d) All ot the above
- (iii) Python exceptions are caught by the keyword
- (a) catch (c) try
- (b) except (d) throw
- (iv) This method binds the socket to address
- (b) socket.accept() (d)
- (v) The is a standard tkinter widget used to implement one of
- (b) CheckBox Button (d) None of the mentioned
- (b) Fill in the blanks. (5M)
- (i) To draw things in the canvas, use the methods to add new items
- (ii) function is used to read single line from file
- (iv) protocol is used to send mail
- (v) Connected less communication can be establish using
- (c) Short Answers Write answers in one or two lines. (5M)
- (i) Finally clause
- (ii) Attributes of file object
- (v) Connection oriented communication in python Paper Subject Code: 77302 Programming with
-
Q2 Attempt the following:(ANY THREE) (Each of 5 marks) (15M)
- (a) Write a python program to read contents of ‘first.txt’ file and write same content in “second.txt’ file
- (b) What are various modes of file object? Explain any five
- (c) Define Iterator with example
- (d) Explain exception handling with example using try, except, raise
- (e) Give syntax and example of following functions
- (f) Differentiate between match() and search() function. Explain with example
-
Q3 Attempt the following:(ANY THREE) (Each of 5 marks) (15M)
- (a) What is GUI programming? Write advantage and disadvantage
- (b) 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 button
- (c) Explain any five options of pack() method
- (d) Discuss event handling formats. (any five)
- (e) List the widgets which provided by tkinter module. Explain any four
- (f) Write a python program to display five graphical shapes on Canvas
-
Q4 Attempt the following:(ANY THREE) (Each of 5 marks) (15M)
- (a) Write a python program to create connection oriented server program
- (b) How to read properties of URL? Explain it with example
- (c) What is database connectivity in Python? Explain
- (d) note on SMTP. Explain how to create SMTP object in python
- (e) Explain exception in database connectivity in python
- (f) 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
-
Q5 Attempt the following:(ANY THREE) (Each of 5 marks) (15M)
- (a) Explain transaction with rollback and commit in python
- (b) What is regular expression? State and explain regular expression patterns
- (c) How to use fonts and colours in python? Specify example
- (d) Which functions are used to find file position? Explain with example
- (e) Write note on Layout Manager
Read from the scan above, so a character or two may differ. The scan is the original.
What do you need?
Tap one.
The answers are on this page
You can read the first answer here. The box further down shows how to read all of them.
Read it here, any time
We keep checking and updating our papers and notes, and adding more. A saved copy would be an old version. Reading on munotes.in always gives you the latest one.
I paid, but I can't open it
Please type an email, or a 10-digit phone number.
Done
If we find your payment, we send a link to the email you paid with. Open it to read.
Check your email in 2 minutes. Also check Spam.
No email after 10 minutes?
Something else
Please write a little more, so we can help.
Your email app opens with this. You can add more there. We reply by email.
Something wrong on this page? Report it and we will check it against the scan.
Quick Help
Related Resources
Something wrong with this paper? Report it.