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

model2-PYTHON

This document outlines the model exam for the course GE3151: Problem Solving and Python Programming at SRI RAAJA RAAJAN COLLEGE OF ENGINEERING & TECHNOLOGY. It includes a variety of questions divided into two parts, covering topics such as iterative statements, algorithms, flow control, Python modules, exceptions, recursion, sorting algorithms, and file handling. The exam is scheduled for January 5, 2025, and is designed to assess students' understanding and application of Python programming concepts.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
3 views

model2-PYTHON

This document outlines the model exam for the course GE3151: Problem Solving and Python Programming at SRI RAAJA RAAJAN COLLEGE OF ENGINEERING & TECHNOLOGY. It includes a variety of questions divided into two parts, covering topics such as iterative statements, algorithms, flow control, Python modules, exceptions, recursion, sorting algorithms, and file handling. The exam is scheduled for January 5, 2025, and is designed to assess students' understanding and application of Python programming concepts.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
You are on page 1/ 2

SRI RAAJA RAAJAN COLLEGE OF ENGINEERING & TECHNOLOGY

Amaravathiputhur Post, Karaikudi Tk


Accredited by NAAC with B+ Grade
MODEL EXAM 2 – JANUARY 2025

Reg. Date : 5.1.25


o: Yr/Sem/SECTION: I/I/E
Session : AN

GE3151 PROBLEM SOLVING AND PYTHON PROGRAMMING 50 Marks

ANSWER ALL QUESTIONS


PART A (10*2 = 20MARKS)
1. Define an iterative statement (AU.,JAN2022) C105.1 BTL1
2. Write an algorithm to find the smallest among three numbers. (AU.,A/M2022) C105.1 BTL1
3. How does the flow of control work?. (AU.,JAN2022) C105.1 BTL1

4. Let list=[‘a’,’b’,’c’,’d’,’e’,’f’].find the following. (AU.,N/D2022) C105.5 BTL1


a) List[1:3]
b) List[:4]
c) List[3:]
5. What is slicing operator in python? Give an example. (AU.,N/D2022) C105.2 BTL1

6. What are the different modules in python?. (AU.,A/M2023) C105.2 BTL1

7. How exceptions are handled in python? (AU.,N/D2022) C105.2 BTL1

8. Write the significance of format operator (AU,A/M2022) C105.2 BTL1

9. How do you use command line arguments to give input to the program?

(AU,A/M2023) C105.5 BTL1

10.What is range function and how it is used in the list ? (AU,A/D2024)

C105.2 BTL1 PART B – (5*16

= 80 Marks) (Any FIVE)

11. i) Draw a flow chart to accept three distinct numbers , find (AU,N/D2022) C105.2 BTL2
the greatest and print the result (8)
ii) Draw a flowchart to find the sum of the series. 1+2+3+…..
+100(8)

12. i) What is meant by recursion? Write a recursive algorithm to (AU,N/D2022) C105.3 BTL2
solve towers of Hanoi problem (8)
ii) Explain in detail about precedence of python operators
and the associativity of python operators.(8)
13. i) Discuss about scope and lifetime of variables considering (AU,N/D2022) C105.2 BTL3
functions.(8)
ii) Write and explain the python program to swap two
numbers with and without temporary variables.(8)
14. i) Explain bubble sort algorithm using python (AU,N/D2023) C105.2 BTL4
programming(8)
ii) What is string function in python? Explain any 3 python
string methods with an example.(6)
15. i) Explain in deatil about lists, list operations and list slices(8)
(AU,A/M2023) C105.2 BTL3
ii)Demonstrate with python code the various operations that can be performed on tuples(8)

16. i) Why does python require file handling?Explain opening & closing file in python with all modes.
(AU,N/D2023) C105.3 BTL4

ii) Give a brief note on python exception handling using try, except, raise and finally statements.(8)

Prepared by: Mrs.D.Sujatha, HoD/AI&DS Approved by:

You might also like