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

Python Put....

This document outlines the examination paper for the Python subject for B. Tech. CSE & IT 2nd Year students at Rajarshi Rananjay Sinh Institute of Management & Technology. It includes instructions, a breakdown of sections A, B, and C with various questions related to Python programming concepts, functions, and data structures. The total marks for the examination are 70, and all questions are compulsory.

Uploaded by

binni6204
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)
4 views3 pages

Python Put....

This document outlines the examination paper for the Python subject for B. Tech. CSE & IT 2nd Year students at Rajarshi Rananjay Sinh Institute of Management & Technology. It includes instructions, a breakdown of sections A, B, and C with various questions related to Python programming concepts, functions, and data structures. The total marks for the examination are 70, and all questions are compulsory.

Uploaded by

binni6204
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

Rajarshi Rananjay Sinh Institute of Management & Technology, Amethi U. P.

Affiliated to Dr. A.P.J. Abdul Kalam Technical University, Lucknow, Uttar Pradesh
Approved by AICTE, New Delhi
Set of Papers : A Roll No:

Pre-University Examination: (2025-26)


Subject Name: Python Sub Code: BCC 302
nd
B. Tech. CSE & IT 2 Year
(Third Semester, Theory Examination)
Time: 3:00 Hrs. Total Marks: 70
NOTES:
i) This paper is divided into three sections: A, B & C.
ii) Separate instructions are given with each question.
iii) All questions are compulsory.
iv) Any missing data can be sensibly and reasonably assumed
v) Mobile Phone is not allowed.

SECTION A

1. Attempt all questions in brief. 2 x 7 = 14


Q no. Question Marks CO
a. Discuss why Python is called as dynamic and strongly typed language? 2 1
b. Write a for loop that prints numbers from 0 to 57, using range function. 2 2
c. What is the difference between Python Arrays and Lists? 2 3
d. Explain the use of “with” construct in Python with an example program. 2 3
e. Describe about different function of matplotliband pandas. 2 4
f. Explain the use of break and continue with example. 2 4
g. Write short notes on 2 3
h. The programming cycle for python
i. ii. Type conversion in python

SECTION B

2. Attempt any three of the following: 7 x 3 = 21


Q no. Question Mark CO
s
a. What do you mean by operator precedence and associativity. Explain. 7 1
b. Write a Python program, 7 2
****
****
****

c. Construct a function perfect square that return a number if it is a perfct square 7 3


otherwise it return -1.
d. Construct a program which accept a sequence of words separated by white 7 2
space as file input print the word composed of digit only.
e. Explore the working of while and for loop with example. 7 5

SECTION C
3. Attempt any one part of the following: 7x1=7

Q no. Question Mark CO


s
a. Write a program to check given year is leap year or not? 7 1
b. Explain five different built in function used in string . 7 1

4. Attempt any one part of the following: 7x1=7


Q no. Question Mark CO
s
a. What is purpose of seek method in file handling? Demonstrate a program 7 2
that copies content from one file to another file.
b. Discuss the different types of argument passing method in python. Explain 7 4
the variable length argument with any suitable example.

5. Attempt any one part of the following: 7x1=7


Qno. Question Mark CO
s
a. Write a Python function removekth(s, k) that takes as input a string s and an 7 3
integer k>=0 and removes the character at index k. If k is beyond the length
of s, the whole of s is returned. For example,
removekth(“PYTHON”, 1) returns “PTHON”
b. Discuss various file opening mode in function. 7 3

6. Attempt any one part of the following: 7x1=7


Qno. Question Mark CO
s
a. Compare list and dictionary data structure , Explain various dictionary 7 4
method with suitable example.
b. Write a function makePairs that takes as input two lists of equal length and 7 4
returns a single list of same length where k-th element is the pair of k-th
elements from the input lists. For example,
makePairs([1,3,5,7],[2,4,6,8])
returns [(1,2),(3,4),(5,6),(7,8)]
makePairs([],[])
returns []

7. Attempt any one part of the following: 7x1=7


Qno. Question Mark CO
s
a. Write a program to count the vowel present in given input string . Explain the 7 5
output of program through example.
b. How do we use package in python programming? Explain the use of pandas. 7 5

You might also like