5 6336699937115340941

You might also like

Download as pdf or txt
Download as pdf or txt
You are on page 1of 5

K.V.

Nepanagar
CLASS XI-IP
Practical List
1. Write a python program to find no is even or odd
2. To find final amount for given cost-qty-discount.
3. Write a python program that calculates and prints the value according to the given formula:
Q = Square root of [(2 * C * D)/H]
4. Write a python program to check whether a number is divisible by 5 and 11 or not
5. To calculate cost of fencing a rectangular park where L=70 and B=20, rate per feet = Rs.10/-
[P=2(L+B)]
6. To calculate cost of cultivating a rectangular field with dimensions L=7000 and B=2000, rate per
Sq/feet = Rs.10/- [A = L*B]
7. To calculate interest (Simple and Compound) when principal, rate and time are given
[S.I. = (PRT)/100, C.I. = P(1+R/100)T-P]
8. Write a python program to Check given character is vowel or not.
9. Write a python program to find largest integer among given three integers
10. Write a python program to for library charges a fine for books returned late. Following are the
fines:

First five days: 40 paisa per day.

Six to ten day: 65 paisa per day.

Above ten days: 80 paisa per day

11. Write a python program to for Electric Bill charges according to charges. Following are the fines :

First 100 Units: 1 Rs per day.

Next200 Units: 2 Rs per day.

Above300 Units: 4 Rs per day.

12. To find the sum of squares of the first 100 natural numbers.
13. Write a python program to find the sum of all even numbers from 0 to 10
14. Write a python program to print the factorial of a given number
15. Write a python program to print the first 10 numbers Fibonacci series
16. Write a python program to find MN without using library function
17. To find whether a string is a palindrome or not.
18. Write a python program to check whether a given number is palindrome or not
19. Write a python program to convert a 4 digit number into words
Eg. 2347 --> Two Thousand Three hundred and forty seven
20. Write a python program to read a number and print a right triangle using "*"

Eg :
Input: 5

----------Output---------

*
**
***
****
*****
21. Write a python program to convert the first letter of a string to upper case.
22. Write a python program to remove all white spaces from the string.
23. Write a python program to count number of vowels present in a string
24. Write a python program to convert all upper case vowels into lowercase and vice versa.
25. Write a python program to count number of words in a given string.
26. Write a program in python to check correct password according to given rules

Its length should be between 8 to 14 characters


Password should contain at least one upper case, one lower case and one digit
27. To calculate profit-loss for given Cost and Sell Price
28. To calculate EMI for Amount, Period and Interest.
29. To calculate GST Tax given item type, price, quantity
[GST= it given item is an food item then 5% else 18%]
30. To find the largest and smallest numbers in a list.
31. To find the third largest number in a list.
32. To compute the greatest common divisor(HCF) and the least common multiple(LCM) of two
integers.
33. Write a python program that takes in a list and removes elements of the list that are the same.
For example [1,1,2,2] should return [1,2].
34. Write a python program to find frequency of a given element in a list of characters.
35. Write a python program to find sum of largest two numbers in the given list
36. Write a python program that takes any two lists L and M of the same size and adds their
corresponding elements in a new list N.
Eg. L=[3,1,4] and M=[1,5,9] then N should be [4,6,13]
37. Write a python program to make a list whose elements are intersection of the given two lists.
Eg. L = [2,4,6,8,5] and M = [4,1,9,8,5,10] then N should be [4,8,5]
38. Write a python program to create a dictionary with the opposite mapping (exchange keys to
values)
39. To create an array of 1D containing numeric values 0 to 9
40. To create a numPy array with all values as True
41. To extract all even numbers from numPy array
42. To replace all odd numbers in numPyarr with -1
43. To copy the content of an array A to another array B, replacing all odd numbers of array A with -
1 without altering the original array A
44. To copy content of a 1D array into a 2D array with 2 rows
45. To perform following basic arithmetic operations on 1D and 2D array
i. Addition
ii. Substraction
iii. Multiplication
iv. Division
v. Min
vi. max

SQL QUERIES

1. Answer the question based on the table VOTER given below:

(i) Write a command to create above table.


(ii) Write the command to delete all the rows of particular voter from the table voter
where voter ID between 10 and 20.
(iii) Delete the table physically.
(iv) Write a command to insert a new row in the table
(v) Write a command to add a new column state string(30) in the table.
(vi) Write a command to find details of voters having 50>=age>=18.
(vii) Write a command to find details of all voters having phone number null.

2. Consider a database LOANS with the following table:


i. Display the AccNo, Cust_Name, and Loan_Amount of all the loans.
ii. Display the AccNo and Loan_Amount of all the loans started before 01-04-2009.
iii. Display the details of all the loans with less than 40 instalments.
iv. Display the details of all the loans whose rate of interest is NULL.
v. Display the details of all the loans whose rate of interest is not NULL.
vi. Display the amounts of various loans from the table Loan_Accounts. A loan amount
should appear only once.
vii. Display the details of all the loans started after 31-12-2008 for which the number of
instalments are more than 36.
viii. Display the Cust_Name and Loan_Amount for all the loans which do not have
number
of instalments 36.
ix. Display the details of all the loans which started in the year 2009.
x. Display the details of all the loans whose Loan_Amount is in the range 400000 to
500000.
xi. Display the Cust_Name and Loan_Amount for all the loans for which the number of
instalments are 24, 36, or 48. (Using IN operator)
xii. Display the AccNo, Cust_Name, and Loan_Amount for all the loans for which the
Cust_Name ends with 'Sharma'.
xiii. Display the AccNo, Cust_Name, and Loan_Amount for all the loans for which the
Cust_Name does not contain 'P'.
xiv. Display the AccNo, Cust_Name, and Loan_Amount for all the loans for which the
Cust_Name contains 'a' as the second last character.
xv. Display the details of all the loans in the descending order of their Start_Date.
xvi. Display the details of all the loans in the ascending order of their Loan_Amount and
within Loan_Amount in the descending order of their Start_Date.
xvii. Increase the interest rate by 0.5% for all the loans for which the loan amount is more
than 400000.
xviii. Delete the records of all the loans whose start date is before 2007.
xix. Add another column Category of type CHAR(1) in the Loan table.
xx. Delete entire table Loan_Accounts.

You might also like