[go: up one dir, main page]

0% found this document useful (0 votes)
27 views1 page

Nov Dec 2023 Watermark Compressed

This document outlines the structure and content of the First Semester B.E./B.Tech Degree Examination for December 2023, focusing on Introduction to Python Programming. It includes instructions for answering questions from various modules, covering topics such as string operations, functions, lists, dictionaries, file handling, and object-oriented programming concepts. The exam consists of multiple questions, each with specific marks and learning outcomes.

Uploaded by

Kangana W. M
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)
27 views1 page

Nov Dec 2023 Watermark Compressed

This document outlines the structure and content of the First Semester B.E./B.Tech Degree Examination for December 2023, focusing on Introduction to Python Programming. It includes instructions for answering questions from various modules, covering topics such as string operations, functions, lists, dictionaries, file handling, and object-oriented programming concepts. The exam consists of multiple questions, each with specific marks and learning outcomes.

Uploaded by

Kangana W. M
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/ 1

~0:)..

5'
~- ., ,.~
... ~
' ' ~~~~--,,#~·-., .
~ f
""'· ......
....... '~-
\ ~-- '

USN r--1r-1-r--1-r--1-,-I--.-1---1--.-1---,.1---1-1
: L , ~,~w~ ·B/BPLCKB105
F trst semester B.E./B.T ech. Degree Examiaa
• .ti~ J
..~ JDec. 2023
Introdu ction to Python Ptosi1a mming
• I#
Time: 3 hrs. ~• Max. Marks: 100
Note: 1. Answer any FIVE full questions, choosing ~E full question from each module.
2. M .• Marks , L.• Bloom's level , C·. Course outcomes. ,_ ~
V

Module-k l) ,A'<. 'Y


M L C
Q.1 a. Explain string concatenation and ~ -g replication operation ~ith
an 06 Ll COl
example. ~ ~~
b. Illustrate the use of break and coQ.tfuu~with example. ...l)VT 08 L2 COl
c. Write_ a Python program to ~h.el/ck,...whether the given number· is positive,
06 Ll COl
negative or zero. ..., ;
(i: OR ~
Q.2 a. What are functions inf4!~H&n and how they ar~d~fined and used to 06 Ll CO2
modularize code? A > '9" • ,.., ~
b. Explain the local aµ1l global scope with local an-d global variables. 08 Ll CO2
c. Write a program~g enerate Fabonacci ~seq~6e of length (N). Read N 06 Ll CO2
from console,,~ ,
L",V Module~2
Q.3 a. What are~~--~lisjs in Python and ho~~ey used to store and manipulate 06 L2 CO3
collecfif>n of data. .i<" ,e{~
b. Explain any four built-in methods available for wor~ingmith lists. 08 Ll CO3
c. Read N numbers from console and create a list. D~e~elgp"a program to p~ 06 L2 CO2
the mean of numbers. ~,~ , ,, ,
~
~>' OR t:,....& ,I+
y

Q.4 a. Differentiate between l~sts and dictionary. £'-.'-.J .. - 06 L2 CO2


b. Explain with example.,keep( ), values() anc}'.':items() methods_~'<-, 08 L2 CO2
c. Write a program.@ ~a
elements into ~:li~tioiiary using while loO'P. 06 L2 CO2
~ Modu1e)-.,,,,3 ;
Q.5 a. Explain any fi~e built-in methods'lavailable for wor~"'-with string along 10 L2 CO3
I ~ '} ~
with examol'e1 ~ .J
b. Read a<mylfi-digit number (as ch'ars) from conso1. Develop a program to 10 L2 CO3
print the frequency of ea~h:clig,if with suitable,e_xample.
.,
('-..
-.- l, OR ~ \\r-' ..

Q.6 a. , "'E~pl'ain the file reading\~d writing process~ith suitable example. 10 L2 CO3
b. 'l:Uustrate the role ot:sh~lve module in working with files. 10 L2 CO3
A A y Modllle~-4
Q.7 a. Explain the fµncftons of shutil mo(hile,with examples. 10 L2 CO3
b. What is me-any by compressinj tiles? Explain reading, extracting and 10 L2 CO3
creating ZIP files with code _snippet.
\fY OR
,I!

Q.8 a. Explain the buttons in tlfe~,_~6ug control window. 10 Ll CO3


.. ,, .
b. Write a note on raismg ~xceptlon. 10 L2 CO3
~ Module-5
Q.9 a. What do you mean S'y 'class, object and attributes? Explain with example. 08 L3 CO4
,
b. Illustrate the concept of inheritance and class diagrams with example.
OR
12 L2 CO4

Q.10 a. List and /


explain any four object oriented characteristics possessed by 08
i
L2 CO4
Python.
b. Briefl~ discuss the importance of __init__() and __str__() methods 12 L3 CO4
along with example.
/ •••••
.• -

You might also like