[go: up one dir, main page]

0% found this document useful (0 votes)
13 views2 pages

Model QP

This document outlines the model examination for the Problem Solving and Python Programming course for undergraduate students in January 2025. It includes details such as the course outcomes, examination structure, and a series of questions divided into two parts, covering algorithms, Python programming concepts, and practical coding tasks. The examination assesses various levels of knowledge and skills, from basic definitions to programming applications.
Copyright
© © All Rights Reserved
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% found this document useful (0 votes)
13 views2 pages

Model QP

This document outlines the model examination for the Problem Solving and Python Programming course for undergraduate students in January 2025. It includes details such as the course outcomes, examination structure, and a series of questions divided into two parts, covering algorithms, Python programming concepts, and practical coding tasks. The examination assesses various levels of knowledge and skills, from basic definitions to programming applications.
Copyright
© © All Rights Reserved
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

REG. NO.

(Approved by AICTE, Affiliated to Anna University)

DEPARTMENT OF COMPUTER SCIENCE AND ENGINEERING

MODEL EXAMINATION – UG - JAN 2025

Sem & Branch : I /CSE A,CSE B,MECH,AIDS Date : 29.01.2025


Subject : PROBLEM SOLVING &
PYTHON PROGRAMMING Duration : 3hrs
Sub. Code : GE3151 Max. Marks : 100 Marks

Course Outcomes assessed: CO1, CO2, CO3, CO4 and CO5

Part-A

Answer all the questions [10 x 2 = 20Marks]

1. Write an algorithm to find the sum of first ‘N’ natural numbers. (K2) (CO1)

2. What are the simple strategies for developing algorithms? (K1) (CO1)

3. What is an identation in python ?Give example.(K1) (CO2)

4. What is Slicing operator in python? Are comments executable statements in a python program?(K1)(CO2)

5. Define Recursive function. (K1) (CO3)

6. Write a python program to add two matrices . (K2)(CO3)

7. How are the values of tuples accessed? Illustrate with example.(K3) (CO4)

8. How python’s dictionaries store data? Give example.(K3) (CO4)

9. Write the syntax for opening a file to write in binary model. (K2)(CO5)

10. What are command line arguments in python?(K1)(CO5)

Part B

Answer the following [5 × 16 = 80 Marks]

11. a.i. Explain the different ‘building blocks of algorithm with their notations’?(10) (K2)(CO1)

ii.Draw a flow chart and algorithm to find the sum of the series

1+2+3+4+5+6+…100.(6)(K1,K3).(CO1)

OR
b.State the Tower of Hanoi problem. Outline the program with recursive function and with relevant diagrams.(16)(K2)(CO1)

12. a.i.Explain the python interpreter and interactive mode in detail.(12) (K2)(CO2)

ii.Write a python program to calculate the distance between two points.(4) (K2)(CO2)

OR

b.Explain the types of operators supported by python and explain any two with example programs.(16) (K2)(CO2)

13. a. Outline the conditional branching statements in python with an example.(16)(K5)(CO3)

OR

b.i.Outline while loop,break statement and continue statement in python with an example.(12)(K5)(CO3)

ii.Write a python program using function to find the sum of first ‘n’ odd numbers and print result.(4)(K2)(CO3)

14. a.i.Discuss operations ,methods and slices in List and explain with example programs .(12)(K2)

ii.Explain any cloning list technique in Python.(4)(K2)(CO4)

OR

b.Write illustrative program on student marks statement and retail bill preparation.(16)(K2)(CO4)

15. a. Explain in detail about Python Files, its types, functions and operations that can be performed on files with examples. (16)(K2) (CO5).

OR

b.i.Explain the use of packages and modules in python with examples.(8)(K2)(CO5)

ii.Write a simple python program to count the numbers of words in the sentence using split method.(8)(K2)(CO5)

Knowledge- K1, Comprehension-K2 Application –K3,


Analysis- K4, Synthesis- K5, Evaluation – K6

You might also like