UEPC-python 2024_new Updated
UEPC-python 2024_new Updated
Chennai-601301.
FORMAT-1A
DEPT: CSE SUBJECT FACULTY: Mrs.Benitta Sherine & Mrs.Anjugam
YEAR/SEM - I/ I SUBJECT CODE & NAME: GE3151 Problem Solving and Python Programming
PART - A
4 What are the factors used to judge the quality of the algorithms? 2
9 What is control flow? List and define the ways of execution of control. 2
10 Write a Python code to find the minimum among the list of 10 numbers. 2 May2019
8 2 Jan 2020
Define expression.
9 State the rules for naming the variable. 2
Write a python program to accept two numbers and multiply them and
8 2
print the result.
Jan 2018
Write a python program to accept two numbers and find the greatest and
9 2
print the result. Jan 2018
Comment with an example on the use of local and global variable
10 2 May2019
with the same identifier name
1 Demonstrate with simple code to draw the histogram in Python. 2 Apr/2019
2 2
Relate strings and lists Jan 2019
3 What is a list?How list differ from tuples? 2 Jan 2018
4 How to create a list in python?Illustrate the use of negative indexing of list with 2 May 2019
example.
5 2
Write a Python program to clone of the list: list1=[1,2,3,4,5,6] Jan 2023
IV
6 2
How to slice a list in Python? Jan 2018
1 2 Jan 2018
Write a Python script to display current date and time.
8 Write a syntax for opening a file to write in binary mode. 2 Jan 2022
How will you update the contents of one file to another file
10 2 Dec 2020
in Python?
YEAR/SEM - I/ I SUBJECT CODE & NAME: GE3151 Problem Solving and Python Programming
PART - B
FREQUENTLY ASKED UNIVERSITY QUESTIONS
UNIV QUES
UNIT S.NO (ORDER OF PRIORITY: UNIV MOST REPEATED MARKS
REFERENCE
TO REPEATED )
7 Explain the tuple assignment and write a program to test for leap year. 16
(i) Define functions.Why are functions needed?Outline about function APR/MAY 2019
1 16
definition and call with example program. JAN 2023
ii)Explain about parameter passing method in Python.
Illustrative programs:
i)square root
ii)gcd
5 16 APR/MAY 2019
iii)exponentiation
iv)sum an array of numbers
v)function composition
Write a python program print the maximum among 'n' randomly generate
NOV/DEC 2019,
6 'd' numbers by storing them in a list and also to generate all permutations 16
R2017
of given string using built-in function.
Descrie parameter passing in function using examples and discuss about NOV/DEC 2022,
7 16
the scope and lifetime of variables considering functions. R2021
Explain tuples as return values and compare their operations and built in
6 functions of tuple. 16 APRIL/MAY 2010
7 Write a program to sort an array of elements using simple sorting. 16 APRIL/MAY 2010
i)Explain about the file reading and writing operations with relevant
1 examples.(8) 16 Jan 2019
ii)Discuss the use of format operators in file processing.(8)
Write a python program to read data from a file and append text to a file
6 and display the text. 16 Jun/10
Write a program to validate the input data with exception and finally and
7 16 Jun/10
also read the marks validate them and print sum and average.
2019
3
2019
2
9
3
3
2015,
2016,
3
2019
9
0
9
0
2022
2019
3
2020
2020
2019
019,
022,
9
2
2010
2010