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

Programming in Python: Instructio Ns To Candidates

This document is an exam paper for a Programming in Python course. It contains 8 questions related to Python programming. Students are instructed to attempt any 5 questions, with each question worth 12 marks. The questions cover topics like functions, variables, object oriented programming, lists, modules, exceptions handling, and more. The document also contains standard instructions about academic integrity.

Uploaded by

Gurjot Singh 651
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)
84 views2 pages

Programming in Python: Instructio Ns To Candidates

This document is an exam paper for a Programming in Python course. It contains 8 questions related to Python programming. Students are instructed to attempt any 5 questions, with each question worth 12 marks. The questions cover topics like functions, variables, object oriented programming, lists, modules, exceptions handling, and more. The document also contains standard instructions about academic integrity.

Uploaded by

Gurjot Singh 651
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/ 2

Roll No. Total No.

of Pages : 02
Total No. of Questions : 08
B.Tech (CSE) PIT (Sem.–5)
PROGRAMMING IN PYTHON
Subject Code : BTCS 510-18
M.Code : 78324
Date of Examination : 19-01-22
Time : 2 Hrs. Max. Marks : 60

INSTRUCTIONS TO CANDIDATES :
1. Attempt any FIVE question(s), each question carries 12 marks.

1. Why do we create functions in Python? Write Python Program to simulate a Bank Account
with support for deposit Money, withdraw Money and show Balance Operations.
2. a) Differentiate between Global and local variables.
b) What are the most important issues in IDLE startup?
3. Give an overview and demonstration of building web applications using Python’s cgi
module. Give suitable examples.
4. Explain the concept of method overriding with an example program. How object oriented
methodology helps in data abstraction? Illustrate.
5. What is use of List data type? How can you create nested lists in Python? Write Python
code for the same. Write Python code to create 3D matrix using lists. Do lists support
dynamic typing? Explain with example.
6. Write Python code to create a function named shift_rect() that will take input as an object
of Rectangle class and two values named x and y numbers. The rectangle should move
from its original position by x in horizontal position and y in vertical direction. Write
mathematical equation for the operation by declaring suitable variables.

7. Write a note on PIP. What are the different steps and processes involved in installation of
PIP? Elaborate. How do PIP help in efficient management of your Python codes?
8. What is the need of exception handling? How do you deal with them in Python,
effectively? Write a Python code to input, store and display data of college students, taking
care of all the exceptions.

1|M - 7 8 3 2 4 635
Note: Any student found attempting answer sheet from any other person(s), using
incriminating material or involved in any wrong activity reported by evaluator shall be
treated under UMC provisions.
Student found sharing the question paper(s)/answer sheet on digital media or with any
other person or any organization/institution shall also be treated under UMC.
Any student found making any change/addition/modification in contents of scanned copy of
answer sheet and original answer sheet, shall be covered under UMC provisions.

2|M - 7 8 3 2 4 635

You might also like