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

Python 2024 BL QP

The document outlines the examination details for the Scripting Language (Python) course for the Third Semester of the Diploma in Engineering program. It includes instructions for the exam, such as the number of questions to attempt from each unit and the marking scheme. Additionally, it lists various topics and programming tasks related to Python, including data types, loops, modules, exceptions, and GUI components.
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
21 views

Python 2024 BL QP

The document outlines the examination details for the Scripting Language (Python) course for the Third Semester of the Diploma in Engineering program. It includes instructions for the exam, such as the number of questions to attempt from each unit and the marking scheme. Additionally, it lists various topics and programming tasks related to Python, including data types, loops, modules, exceptions, and GUI components.
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 3

RollNo.

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)

(b) Definc module. Explain import and from module


with suitable example. 7
Module yfta f Import 1| from

(c) Define exception. How to handle exception using


try, catch and finally ? Explain with suitable
example. 7
Exception fft fifyi Try, Catch 1e
finally exception handle fi GII

UNIT-V

(so-v)
S. (a) Define GUI. Write advantages and basic
components of GUI. 7
GUI rnfta foI GUI rH eT afr

(b) Explain tkMessageBox module with example. 7


tkMessageBox module GCIEYU a

(c) Explain pack( ), frame(0 and grid( ) layout


anagement method with example. 7
Pack( ), frame( ) l grid( ) layout management

2022372(022)

You might also like