0% found this document useful (0 votes)
9 views

Solved Model Question

Uploaded by

Vibhanshu Patel
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
9 views

Solved Model Question

Uploaded by

Vibhanshu Patel
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

SOLVED MODEL QUESTION PAPER

(As Per New Syllabus)


Python Programming
Semester V (ECE/ EE) Open Elective 1

Time:2 Hours] [Maximum Marks: 70


Instructions

1. Attempt all questions.

2. Make suitable assumptions wherever necessary.


3 Figures to the right indicate full marks.
Q.1 a) Give any three features ofPython programming. (Refer section 1.1)

b) What is data type ? Explain the numeric data type in Python with example.
(Refer section 1.4) 41
c) Write a program in
Python to obtain principle amount, rate of interest and time from
user and compute simple interest. (Refer example 1.5.4) [71
0.2 a) Explain the ifelse statement in Python.(Refer section 2.1.2) [31
b What is boolean expression ? How it is used in Python? Explain itwith example.
(Refer section 2.1.5) 4]
c) Write a Python program to display Fibbonacci numbers for the sequence of length n.
(Refer example 2.2.4) 171
OR

)Explain the split and join functioms oflist with illustrative examples.
(Refer section 2.7.3)
.3 a) Write a Python program to create a tuple from dictionary elements.

(Refer example 2.9.2) 131


Write a Python program to plot a line using Pylab's Pyplot function.
(Refer section 2.10.1) I41

(c What is dictionary? How to create dictionary ? (Refer section 2.9.1)

OR

0.3 a)
a) Explain the concept offunctionm argument and parameter passing
(Refer section 3.2.3) 131

(M-1)
JENIL THAKKAR
Python Programming M- 2 Solved Model Question Paper
er
b) Explain scope of the variable with suitable example. (Refer section 3.3)
41
c) What are the basic operations that can be perforned on tuple ? Explain with suitakl,
example. (Refer section 3.5)

Q.4 a) Explain the concept of file (Refer section 4.1)

b) Explain the file opening modes with illustrative examples (Refer section 4.2.1)
141
c)Write a program to read the contents of file. (Refer example 4.2.1)
I71
OR
Q.4 a) Explain how to write the contents to a file ? (Refer section 4.2.2.2)
b) How to renamea
particular file using Python program ? (Refer section 4.2.4) 14
c) Explain the seek and tell functions used for positioning the
file.
(Refer section 4.2.5)
Q.5 a) Explain the use of csv file. (Refer section 4.3) 3]
b) Explain how to handle the binary files in Python (Refer section 4.4) [4
c)
c)Write Python program to raise divide by zero using user
a

(Refer example 4.5.1) defined exception.

OR
Q.5 a) What is MicroPython? Explain. (Refer section 5.1) 13]
b) Explain MicroPython hardware. (Refer section 5.3.1) 4]
c) Explain sensor program1ming using MicroPython. (Refer
section 5.6) I71

O00

TECHNICAL PUBLICATIONS An up thrust for

JENIL THAKKAR
knowledge

You might also like