BSc CS Sem 2 BSc CS Semester 2 (2018 2019) Apr 2019 PROGRAMMING WITH PYTHON II Question Paper - Mumbai University | munotes
Loading PDF...
Older exam
None: this is the earliest we hold
Newer exam
Apr 2019 - PROGRAMMING WITH C
Semester-end · BSc CS Semester 2 (2018 2019)
→
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.
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.
Related Resources
Something wrong with this paper? Report it.
Connected Papers
BSc CS / Sem 2 · 47 papers
Questions? Email contact@munotes.in
Done!