CLASS XII Practical File

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

CLASS XII

COMPUTER SCIENCE (083)


SESSION (2023-2024)
PRACTICAL FILE QUESTIONS

Q1. Write a python program to print factorial of a number.

Q2. Write a python program to print Fibonacci series upto n terms.

Q3. Program to generate random number 1-6, simulating a dice.

Q4. Creating a menu driven program to perform arithmetic operations (+, -, *, /)


Q5. Write a python program to find all prime numbers between 100 to 500.

Q6. Program to read and display file content line by line with eachword
separated by “ #”

Q7. Write a program to input a character and to print whether a given character is
an alphabet, digit or any other character

Q8. Program to read the content of file and display the total numberof
consonants, uppercase, vowels and lower case characters.

Q9. Program to read the content of file line by line and write it toanother file except
for the lines contains “a” letter in it.

Q10. Write a program to count the number of times the occurrence of 'is' word in a
text file.

Q11. Write a program to remove all duplicate lines in a text file.

Q12. Program to create binary file to store Rollno and Name, Searchany Rollno and
display name if Rollno found otherwise “Rollno not found”

Q13. Program to create binary file to store Rollno, Name and Marksand update
marks of entered Rollno.

Q14. Create a CSV file by entering user-id and password, read and search the
password for given user- id.

Q15. Write a program to read data from a csv file and write data to a csv file.
Q17.

i) Create the above table in MySQL


ii) Insert the above given records into it.

Write SQL Queries for the following:-

iii) To display the names of all Doctors from Mumbai


iv) To display the RecID, Doctorname, DoctorAddress, RecName,
RecAddress for every Patient.
v) To display Patient details in ascending order of RecName
vi) To display number of Patient from each city
vii) To display records of those patients whose DoctorId as well as
PatientID Starts with ‘’N’’
Q18.

i) Create the above table in MySQL


ii) Insert the above given records into it.

Write SQL Queries for the following:-

iii) To display CNO, CNAME, TRAVELDATE from the table TRAVEL in


descending order of CNO.
iv) To display the CNAME of all customers from the table TRAVEL who
are travelling by vehicle with code V01 or V02.
v) To display the CNO and CNAME of those customers from the table
TRAVEL who travelled between ‘2015-1231’ and ‘2015-05-01’.
vi) To display all the details from table TRAVEL for the customers, who
have travel distance more than 120 KM in ascending order of NOP
vii) To change attribute CNAME to PNAME.
Q19. Create the following table in MySQL and solve the given Queries.

You might also like