The document is an examination paper for the first semester of ECE and EEE at AVS College of Technology, focusing on Problem Solving and Python Programming. It outlines the course outcomes, specifies the exam format, and includes various questions divided into two parts, covering algorithms, data types, control structures, and file operations in Python. The paper assesses students' understanding and application of Python programming concepts through a mix of theoretical and practical questions.
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0 ratings0% found this document useful (0 votes)
6 views2 pages
PSPP M2
The document is an examination paper for the first semester of ECE and EEE at AVS College of Technology, focusing on Problem Solving and Python Programming. It outlines the course outcomes, specifies the exam format, and includes various questions divided into two parts, covering algorithms, data types, control structures, and file operations in Python. The paper assesses students' understanding and application of Python programming concepts through a mix of theoretical and practical questions.
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 2
AVS COLLEGE OF TECHNOLOGY, SALEM-106
Department of Science and Humanities
Model Examinations. st Semester & Branch: 1 ECE, EEE Duration: 3:00 hours Date: 29.1.25(AN) Subject Code &Name:GE3151&Problem Solving and Max. Mark: 100 Python Programming. CO1 To develop algorithmic solutions to simple computational problems. CO2 To develop and execute simple python programs. CO3 To write simple python programs using conditionals and loops for solving problems. CO4 To decompose a python program into functions. CO5 To represent compound data using python lists, tuples, dictionaries etc. ANSWER ALL THE QUESTIONS PART A (10*2=20) 1 Write an algorithm to accept two numbers, compute the sum and print the CO1 K1 result. 2 Define an iterative statement. CO1 K1 3 Outline the comments are included in a Python program? Are comments CO2 K4 executable statements in a Python program? 4 Identify the operand (a) and operator (s) in the following expression: sum = a + b. CO2 K2 5 List out the two types of iterative statements supported by Python. CO3 K1 6 Recall recursive function. CO3 K1 7 Show how the values stored in a list are accessed? Should the elements of a list be CO4 K3 of the same data type? 8 How Python's dictionaries store data? Give example. CO4 K2 9 Produce the syntax for opening a file to write in binary mode. CO5 K3 10 State the different modules in Python? CO5 K1 ANSWER ALL THE QUESTIONS PART B (40) 11.a) (i) Design a flow chart to accept three distinct numbers, find the greatest and print the result. (8) CO1 K6 (ii) Construct a flow chart to find the sum of the series 1+2+3+4+5+....+ 100. (8) CO1 K6 (or) b) Illustrate the Towers of Hanoi problem. Outline a solution to the Towers of Hanoi problem with relevant diagrams. (16) CO1 K2 12.a) Discuss the data types supported by Python with an example. (16) CO2 (or) b) Classify the types of operators supported by Python and outline any two with an CO2 example. (16) K2 13. a) Explain the conditional branching statements in Python with an example. (16) CO3 K2 (or) b) (i) Outline while loop, break statement and continue statement in Python with an example. (12) CO3 K4 (ii) Interpret a Python program using function to find the sum of first 'n' odd numbers and print the result. (4) CO3 K3 14. a) Describe the operations with an example be performed on a list and outline any CO4 four (16) K2 (or) b) (i) Conclude separate Python programs to illustrate create, access, concatenate and CO4 K5 delete operations in a tuple. (10) K6 (ii) Develop a Python program to create a dictionary and sort the content based on CO4 values in reverse order. (6) 15 .a) Categorize the different access modes for opening a file and present an outline of CO5 the same. (16) K4 (or) b) (i) What is an exception? Elaborate exception handling in Python. (8) (ii) Write a program to concatenate the contents of two files into a single file. Get CO5 K5 the input for two files from the user and concatenate it (8) K1