Python 2024 BL QP
Python 2024 BL QP
2022372(022)
Dip. in Engg. (Third Semester)
EXAMINATION,April-May, 2024
(Scheme: NITTTR)
(Branch : CSE)
SCRIPTING LANGUAGE (PYTHON)
Time : Three Hours ] [Maximum Marks :70
[Minimum Pass Marks : 25
Note : Attempt any wo questions from each Unit. Every
question has 7 marks. In case of any doubt or
dispute the English version question should be
treated as final.
P.T.O.
2032371(022) 2022172402)
(21
UNIT (c) Diferentinte between Break and Continue
statements.
(rn-1) t qe
Break t Continue staternents
I. () Bxplain working mode of Python with sultable
CxAmple. UNIT-II
(Kerf-n)
3. (a) Develop a proyrarn in Pynthon to wrt the element
(b) Explain varlable, data type and keywords in7 of iwo differcnt lists and sture ortedclernents in
Python programming. third list. 7
ygetMunfn variable, data type 41 aan-KAN lists 4 3A elements sort
keywords ) 4S1GrI ttfos reg orted clernents rR list 4 store
Or GÀ+ fay Python stury frfery i
(ra (b) Diferentiate bectween list and Tuple in Python. 7
(c) Explain different input and output methods yryt List Tuple T4 KeR 2
available in Python. Atforyi
(c) Define Dictionary. Explain how to ceate, access,
update and delete elements to a dictionary.
UNIT-II
Dictionary trutfgT ifrsi Dictionary À
create p4, elements t access, update I
(roTf-11) delete f r GTT, H4STZYI
2. (u) Write a program to find the Armstrong number. 7 UNIT-IV
(ror-1v)
(b) Explain while loop and for loop with syntax and 4. (a) Write your own function 'Si' to find the simple
example. interest.
While loop I for loop syntax (e1 GC6eM
P. T.O.
(4] 2022372(022)
UNIT-V
(so-v)
S. (a) Define GUI. Write advantages and basic
components of GUI. 7
GUI rnfta foI GUI rH eT afr
2022372(022)