Pap Ia1 Scheme
Pap Ia1 Scheme
581 329
Doc. No.: VDIT/ACAD/AR/05Sa Rev.No.:02
Page I
Rev. Dt: 25/03/2021
IA TEST QUESTION PAPER
AY: 2020-21
Department: CSE IA Test No:1
Semester/ Division: 7th Sem
|Open Electivel Date: 12-11-2021
Subject with Sub. Code: PYTHON APPLICATION PROGRAMMING -18CS752
Time: 10.00 am to 11.15am
Faculty Name: Ravindra T. Patil Max.Marks:50
Note: Answer any one full question from each part; each full question carries 25 marks.
PART-A
Ia Explain Computer hardware architecture. 10
bExplain the building blocks of programs. 10
cWrite a python program to find the biggest of two numbers.
5
OR
2a Explain following Built-in functions with an
example. 10
a max b)min c)len d)print()
b Write a program to prompt the user for hours and rate per hour to compute gross pay.
10
Use try and except to handle errors.
c Write a python program to swap the content of two variable using third variable. 5
PART-B
3a Explain Fruitful functions and void functions with example programs 10
b Explain following conditional statements with an example. 10
i) Conditional Execution ii) Alternative execution ii) Chained conditionals
program to check given number is even or odd.
cWrite a python
OR
2 CO I
3 3 2 3
3 Level 2 2
Karnatak Law Society°s
VIshwanathrao Deshpande Institute of Technology,
Doc. No.: VDIT/ACAD/AR/0Sb
Page 1
Haliyal- 581 342
Rev.No.:01
Rev. Dt: 25/03/2021
Solution and Scheme for award of marks
AY: 2020-21
Department: Computer Science and
Subject with Sub. Code: Pymon AeeaEngineering IA Test No:
Semester / Division: 7h
Nameof Faculty: Prof. Ravindra T. Patil 0o prop1a mnegts+S2
Q.No. Solution and Scheme Marks|
1.a. SJw
PO
- 00
S
A Com pues Hlw a a . teud
eoplanakon
o u a m , ¬e lain Ealn
b Buuldiay loeo Condnnal lne, Tepeae d 0
uenias foe ,
IP olf, Seq
bao m.
A big ")
Pri
ense
ak"b big")
c)en d dPiat
b. iay
h: fada ioru( " EskN houn "))
inpur"En
Y: Hoa (
L0m
9f: h*
C a 1o Niar
"
b a
PAPT B3
huntnbn 10m
wi1 mo hn an ValiR
a u
Stt
wim Exay.
Erplain f- 0L
Cenasn
Sy not
3
tm2
No.
Solution and Scheme Marks
3.6 ) Chenintd Condosal* Some bmes hu
tha &
nee
SH Priot ("Eaa")
Sm.
prn ("odt")
H.a.Det Cey uso
C a hunv ).
priaprin y res ()
ne HiHelto")
k e plainas ot Caun em
9 6 rm
$)rnanic eToTS 10
V) OTddi of 0poako) Hm
PEM DAS
n2 20
Da>ng
Pria n lorg)
else
Pri'at ( ne i s ").