Gujarat Technological University
Gujarat Technological University
___________
MARKS
Q.1 (a) Describe membership operator and identity operator with 03
example.
(b) Write Python program to find sum of first N numbers using while 04
loop. (Take N as user input)
(c) Differentiate List, Tuple, Set and Dictionary. 07
Q.3 (a) Describe python tuple with example. Describe any two built-in 03
tuple methods
(b) Describe filter method/function available in python with example. 04
(c) Write a python program to read marks of students from 07
“student_marks.csv”. Find average, maximum, and minimum
marks from data. (File contains 100 records)
OR
Q.3 (a) Describe different methods to make dictionary variable. 03
(b) Enlist different modes of opening file. Describe any three method 04
with example
(c) Write a program to print 100 fibonacci numbers in file 07
“Myfibonnaci.csv”
1
(c) Write following python functions: 07
Function-1: Returns reverse string word wise.
Function-2: Count occurrence of vowels from input string.
Design Main python code where above functions are called.
OR
Q.4 (a) Enlist python operators which results in Boolean output. Explain 03
with example.
(b) Enlist python errors. Describe try-except block with example. 04
(c) Write a python program to find roots of following quadratic 07
equation and plot it.
y = 3x2 -5x - 4
in the range of -5 to 5 on plot. Put axes label and plot title.
*************