munotes®

BSc CS Sem 2 BSc CS Semester 2 (2016 2017) 2017 Programming With Python Question Paper - Mumbai University | munotes

BSc CS Semester 2 (2016 2017) Question Paper, 2016.pdf
SEM 2 · BSc CS Semester 2 (2016-2017) · 1 May 2025

Loading PDF...

Questions asked in this paper

  • Please check whether you have got the right question paper
  • 2. Figures to the right indicate marks
  1. Q3 Illustrations, in-depth answers and diagrams will be appreciated
  2. Q4 Mixing of sub-questions is not allowed
  3. Q1 (a) Attempt All (Each of 5Marks) (15M) Multiple Choice Questions
  4. Q1 Which function is used to close the file?
    • a) close() b) stop()
    • (c) closefile() d) end
  5. Q2 The method is used to display current working directory
    • a) mkdir() stop()
  6. Q3 To arranging or controlling different python tkinter widget on the screen we use
    • c) layout manager d) none of these
  7. Q4 The purpose of widget is to display of lines of text
    • a) Entry RadioButton
  8. Q5 This widget option is used to size the canvas in the X diemention
    • a) width b) height
    • c) length d) border
    • (b) Fill in the blanks (5M) 1 Python exceptions are caught by the keyword 2 mode is used to open file to read in binary format We the sql queries from python program using method 5 While sending the data through with HTTP, this is often done by Using request
    • (c) Short Answers. (5M) Why we use rowcount() method? 2~ Explain Socket.bind()
  9. Q3 What is in file handling? When do we use fetchone() function. in database
  10. Q5 Explain Label widget
    • Q.P. Code : 04468
  11. Q2 Attempt the following. (Any THREE) (Each of 5Marks) (15M)
    • (a) Explain in detail python file functions for reading, writing, positioning, and seeking within file contents?
    • (b) Explain different techniques for reading files such as Read and ReadLines
    • (c) Explain how to create a directory, how to change a directory and how to remove a directory in python
    • (d) What is the use of Iterator? Explain with example
    • (e) Explain the followings:
  12. Q3 Finally
    • (f) What is regular expression? Explain with example
  13. Q3 Attempt the following. (Any THREE) (Each of 5Marks) (15M)
    • (a) Explain GUI in python and state its advantages.and disadvantages
    • (b) What is grid layout? Give suitable example
    • (c) What are the different types of messagebox available in message widget of tkinter module?
    • (d) With the help of proper example explain radiobutton widget in tkinter module
    • (e) Write a python GUI that contains three Radio buttons for colors “Red”, “Green”, and “Blue”. Display
    • (f) Write a python Canvas program to draw Circle, Polygon and Arc with effects
  14. Q4 Attempt the following. (Any THREE) (Each of 5Marks) (15M)
    • (a) What is mysql connector? How to access and connect with database using mysql connector? Give and Explain steps with example
    • (b) Write a python program to insert a value in database table emp with following attribute emp_id number,
    • (c) How to execute different types of statements ona database table? Explain with examples
    • (d) Differentiate between socket. connect() and socket.bind()
    • (e) What is cursor? Explain it with example
    • (f) Explain URL with example the following (Any THREE) (Each of (15M)
    • (a) How to apply font on tkinter widgets? Explain with examples
    • (b) With the help of proper example explain listbox widget in tkinter
    • (c) python program to write the data into the file
    • (d) Explain in brief following exceptions:
  15. Q1 Exception 2) ZeroDivisionError
    • (e) Write a python program to send email

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!