Cbse Practical Questions Set
Cbse Practical Questions Set
2. To write Queries for the following Questions based on the given table:
(e)Write a Query to List all the tables that exists in the current database.
Set- 2
1. Write a menu driven Python Program to find Factorial and sum of list of numbers
using function.
2. To write Queries for the following Questions based on the given table:
a) Write a Query to insert all the rows of above table into Info table.
b) Write a Query to display all the details of the Employees from the above table ‘STU’.
c) Write a query to Rollno, Name and Department of the students from STU table.
d) Write a Query to select distinct Department from STU table.
e) To show all information about students of History department.
Set -3
(b)Write a Query to list name of the students whose ages are between 18 to 20.
(c) Write a Query to display the name of the students whose name is starting with ‘A’.
(d) Write a query to list the names of those students whose name have second alphabet ‘n’
in their names.
Set -4
1. Write a Python Program to Read a text file “Story.txt” line by line and display each
word separated by ‘#’.
2. Write Queries for the following Questions based on the given table
(a) To Display the average price of all the Uniform of Raymond Company from
table COST.
(b) To display details of all the Uniform in the Uniform table in descending order
of Stock date.
(c) To Display max price and min price of each company.
(d) To display the company where the number of uniforms size is more than 2.
(e) To display the Ucode, Uname, Ucolor, Size and Company of tables uniform
and cost.
Set -6
1. Write a Python Program to read a text file “Story.txt” and displays the number of
Vowels/ Consonants/ Lowercase / Uppercase/characters in the file.
2. . To write Queries for the following Questions based on the given table:
(e)Write a Query to List all the tables that exists in the current database.
Set-7
1.Write a method Disp() in Python, to read the lines from poem.txt and display those words
which are less than 5 characters.
2.To write Queries for the following Questions based on the given table:
(a) Write a Query to insert all the rows of above table into Info table.
(b) Write a Query to display all the details of the Employees from the above table
‘STU’.
(c) Write a query to Rollno, Name and Department of the students from STU
table.
(d) Write a Query to select distinct Department from STU table.
(e) To show all information about students of History department.
Set -8
1. Write a python program to read lines from a text file “Sample.txt” and copy those
lines into another file which are starting with an alphabet ‘a’ or ‘A’.
2. Write Queries for the following Questions based on the given table:
(a)Write a Query to list name of female students in Hindi Department.
(b)Write a Query to list name of the students whose ages are between 18 to 20.
(c)Write a Query to display the name of the students whose name is starting with ‘A’.
(d) Write a query to list the names of those students whose name have second alphabet ‘n’
in their names.
Set-9
1. Write a Python Program to Create a binary file with roll number and name. Search for
a given roll number and display the name, if not found display appropriate message.
2. Write Queries for the following Questions based on the given table.
(a) Write a Query to delete the details of Roll number is 8.
(b) Write a Query to change the fess of Student to 170 whose Roll number is 1, if
the existing fess is less than 130
(c) Write a Query to add a new column Area of type varchar in table STU.
(d) Write a Query to Display Name of all students whose Area Contains NULL.
(e)Write a Query to delete Area Column from the table STU.
(f) Write a Query to delete table from Database.
Set-10
1.write a Python Program to Create a binary file with roll number, name, mark and
update/modify the mark for a given roll number.
2.Write Queries for the following Questions based on the given table:
(a) To Display the average price of all the Uniform of Raymond Company from
table COST.
(b) To display details of all the Uniform in the Uniform table in descending order
of Stock date.
(C )To Display max price and min price of each company.
(d)To display the company where the number of uniforms size is more than 2.
(e)To display the Ucode, Uname, Ucolor, Size and Company of tables uniform and
cost.
Set -11
1.write a Python program Create a CSV file to store Empno, Name, Salary and search any
Empno and display Name, Salary and if not found display appropriate message.
2.To write Queries for the following Questions based on the given table:
Set -12