0% found this document useful (0 votes)
2 views1 page

Python S1 Assignment

This document outlines the structure and content of the First Sessional Examination for Python Programming at Inderprastha Engineering College, Ghaziabad. It includes details about the exam format, sections with specific questions, and topics such as features of Python, error explanation, string operations, and programming tasks. The exam is designed for 2nd-year students and consists of multiple sections with varying question types and marks distribution.

Uploaded by

tanyafds
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)
2 views1 page

Python S1 Assignment

This document outlines the structure and content of the First Sessional Examination for Python Programming at Inderprastha Engineering College, Ghaziabad. It includes details about the exam format, sections with specific questions, and topics such as features of Python, error explanation, string operations, and programming tasks. The exam is designed for 2nd-year students and consists of multiple sections with varying question types and marks distribution.

Uploaded by

tanyafds
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

INDERPRASTHA ENGINEERING COLLEGE, GHAZIABAD

Department of CSE, AIML, DS, IT,AI


First Sessional Examination (Odd Semester 2025-26)
Python Programming BCC- 302 2nd Year

Roll No. of student

Max. Marks :45​ ​ ​ ​ ​ ​ ​ ​ ​ ​ Time: 1:30 Hr


SECTION- A

Q1. Attempt all parts. All parts carry equal marks. Write answers of each part in short.​ (5*2=10)

(a)(CO1): Write the features of the python programming language. ​ ​ ​ ​ K1​


(b)(CO2): Explain why the below program generates an error.
​ ​ X=[‘36’,’hello’,399]
​ ​ X[0]*=5
​ ​ X[1][1]=’Hey’​​ ​ K1​
(c)(CO2): What is the use of join operation in strings? Give a proper example.​ ​ ​ K1
(d)(CO2): Describe the behaviour of “ range()” in Python.​ ​ ​ ​ ​ ​ K1
(e)(CO2):Write a program that iterates over a list of numbers. If the number is odd, do nothing (use pass,
otherwise print the number.​ ​ ​ ​ ​ ​ ​ ​ ​ K1
SECTION- B

Note: Attempt all questions.

Q2. Attempt any three parts ​ ​ ​ ​ ​ ​ (5*3 =15)

(a)(CO2): Write a Program to count the frequency of characters in a string.


(b)(CO2): Write a program to print a fibonacci series of a number . K3​
(c)(CO1): Write short note on the following with examples:
1.​ Operator Precedence 2. Type Conversion
(d)(CO2): Write a program to Check the strength of a Passward.​ ​ ​ ​ ​ K3
​ ​ ​ ​ ​ ​ ​
Q3. Attempt any four parts.​ ​ ​ ​ ​ ​ ​ (5*4=20)

(a)(CO1): Design a basic calculator in python that supports addition, subtraction, multiplication, division. K3
(b)(CO1): Define Membership and Identity Operators.
Give: a=3 b=3 Distinguish between :(a is b) and (a==b)?​ ​ ​
(c)(CO2): Explain Conditional statement in detail with example. ​​ ​ ​ K2
(d)(CO1): Define the different types of data types in python with examples.​ ​ ​ ​ K
(e)(CO2): Write a python program to construct the following pattern, using a nested for loop.​ K2
******
*****
****
***
**
*

(SUBJECT TEACHER)​ ​ ​ ​ ​ ​ ​ ​ (MODERATOR)

You might also like