First Year Engineering: Semester - I (2019 - 2020) In-SEM Prelim Examination Subject
First Year Engineering: Semester - I (2019 - 2020) In-SEM Prelim Examination Subject
OR
Q.2) a) Write a python program to accept 2 integer number from user. Compute and display addition
,subtraction, multiplication and division operation
b) Write a note on
i)Reserved words
ii)Indentation
c) Explain various features of Python
Q.3) a) Explain following operations for values in list. Give proper python syntax:
i)Accessing values in list
ii)Updating list
iii)Deleting the list elements
b) Write short note on following loop control statements with proper syntax:
i).break
ii).continue
c) Write a Python program to accept N numbers from user.
Compute and display maximum,minimum,sum and average of numbers from accepted list
OR
Q.4) a) Explain following operations for values in tuple. Give proper python syntax:
i)Accessing values in tuple
ii)Updating tuple
iii)Deleting the tuple elements
b) Why there is need of comments? Explain different types of comments in python with example
c) Explain Dictionary in Python along with proper syntax