In this article, I will provide Class 11 computer science half yearly exam practical question paper. So let us begin!

Topics Covered

## Class 11 computer science half yearly exam practical question paper

Schools are conducting half yearly exams as a part of mid term assessment. Schools preferred the assessment structure offered by CBSE board and according to this Computer Science class 11 will be assessed as 70 (theory) + 30 (practical).

We have already provided 2 half yearly exam sample papers for theory which can be accessed by following link:

So now let us begin Class 11 computer science half yearly exam practical question paper.

## Paper pattern

I have kept it very simple as it is totally depend on the school and the subject teacher. I have made the following structure for Class 11 computer science half yearly exam practical question paper. Observe this:

So let us begin with Q1.

## Part 1 Python Program

So let us begin with part 1 python program. This question may vary according to you syllabus portion. I have covered topics up to flow of control if-elif-else.

### Question

A company is computing salary based on following details. Accept Employee ID, Employee Name, Basic Salary and then compute the allowance as given below:

Write a program to compute the net amount to be paid to an employee in the following format:

### Solution

The solution for the question is as follows:

``````# A program of Salary calculaion
# Developed by www.tutorialaicsip.com

#input
eid=int(input("Enter employee id:"))
ename=input("Enter Name:")
basic=float(input("Enter salary:"))
mon=input("Enter Salary Month:")

#Process of computation
if basic<=5000:
hra=float(basic*0.3)
da=float(basic*0.5)
elif basic>5000 and basic<10000:
hra=float(basic*0.25)
da=float(basic*0.45)
elif basic>10000 and basic<20000:
hra=float(basic*0.20)
da=float(basic*0.40)
elif basic>20000:
hra=float(basic*0.10)
da=float(basic*0.30)
else:
print("Invalid Salary Amount")

#Computing net salary
ns=basic+hra+da

#Output
print("="*60)
print("Employee ID  \t: ",eid,"\t\t Month:",mon)
print("Employee Name\t: ",ename)
print("="*60)
print("Basic            \t:%5.2f"%basic)
print("HRA              \t:",hra)
print("DA               \t:",da)
print("="*60)
print("Net Salary Amount\t:",ns)
print("="*60)
``````

### Output

The output is as follows:

Watch this video for more understanding: