You are on page 1of 1

USN

NAGARJUNA COLLEGE OF ENGINEERING AND TECHNOLOGY


Department of Information Science and Engineering
Even Semester 2023-24
Internal Assessment Test – I

Course Name: Introduction to Python Programming Course Code:23PLC25B Semester: II


Date: 29-04-2024 Time: 11.00am to 12.00pm Max. Marks:25

[Note: Answer any THREE full questions as indicated below]


Sl. RBT
QUESTIONS COs Marks
No Levels
1. a) Write a simple program of your choice that says hello and then asks for CO1 L2 04M
your name, age, and the length of your name.
b) Explain Python programming language along with its salient features in CO1 L2 06M
detail.
Explain the terms print( ), input( ) and string replication with an example.
CO1
CO1 L2 04M L2
Write a python program to enter the character and if the entered character is
uppercase convert it into lowercase, if it is of lowercase convert it into
uppercase. CO1 L2 06M

2. a) Describe a method to access a global variable inside a function in Python CO1 L2 04M
with an example?
b) Explain the use of comparison operators in Python programming, and CO1 L2 06M
illustrate their functionality with a Python code example.
3. a) Recall Len ( ) function and explain how it is used on strings with an CO1 L2 04M
example.
b) Outline logical operators and arithmetic operator with a suitable example CO1 L2 06M
for each.
OR
4. a) Describe the purpose of using break and continue with suitable examples. CO2 L2 04M
b) Express why would you use a try-except statement in a program? CO2 L2 06M
5. Write a program to read the student details like Name, USN, and Marks in three CO2 L3 05M
subjects. Display the student details, total marks and percentage with suitable
messages.
OR
6. Determine whether you should use tuples or lists to store the student information. CO2 L3 05M
Justify your choice with suitable examples.

You might also like