You are on page 1of 1

First Year Engineering

Semester – I ( 2019 – 2020 )


In-SEM Prelim Examination
Subject : Programming and Problem Solving

Date : Time : 1 Hour


Day : Marks :- 30
Instructions :
1. Attempt Q1 or Q2, Q3 or Q4.
2. Figures to right indicate full marks.
3. Use of non-programmable pocket calculator is allowed.
4. Assume suitable data if necessary.

Q.1) a) Discuss the steps involved in problem solving 5


b) Write Short note on
i)Algorithms
ii)Flowcharts
iii)Pseudo-codes
c) What are various problem solving aspects? Explain top down approach of problem solving.

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

You might also like