0% found this document useful (0 votes)
5 views3 pages

235489-23es1203 – Fundamentals of Python Programming

This document is a question paper for the B.E/B.Tech degree end semester examinations in Fundamentals of Python Programming at Panimalar Engineering College. It outlines the course outcomes, exam structure, and includes various questions divided into three parts, covering topics such as Python constructs, data types, functions, and string manipulation. The exam is designed to assess students' understanding and application of Python programming principles.

Uploaded by

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

235489-23es1203 – Fundamentals of Python Programming

This document is a question paper for the B.E/B.Tech degree end semester examinations in Fundamentals of Python Programming at Panimalar Engineering College. It outlines the course outcomes, exam structure, and includes various questions divided into three parts, covering topics such as Python constructs, data types, functions, and string manipulation. The exam is designed to assess students' understanding and application of Python programming principles.

Uploaded by

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

Question Paper Code: 235489

Register No:

PANIMALAR ENGINEERING COLLEGE


An Autonomous Institution, Affiliated to Anna University
CHENNAI - 600 123
B.E/B.TECH. DEGREE END SEMESTER EXAMINATIONS APRIL / MAY 2024
Second Semester
B.E – Mechanical Engineering
23ES1203 – FUNDAMENTALS OF PYTHON PROGRAMMING
(Regulation 2023)
Maximum Marks: 100 Duration: 3 hours
Course Outcome:
CO1: Understand the basic python programming constructs.
CO2: Develop and execute simple Python programs.
CO3: Write simple Python programs using conditionals and loops for solving problems.
CO4: Represent compound data using Python lists, tuples, dictionaries etc.
CO5: Develop programs using functions.
CO6: Develop programs using string functions.
Bloom’s Level: 1 - Remembering, 2 - Understanding, 3 - Applying, 4 - Analyzing, 5 - Evaluating 6 - Creating.
Answer All the Questions
Bloom’s Course Marks
PART A (10 x 2 = 20 Marks) Level Outcome Allotted

1. What is the use of Indentation in Python? [BL1] [CO1] [2]


2. Find the output for the following and justify your answer. [BL3] [CO1] [2]
print(“Welcome‟ * 2)
print(“Welcome‟ * 2.5)
3. How can we swap two numbers a = 10, b = 20 in Python without using [BL3] [CO2] [2]
third variable? Justify your answer.
4. Define: Simultaneous assignment with syntax in Python. [BL1] [CO2] [2]
5. Define List. [BL1] [CO4] [2]
6. Differentiate: Mutable and Immutable objects. [BL2] [CO4] [2]
7. Comment on global and local scope of variables. [BL2] [CO5] [2]
8. Write a Python function to implement pow(x, n). [BL3] [CO5] [2]
9. What is the functionality of Join function in Python? [BL2] [CO6] [2]
10. Write a simple Python program to concatenate two given strings. [BL3] [CO6] [2]

PART B (5 x 13 = 65 Marks)
11.a.i. Give brief account on expressions in Python with an example. [BL2] [CO1] [6]
11.a.ii. Write a Python program to convert hours into minutes. [BL3] [CO2] [7]
OR
Elaborate a short note with suitable examples on arithmetic and
11.b.i. [BL2] [CO1] [6]
comparison operators available in Python.
Question Paper Code: 235489

11.b.ii. Write a Python program to print area of a triangle. [BL3] [CO2] [7]

12.a.i. Differentiate break, continue and pass statements in Python. [BL2] [CO3] [6]
12.a.ii. Write a python code to check whether a number a is odd or even. [BL3] [CO3] [7]
OR
12.b.i. Discuss in brief about any two iterative statements in Python with a [BL2] [CO3] [6]
suitable code snippet.
12.b.ii. Write a Python code to find whether the given number is an [BL3] [CO3] [7]
Armstrong number or not.

13.a.i. Describe the following with appropriate syntax and examples: [BL2] [CO4] [6]
A) Creating a tuple
B) Accessing values in the lists
C) Creating a dictionary
13.a.ii. Write a python code to find the roots of a quadratic function. [BL3] [CO4] [7]

OR
13.b.i. Describe Python Lists and Tuples. [BL2] [CO4] [6]
13.b.ii. Explain Set and the operations performed on the set. [BL3] [CO4] [7]

14.a.i. Explain the concept of Recursive function. [BL2] [CO5] [6]


14.a.ii. Write a Python program to determine the factorial of a given number [BL3] [CO5] [7]
with and without the use of recursion.
OR
14.b.i. Explain briefly about user defined function with suitable example. [BL2] [CO5] [6]
14.b.ii. Write a Python function called prime(m,n) which finds all prime [BL3] [CO5] [7]
numbers between given m and n.
15.a Explain the concept of string slicing with an example. Write a program [BL3] [CO6] [13]
that will prompt the user for a string and then print the number of
vowels and consonants in the string.
OR
15.b Explain String indexing with suitable examples. Write a Python [BL3] [CO6] [13]
program to check whether the entered string is a palindrome or not.
PART C (1 x 15 = 15 Marks)
16.a Explain in detail about Functions in Python. What are the different [BL5] [CO4] [15]
types of arguments supported by Functions?
OR
16.b Write a program to enter the marks of a student in four subjects. Then
[BL5] [CO3] [15]
calculate the total and average and display the grade obtained by the
Question Paper Code: 235489

student. If the student scores an aggregate greater than 75 %, then


the grade is Distinction. If the aggregate is >=60 and <75 then the
grade is First Division. If the aggregate is >=50 and <60 then the
grade is Second Division. If the aggregate is >=40 and <50 then the
grade is Third Division else the grade is Fail.

**********

You might also like