Solved Model Question
Solved Model Question
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.
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)
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
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
JENIL THAKKAR
knowledge