Вы находитесь на странице: 1из 2

S.Y. B.Sc. (IT) : Sem.

III
Python Programming
Time : 2½ Hrs.] Prelim Question Paper [Marks : 75

Instructions : (1) All questions are compulsory.


(2) Make suitable assumptions wherever necessary and state the assumptions made.
(3) Answers to the same questions must be written together.
(4) Numbers to the right indicate marks.
(5) Draw neat labeled diagrams wherever necessary.
(6) Use of Non-programmable calculators is allowed.

1. Attempt the following (any THREE) [15]


(a) What are the two modes of working in IDLE?
(b) Explain Fruitful vs Void functions.in Python.
(c) Explain the difference between : Brackets, Braces and parentheses.
(d) Explain Formal Languages vs Natural Languages.
(e) Explain the loop control statement: break, continue and pass with example.
(f) Write a short note on range function with example.

2. Attempt the following (any THREE) [15]


(a) Explain with a program to use any 5 math module functions.
(b) Write a program to find average of three numbers using functions
(c) Write a short note on Stack Diagram with example.
(d) Explain: a. import statement b. from...import statement c. from...import* statement
(e) Write a short note on Leap of Faith.
(f) Explain Fruitful vs Void functions.

3. Attempt the following (any THREE) [15]


(a) Are lists mutable or immutable? Justify.
(b) Explain built in list functions: list(), len(), max(), append(), extend().
(c) Write a short note on Tuple assignment (packing and unpacking).
(d) Explain built in dictionary methods.
(e) Write a Python Program to create User defined exception.
(f) Explain directory functions: os.mkdir("Name"), os.chdir("dirPathName"), os.getcwd(),
os.rmdir("dirName"), os.rename(current_dir_name, new_dir_name)

4. Attempt the following (any THREE) [15]


(a) Explain the Regular Expression method for : findall(), search(), split().
(b) How to create a constructor?
(c) What is method overriding in Python? Explain with the help of a program.
(d) What is static method in Python? Explain with the help of a program.
(e) Explain any five functions of the random module.
(f) Write a short note on Thread Synchronization.

5. Attempt the following (any THREE) [15]


(a) How to create message showinfo box, message showerror box and message
showwarning box in Python.
(b) Explain Entry and Button widget with small example.
(c) What is LabelFrame. Explain with example.
(d) Write a program to use INSERT command in Python.
(e) Explain row, column ,padx, pady attributes of Grid Manager with an example.
(f) Explain relief properties of widgets.
P. T. O


1
Vidyalankar : T.Y. B.Sc. (IT)  Adv.Java

Paper Discussion Schedule for all Subjects

Date Day Timing Centre


5 Nov. 2017 Sunday 9.00 a.m. to 11.00 a.m. Andheri
5 Nov. 2017 Sunday 12.00 p.m. to 2.00 p.m. Dadar
5 Nov. 2017 Sunday 3.00 p.m. to 5.00 p.m. Thane
5 Nov. 2017 Sunday 9.00 a.m. to 11.00 a.m. Nerul

Вам также может понравиться