0% found this document useful (0 votes)
10 views

UEPC-python 2024_new Updated

Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as XLSX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
10 views

UEPC-python 2024_new Updated

Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as XLSX, PDF, TXT or read online on Scribd
You are on page 1/ 13

DHAANISH AHAMED COLLEGE OF ENGINEERING

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

FREQUENTLY ASKED UNIVERSITY QUESTIONS UNIV QUES


UNIT S.NO MARKS
(ORDER OF PRIORITY: UNIV MOST REPEATED TO REPEATED ) REFERENCE

1 Distinguish between algorithm and program. 2


Jan 2019
Write an algorithm to accept two numbers, compute the sum and
2 2
print the result. Jan 2018

3 Define an iterative statement 2 Jan 2022

4 What are the factors used to judge the quality of the algorithms? 2

5 Write an algorithm to find minimum number in a list of numbers. 2


Jan 2019
I
6 What is an algorithm? 2 Jan 2018

7 List the symbols used in drawing a flowchart. 2 May2019

8 Write a Pseudocode to find the greatest of two numbers. 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

1 Outline the logic to swap the values of two variables ? 2 May2019

2 What are keywords ?Give example 2


Jan 2019

3 State about logical operator available in python with example 2 May2019

4 Define string with an example. 2

5 Are comments executable statements in a Python program?How comments are 2


II included in a Python Program? Jan 2022

6 Name the four types of scalar objects in python ? 2


Jan 2018

7 What is a tuple?How literals of tuples are written .Give example. 2


Jan 2018

8 2 Jan 2020
Define expression.
9 State the rules for naming the variable. 2

Identify the operands and operators in the following expression.


10 2
sum=a+b
Jan 2022

1 Present the flow of execution for a while statement. 2


Jan 2019

2 State the reasons to divide programs into functions. 2


Jan 2019

3 Name the two types of iterative statements supported by Python. 2


Jan 2022

4 Define string slice. Give example. 2


Jan 2023

5 Define string immutability. 2 Jan 2020


III
6 Define recursive function with example. 2 May2019

7 Define fruitful function. 2 Jan 2020

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

7 What is cloning a list?Give example. 2 Dec 2020

In Python,how the elements in a list are accessed?Should the


8 2 Jan 2022
elements of a list be of the same data type?

9 List the functions to perform deletion in a tuple. 2

10 How the values of tuple are accessed?Illustrate with an example. 2 01/01/23

1 2 Jan 2018
Write a Python script to display current date and time.

2 Find the syntax error in the code given: 2 Jan/2019


while True print(“Hello World”)
3 What is a Command line argument? 2 Apr/2019
4 2 Jan/2019
What is a module?Give an example.
5 Categorise different types of errors arises during programming. 2 Apr/2019

V 6 What are packages?How to import modules from a package? 2 Dec 2020

7 What are the different modules in Python? 2 Jan 2022

8 Write a syntax for opening a file to write in binary mode. 2 Jan 2022

9 Define exception. 2 Jan 2023

How will you update the contents of one file to another file
10 2 Dec 2020
in Python?

SUBJECT FACULTY HOD PRINCIPAL


Dhaanish Nagar, Padappai, Chennai-601301.
FORMAT-1A
DEPT: CSE SUBJECT FACULTY: Mrs Mrs.Benitta Sherine & Mrs.Anjugam

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 )

Explain with an example the basic building blocks of algorithms.


(OR)
Explain the concept of different control flow structures in algorithm. APR/MAY 2019
1 16
(OR) JAN 2023
Mention the type of iterative structures allowed in python.Explain the
use of continue and break in Python.

(i)What is an Algorithm. Summarize the good characteristics of


2 good algorithm. (8) 16 APR/MAY 2019
(ii)Outline the algorithm for displaying the first n odd numbers.(8)

(i)Draw a flowchart to accept three distinct numbers ,find the greatest


and print the result. Jan 2022
3 (ii)Draw a flowchart to find the sum of series 1+2+3+4+5+.......+100. 16 Jan 2019
(iii)Write an algorithm to insert a card into a list of sorted cards. Jan 2023
iv)Write an algorithm to find an element in the given set of numbers.

4 Explain in detail about Pseudocode and different types of 16 Jan 2019


I
programming languages .

Write the algorithm ,pseudocode and draw a flowchart for the


following problems:
a. find minimum in a list
b. insert a card in a list of sorted cards
5 16 Jan 2023
c. guess an integer number in a range
d.Draw a flowchart to check whether a given word is Palindrome.

Explain the identification of computation problems in detail.


6 16
APRIL/MAY 2015,
Draw a flowchart to check whether the given number is zero, positive
7 16 MAY/JUNE 2016,
and negative and also for finding the roots of a quadratic equation.
JAN 2013

i)Mention the list of keywords in Python.Compare it with variable name.


(8)
1 16 APR/MAY 2019
ii)What are statements?How they are constructed from variable and
expressions in Python?(8)

i)Sketch the structures of interpreter and compiler.Detail the differences


between them.Explain how python works in interactive mode and script Jan 2019
2 16
mode with examples.(2+2+4) Dec 2020
ii)Outline the data types supported by Python with examples.(8)

i)Write a Python program to exchange the values of two variables using


a third variable.(4)
ii)Write a Python program to exchange the values of two variables
3 16 Jan 2018
without using a third variable.(4)
ii)Write a Python program to find the sum of first n even numbers and
print the result.(8)

(i)Explain the syntax and structure of user-defined functions in Python


with examples.Also discuss about parameter passing in functions.(12) Jan 2019
II 4 16
(ii)Write a Python function to swap the values of two variables.(4) Dec 2020

i)Write a Python Program to circulate the values of n variables(6)


5 ii)Write a Python Program to find distance between two points.(6) 16
iii)Write short notes on comments.(4)

Write a program to find the roots of a quadratic equation gives the


6 16 NOV/DEC 2022
coefficients a, b, c and also to print the digit at one's place of a number.

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.

State the advantages of recursive function.Write a Python program


i) To find a factorial of a given number using recursion and without
2 16 Jan 2018
using recursion.
ii)To find a the Fibonacci series using recursion.

i)Explain the string methods with example.


Python strings are immutable.Justify with an example.(8)
3 16 Jan 2019,Jan2020
ii)Write a Python code to perform binary search.Trace it with an example
of your choice.(8)

Analyse string slicing.Illustrate how it is done in


4 python with example. (8) 16 Jan 2019,Jan2020
Write a Python code to Search a string in a given list.(8)
III

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

What is a Python dictionary?Give example.


1 Appraise the operations for dynamically manipulating dictionaries. 16 Jan 2018

i)Write a Python program to perform linear search on a list.(8)


Jan 2018,
2 ii)Write a Python Program to store 'n' numbers in a list and sort the list 16
Jan 2019
using selection sort.(8)

i)Discuss different options to traverse a list. (8)


3 ii)Demonstrate the working of +,* and slice operators in Python.(8) 16 Jan 2019
i)Write a seperate Python progrm to create,access,concatenate and delete
operations in a tuple.(10)
4 16 Jan 2022
ii)Write a Python program to create a dictionary and sort the content of a
dictionary based on values in reverse order.(6)
IV
Write a Python Program
i)Merge sort
5 ii)To create a Students marks statement 16 Jan 2023
iii)Retail bill preparation.
iv)tuple assignment

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)

i)Explain in detail about modules and packages in Python.


2 16 Jan 2023

i)Write a program to concatenate the contents of two files into a single


file.
Jan 2022
3 Get the input for two files from the user and concatenate it.(8) 16
Jan2020
ii)Write a program that reads a file and builds a histogram of the words
in the file.(8)

i)Explain in detail about command line arguments.Write a Python code


to Count the number of words in a Python file using command line
4 argument.(8) 16
Jan 2018
ii)Explain with an example exceptions with arguments in Python(6)
V
llustrative programs:
i)word count,
5 16
ii)Voter’s age validation
iii)Marks range validation (0-100).

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.

SUBJECT FACULTY HOD PRINCIPAL


ES
CE

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

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy