MAHARASHTRA STATE BOARD OF TECHNICAL EDUCATION
(Autonomous)
(ISO/IEC - 27001 - 2013 Certified)
__________________________________________________________________________________________________
WINTER – 2022 EXAMINATION
Subject Name: Programming with Python Model Answer Subject Code: 22616
Important Instructions to examiners: XXXXX
1) The answers should be examined by key words and not as word-to-word as given in the model answer scheme.
2) The model answer and the answer written by candidate may vary but the examiner may try to assess the
understanding level of the candidate.
3) The language errors such as grammatical, spelling errors should not be given more Importance (Not applicable for
subject English and Communication Skills.
4) While assessing figures, examiner may give credit for principal components indicated in the figure. The figures
drawn by candidate and model answer may vary. The examiner may give credit for any equivalent figure drawn.
5) Credits may be given step wise for numerical problems. In some cases, the assumed constant values may vary and
there may be some difference in the candidate’s answers and model answer.
6) In case of some questions credit may be given by judgement on part of examiner of relevant answer based on
candidate’s understanding.
7) For programming language papers, credit may be given to any other program based on equivalent concept.
8) As per the policy decision of Maharashtra State Government, teaching in English/Marathi and Bilingual (English +
Marathi) medium is introduced at first year of AICTE diploma Programme from academic year 2021-2022. Hence if
the students in first year (first and second semesters) write answers in Marathi or bilingual language (English
+Marathi), the Examiner shall consider the same and assess the answer based on matching of concepts with
model answer.
Q. Sub Answer Marking
No. Q. Scheme
N.
1 Attempt any FIVE of the following: 10 M
a) List Python features. (Any four) 2M
Ans Easy to Learn and Use 2M (1/2 M each)
Interactive Mode Any Four
Expressive Language
Interpreted Language
Cross-platform Language
Portable
Free and Open Source
Object-Oriented Language
Extensible
Large Standard Library
GUI Programming Support
Integrated
Databases
Scalable
b) List comparision operators in Python. 2M
Ans Comparison operators in Python are 2M (1M each)
Operator Meaning
== Equal to
Page No: 1 | 21
MAHARASHTRA STATE BOARD OF TECHNICAL EDUCATION
(Autonomous)
(ISO/IEC - 27001 - 2013 Certified)
__________________________________________________________________________________________________
!= Not Equal to
< Less than
> Greater than
<= Less than and Equal to
>= Greater than and Equal to
c) Describe Tuples in Python. 2M
Ans A tuple is a collection of items which is ordered and unchangeable. 2M for
Tuples are the sequence or series values of different types separated by commas (,). Definition.
Example: tup1=(10,20,30)
d) Write use of lambda function in python. 2M
Ans The lambda function, which is also called anonymous function. A lambda function can 2M for use
take any number of arguments, but can only have one expression.
Syntax: lambda arguments : expression
Example: x= lambda a,b : a*b
Print(x(10,5)
Output: 50
e) Write syntax of defining class in Python. 2M
Ans class <ClassName>: 2M for syntax
<statement1>
<statement2>
.
.
<statementN>
f) List file operations in Python. 2M
Ans Opening file (using open() function) 2M
Reading file (using read() function)
Writing file (using write() function)
Copy files
Delete files (using remove() function)
Closing file (Using close() function)
g) Describe indentation in Python. 2M
Ans Indentation refers to the spaces at the beginning of a code line. Python indentation 2M
refers to adding white space before a statement to a particular block of code. In another
word, all the statements with the same space to the right, belong to the same code
block.
Page No: 2 | 21