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 329
Haliyal - 301
Page 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: Engineering IA Test No:
Semester / Division: ah
Pymon
Name of Faculty: Prof. Ravindra Aeea cn prop0neges+ S2
T. Patil
Q.No. Solution and Scheme Marks
1.a. SJw
-
H S
A Com puns Hlw am. tun
Eoplainakon 3
of moams. Eeslain Ea ln
&ath.
b. B
b u i1dia
Buld} as loeo 10
Cond5n\nal lne, epeavE d
oe,
o1r, Seq utnjas
P
Sm.
it a b
Priv A S big ")
ese
at"b big")
Ealn wim 10m
c)en dPiat
b ty
b fadatiopu+ "¬oh hotun"))
inpur( "Enh
Y:
Hoa
1 0m
9f: h*
i 9r)
Ecept " Pleas E umeN)C Ua lne "))
Pri
.NO. Solution and Scheme
C a 1o Niar
"
(" Bejot Sur ac
. ba/J 7.(a,))
r
Sm
t a
b a
PAPT B3
3.a uit w Srm value. 1m
huntnbn 10m
wi1 mo hn an ValiR
a u
b Condi ron neusn
Explaho mta wimiza m p
Cendinun
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 ").