Practical File Questions List (Xi) i.p.
Practical File Questions List (Xi) i.p.
PROGRAM : 2
PROGRAM : 3
PROGRAM : 4
# Program to calculate profit percentage from the sales
of goods that you made.
1
PROGRAM : 5
A,B,C,D = 9.2,2.0,4,21
print(A/4)
print(A//4)
print(B**C)
print(D//B)
print(A%C)
PROGRAM: 6
ch=5 #integer
i=2 #integer
fl=4 #integer
db=5.0 #floating point number
2
fd=36.0 #floating point number
A=(ch+i)/db #expression 1
B=fd/db*ch/2 #expression 2
print(A)
print(B)
PROGRAM : 7
a=5
b = -3
c = 25
d = -10
a+b+c>a+c-b*d
3
PROGRAM : 8
a = 3 + 5/8
b = int(3 + 5/8)
c = 3 + float(5/8)
d = 3 + float(5)/8
e = 3 + 5.0/8
f = int(3 + 5/8.0)
print(a,b,c,d,e,f)
PROGRAM : 9
4
PROGRAM :10
# Program to display given code.
PV = 100000
n = 12
FV = PV * (1+r)**n
PROGRAM :11
# make flowchart take two number and show it is
divisible by second number or not?
5
# hint for program 11
Start
Remainder = f%s
STOP 6
PROGRAM :12
PROGRAM :13
PROGRAM :14
# Program that inputs three no. & calculate two sums .
PROGRAM :15
# Program to calculate the amount payable after sales
discount, which 10% up to the sales amount of 20000
and 17.5% on amount above that. There is sales tax
payable (in range 5-12%)at the discount price.
PROGRAM :16
7
# Program to print invoice for the sale of item “Amul
Butter 100 gms”, quantity 4 with price of one item as 45
rupees. Add tax @ 5%.
PROGRAM :17
# Program to display a menu for calculating simple
interest or compound interest . Calculate compound
nt
interest use: A = P(1 + r/n ) .
PROGRAM :18
# Program that reads two numbers and an arithmetic
operator and displays the computed results.
PROGRAM :19
# Program that reads three numbers and prints them in
ascending order.
PROGRAM :20
# Program to calculate total selling price after levying
the gst . Do calculate central gst and state gst .
8
cgst:Central govt gst;sgst:Sate govt.gst
SP:Selling price;item code
PROGRAM :21
num = 5
for a in range(1,11):
print(num,'*',a,'=',num*a)
PROGRAM :22
PROGRAM :23
9
PROGRAM :24
PROGRAM :25
PROGRAM :26
10
# Program that’s reads a string and checks whether it is
a palindrome string or not.
PROGRAM :28
PROGRAM :29
PROGRAM :30
MySQL Queries
HOSPITAL
11
1. Write a command to create a HOSPITAL table.
12
9. Display the department wise total charges whose
maximum charges more than equal to 300.
13
17. SELECT AVG(CHARGES) FROM HOSPITAL WHERE
DATEOFADM<'2008-02-12';
STUDENT
14
i. SELECT COUNT(DISTINCT DEPARTMENT) FROM STUDENT;
Teacher
15
c) To list names of all teachers along with their date of
joining in ascending order.
16
a) To show all information about the swimming coaches in
the club.
b) To list names of all coaches with their date of
appointment(dateofapp)in descending order.
c) To display a report showing coach name,pay,age and
bonus(15% of pay) for all the coaches;
17
(iii) SELECT AVG(PAY)FROM CLUB WHERE SPORT =
'KARATE';
Graduate
18
(ii) SELECT SUM(STIPEND) FROM GRADUATE
WHERE DIVI=2
sports
19
e) Add a new column named ‘Marks’.
f) Assign a value 200 for Marks for all those who are getting
grade B or grade ‘A’ in both Game1 and Game2.
g) Arrange the whole table in alphabetical order of Name.
lab
20