0% found this document useful (0 votes)
10 views

Python 2022 Qp

The document appears to be an examination paper with various programming questions related to Python, including topics like operators, input/output methods, decision-making statements, user-defined functions, and GUI programming with Tkinter. It specifies that all questions are compulsory and provides a structure for answering them with marks allocated. Additionally, it includes instructions for handling disputes regarding the interpretation of questions.
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)
10 views

Python 2022 Qp

The document appears to be an examination paper with various programming questions related to Python, including topics like operators, input/output methods, decision-making statements, user-defined functions, and GUI programming with Tkinter. It specifies that all questions are compulsory and provides a structure for answering them with marks allocated. Additionally, it includes instructions for handling disputes regarding the interpretation of questions.
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/ 4

Roll No.

?:02237a(t0a?l

f Mastimum Marks : 7A

fMininrum Fass farkr : 25

Note: All questions are compulsory unless tnealtioned

otherwise. Marks are indicated against questions'


ln case of any doubt or dispute, English version
question should be treated as final'

+rdi qri Eil o{{T orfl+qd t iilq tr6 l& dalen


lrds q fbqr .rTsI ti r c{ql d eio v-rd sqel
alfu-o d r fM rfi eon :i r{tr qr filqTE d ft{rfr

d oifs.nqi d c{'T 6} eiRq qmr qri'int

P. T. O.
lzl 2022374s221 l3l 202237210221

l. Attempt any ,lra of the following : 2 x 1 = 14 (b) Exptain the use of break and eontinue statcment

fMatud d * tud *ol rq dfuq ' with example.

(a) List different types operators available


in python" 'Break'Yd 'continue' 6 gquh of gcrdr"r
Explain relational and logical opera{ors with
example,
wRo fiqflE\t
rythonii ft;-c'i u-o-R d ope.uto.uwt{ ki qri (c) Wrlte a program tllat ask user to entry a number,
t ? Relational 3tt logical op€rator 6) sffETsl store the numtrer in a variable called number am

sBf, s{sE\ I
print the factorial ofthat number.
(b) Explain dilferent input and output rnethods
available in PYhon. tm clflr{ fafu {it W1 d Er afm -*t'}, s*
hthoni scfu fu-t qd srA frh-{ trcge W number dflfl 4] variable i'ffitm of m'n" r*l
sErdSe methods of lTq{Ec t 'i
number iFI factorial fite tFi I
(c) Write a program to print sum of 1wo numbers
using script mode.
J. Attempt any flro of the following : 2 x' 7 '- 14
d gidi d d{ e} fife ovi d frs script mode i I
I

eYnq ftlell {tqfhfbn *} fi f&-d d qi Fs dtuc


'

Attempt any rwo of ihe foUowing : 2 x 7 = 14 (a) t)xplain List data type hr Py'tiron. Degcribe thr:

ffidtud it ftF{t doi t'rr dfrc, rnethod of creating and updating the list with

(a) What are decision making statements ? Explain suitable examPle.


different'types of decision making statements
with examPle. Python i List data type 6) TrIfSr{g I sq$qfi
.
Decision Making Statements Tqr Eti t ? frfi-q Bilrrurit g! list 01 q-qTi qd update oti a"l
gfR d Decision making statement Ot gSffl"f
q{flIct cftq qil flfq dft\l
sRn
P. T. O.
r
I

t{l 20223?2(0221
l5l 2A?2r7210?21

(b) Write short notes on any ,v'r) of the following ? Dcscribe the
(b) Whut is user-defined function
built in functions available in python : with
method of declaring and calling a function
(i) cmp
suitable examPle'
(ii) range
User-defined function
qqf t ? gcgffi B-{fdcuf
(iii) round

frqftfufr pyhon * built in functions q{ dfe\'f, tt gC fuS n'nction ol declare {i[ cax 6-gi d
fuqftrfi ftfuc, shtqi ot qft dfucl
.:
(i) cmp
(c) Write a program to handle exception
'Division by
(ii) range
Zero' .

(iii) d
round
tfi c\'lm fafuc d 'Division by Zero'
(c) Write a program to print the length of entered
string using Tuple. handle 6t I

tm furq ftfuq d, rype Qil strqdT t Rc.rc


5. AttemPt any ,wo of the following
: 2x7 =14

Mdfu( n d fr'--€ s) 6t Ed dfrq'


string tDT t,cngrh filc tDt I

4. Attempt any nvo of the following : 2x7=14 lable' buttotr


@) What is Tkinter widget ? Explaiir
fffitun { t ft€ * mt r-o dfrq ,
and check box widgets with
example'
(a) What is module in Plthon ? Describe the ways of
it{I t ? f'U"f' 6tr66n dI
. Tkinter widget
incorporating the module into a progrant with
exarnple. checkbox widget oi gsrdiT vtro s{sr{C f
Pl.thon t Module iftll t ? ES Python program
(b) Write short notes on the following
:

d Modul" Hqrfr€ ffii d irffi or suf{ (r) Need of GUI


Bqiilq skd dfucr Tkinter
(ii) List of graphics library used in

P' T' O'


16l zo2ztt2(ozz)
ft'{fufus q"i Tim,fr fffiifil&c,
(i) GUI Efi

(ii) Tkinrer { Aqqtl 6IE afe graphics library


01ftriz
(c) Write a GUI program to take number
in text box
and paint factorial ofthat nurnber in
label.

tsr furq iafuC q) ld textbox t yi5 number


n-6nr 6t d( number! factorial Iabel
{ fiJe of I

2022372(022) 73o

You might also like