You are on page 1of 2

GOVERNMENT ENGINEERING COLLEGE

YARAMARUS CAMP, Raichur-584135

DEPARTMENT OF COMPUTER SCIENCE AND ENGINEERING


Internal Assessment Test – I
---------------------------------------------------------------------------------------------------------------------------

USN:

Course Name : Python application programming (18CS752) Date: 02/11/2023


Course Code :C705 Time: 10:00-11:30
AM
Course Year : 2023-2024 Max. Marks:50
Semester / Branch: 7th, Subject Faculty Name: Azeemoddin

COURSE OUTCOMES
Students must be able to
Course
Course Outcomes Blooms Level
Code
C705.1 L1,L2
Explain the object-oriented concepts and JAVA

Answer any Two full questions.


Q No Questions Marks CO’s PO’s RBT

a What is a program? Explain building blocks of program. 07 CO1 PO1,PO2,PO3 L1,L2

Explain the rules of precedence in python. Predict the

output for the following expression and justify your


b 10 CO1 PO1,PO2,PO3 L1,L2
1 answers (i) 10//3 (ii) 1-8**2/2*4 (iii) 5*1**3

(iv) 5%1000 (v) not 5!=4 and 2%3==0

Write a python program to prompt the user for hours and


c rate per hour for pay computation. Note: Give the 08 CO1 PO1,PO2,PO3 L1,L2
employee 1.5 times the hourly rate for hours above 40
hours.
With necessary example and flowchart explain condition
a execution, alternate execution, chained condition and 12 CO1 PO1,PO2,PO3 L1,L2
nested condition.

2 What are user defined functions? How can we pass


b parameters in user defined functions? Explain with 07 C02 PO1,PO2,PO3 L1,L2
example
Develop a user defined function named “avg_threenum”
c that takes three integer numbers and returns their 06 CO1 PO1,PO2,PO3 L1,L2
average. Take input from the user separately and display
the result.
3. With example explain indefinite loop. Explain the usage
a. 10 CO2 PO1,PO2,PO3 L1,L2
of break and continue statements..

b With example explain for loop. Develop a python 10 CO1 PO1,PO2,PO3 L1,L2
program to find largest element in list [21,23,25,0,45,1]
. and display the largest value.

c. Write a short note on compiler and interpreter 05 CO1 PO1,PO2,PO3 L1,L2

Signature of the Course Teacher: Signature of the Reviewer:

Signature of NBA coordinator: Signature of HOD:

You might also like