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

Code No: A62EA Bvraju Institute of Technology, Narsapur: Python Programming

This document is an examination paper for the Python Programming course at BVRAJU Institute of Technology for I B. Tech II Semester. It consists of two parts: Part A with 10 compulsory questions worth 10 marks, and Part B with 5 questions worth 50 marks, where students choose one question from each unit. The questions cover various Python programming concepts, including operators, functions, data structures, classes, and exception handling.

Uploaded by

nr8708904
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)
11 views2 pages

Code No: A62EA Bvraju Institute of Technology, Narsapur: Python Programming

This document is an examination paper for the Python Programming course at BVRAJU Institute of Technology for I B. Tech II Semester. It consists of two parts: Part A with 10 compulsory questions worth 10 marks, and Part B with 5 questions worth 50 marks, where students choose one question from each unit. The questions cover various Python programming concepts, including operators, functions, data structures, classes, and exception handling.

Uploaded by

nr8708904
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

Code No: A62EA R 22

BVRAJU INSTITUTE OF TECHNOLOGY, NARSAPUR


(UGC - AUTONOMOUS)
I B. Tech II Semester Regular Examinations, Aug/Sep 2023
PYTHON PROGRAMMING
(Common to ME, CSE, CHE, IT, PHE, CSE (AIML), CSE (DS) and AIDS)
Time: 3 Hours Max Marks: 60
Note: This Question Paper contains two Parts A and B
 Part A is compulsory which carries 10 marks. Ten questions from five units. Answer all questions in
Part A at one place only.
 Part-B consists of 5 Questions (numbered from 2 to 6) carrying 10 marks each. Each of these
questions is from one unit and may contain a, b, c as sub-questions. For each question there will be an
either/or choice (that means there will be two questions from each unit and the student should answer
only one question).
PART – A (10x1 = 10 Marks)
1. Marks Bloom Level CO
a Who invented python programming and in which year ? 1 1 1
b What is iteration statement? 1 1 1
c List any 2 built-in functions. 1 1 2
d Define multiline strings with example. 1 1 2
e Write syntax of list comprehension. 1 1 3
f What is zip function? 1 1 3
g list different types of inheritance? 1 1 4
h Define class. 1 1 4
i How to install Numpy in anaconda prompt? 1 1 5
j Define Error. 1 1 5
PART – B (5x10 = 50 Marks)
Marks Bloom Level CO
2 .a i) Explain about Assignment, Bitwise and identity operators in 6 2 1
detail with examples.
ii)Write a python program to find whether a number is even or 4 3
not.
OR
2.b i) Explain about iteration statements in detail with examples. 6 2 1
ii) Write a python program to perform logical AND operation. 4 3
***
3.a i) Define a function. Explain about user defined and anonymous 7 6 2
functions.
ii) Write a python program to add two list of numbers using MAP. 3 3
OR
3.b i) Write a python program for the following pattern. 7 6 2
*
**
***
****
ii) Explain about any two string formatting types with examples. 3 3
***
4.a i)Elaborate slicing and indexing in list? Explain with an example? 7 6 3
ii) How to create a set in python? Write an example? 3 1
OR
4.b i) Compare list tuple and set 7 6 3
ii) Write any three built-in functions in dictionary. 3 1
***
5.a Define class and object. Write a python program to create a 10 3 4
Vehicle class with variables and methods.
OR
5.b Explain about operator overloading with example. 10 3 4
***
6.a i) Explain how Exceptions are handled in Python 4 5 5
ii) Write a python program on exceptions using try, catch, except 6 4
and else.
OR
6.b i) Explain about open and write operations in files. 4 5 5
ii) Write a python program to create a file “ [Link]” and ask 6 4
the user to write multiple lines of text by user input.
***

You might also like