Practicalfile Format CS Xii
Practicalfile Format CS Xii
Practicalfile Format CS Xii
NAME:-
CLASS:- XII
has prepared the Practical file as per the prescribed Practical syllabus.
COMPUTER SCIENCE(083)
SIGNATURE OF TEACHER
INDEX
S.NO. PROGRAM SIGN.
01. Write a program that accepts a string as a parameter to a function
and counts the number of upper case letters and lower case letters.
02. Write a Python program to find the factorial of a number using default
parameters. (Include proper error condition for a negative number as
input.)
this dictionary as an argument and displays the name of the player with the highest score
INPUT
Q11) Create a binary file GIFT having GiftID, gift name, remarks and price and display details of those gifts, which has remarks as
“ÖN DISCOUNT”.
INPUT
OUTPUT:
Q12) Write a Python script to read a VEHICLE.CSV file containing Vehicle_Id, VehicleName, ManufatureYear
having a comma as a delimiter. Display those records where the voter age is more than 65. Display any number
INPUT:
OUTPUT:
Q13) Create a CSV file by entering user-id and password, read and search for the password for the given
user-id.
INPUT ::
OUTPUT:
Q14) Write a program to count the number of records present in “customers.csv”
file
INPUT:
OUTPUT:
Q15) Write a Python menu-based program to implement a stack using the list.
INPUT:
Q16) Write a random number generator that generates random numbers between
INPUT:
OUTPUT:
Write a menu-driven Python program to implement a stack storing employee
Q17)
number, name and basic using a list data-structure.
Q18) MySQL Commands based on Table: SchoolBus
Q19) MySQL Commands based on two tables EMPLOYEE and DEPT with proper
primary key & foreign key.
Q20) MySQL Commands based on two tables PRODUCT and CLIENT, with proper
primary key & foreign key
Q21) MySQL Commands based on Table: Tech_Courses
Q22) Integrate MySQL with Python by importing a suitable module and then create
the table product with the following details
productno,productname,price,purchasedate,quantity , add five records in the table,
and then retrieve all the records in proper format in Python.
INPUT:
OUTPUT:
Q23) Perform a delete query on the table products to delete the product having price
greater than 100 using Python MySQL connectivity
Q24) Write a program to connect with database employee and table emp with
following fields empno,empname ,dept,salary and store record of an employee and
then display it based on employee number entered by the user
Q25) Write a program to connect with database employee and then update the department and salary (as
per user requirements) after accepting employee number from the user.