Practical File Index Class 12 Python 2024-25
Practical File Index Class 12 Python 2024-25
Practical File Index Class 12 Python 2024-25
N
1.
INDEX QUESTION
WAP to enter a string and check whether the string is palindrome or not.
2. WAP to enter a sentence (string) and display the smallest word.
3. WAP to enter a sentence (string) and display the longest word.
4. WAP to enter a sentence (string) and convert it into title case.
For ex: If user inputs : python is fun
Then : Outputs should be : Python Is Fun
5. WAP to enter n integer elements in a Tuple and check whether all the
elements are in ascending order or not.
6. WAP to enter n integer elements in a Tuple and display the second highest
element.
7. WAP to create a nested tuple of n elements where each element of nested
tuple contains RN, NAME AND MARKS.
For example T=((1,"RAHUL",99.9),(2,"ROHIT",100))
RN of integer type
RN of integer type
43
. Write a menu based program to perform the following operation on Customer Details
using Interfacing Python with MySQL
WORKER
W-ID FIRSTNAME LASTNAME ADDRESS CITY
102 Sam Tones 33 Elm St. Paris
105 Sarah Ackerman 440 U.S New York
144 Manila Sen Friends New York
colony
210 George Smith First Street Howard
DESIG
W-IS SALARY BENEFITS DESIGNATION
102 75000 15000 MANAGER
105 85000 25000 DIRECTOR
144 70000 15000 CLERK
210 50000 12000 CLERK
EMPLOYEES table.
(ii) To display the Maximum salary of Clerks from the table desig, where Total
Salary is calculated as Salary + Benefits.
60 Write the SQL commands for (i) to (v) on the basis of tables following tables
.
(Create Tables using proper keys and insert the rows as specified)
Table: BOOKS
Book_I BookNam AuthorNa Publishe Price Qty
D e me r
L01 Maths Raman ABC 70 20
L02 Science Agarkar DEF 90 15
L03 Social Suresh XYZ 85 30
L04 Computer Sumita ABC 75 7
L05 Telugu Nannayya DEF 60 25
Table: ISSUES
Book_ID Qty_Issued
L02 13
L04 5
L05 21
(i) To show Book name, Author name and Price of books of ABC publisher.
(ii) To display the details of the books in descending order of their price.
(iii) To display the Book Id, Book name, Publisher, Price, Qty, Qty_Issued
Table: FURNITURE
Table: ARRIVAL
NO ITEM NAME TYPE PRICE DISCOUN
. T
11 Wood comfort Double Bed 25000 25
12 Old Fox Sofa 17000 20
13 Micky Baby Cot 7500 15
(i) To show all information about the Baby cots from the FURNITURE table.
(ii) To display the details of the furniture by ITEM NAME in ascending order.
(Create Tables using proper keys and insert the rows as specified)
GAMES
GCode GameNam Num PrizeMone
e y
101 CaromBoa 2 5000
rd
102 Badminton 2 12000
103 TableTenni 4 8000
s
104 Chess 2 9000
105 LawnTenni 4 25000
s
PLAYER
PCode Name GCode
1 Arjun 101
2 Ravi 105
3 Jignesh 101
4 Nihir 103
5 Sohil 104
QUALIFICATION
QCode Qualification TCode
1 MA 101
2 BBA 105
3 MCA 101
4 B.ED 103
5 MA 104