0% found this document useful (0 votes)
12 views11 pages

Cbse Practical Questions Set

The document outlines a series of programming tasks and SQL queries organized into 12 sets. Each set includes Python programming exercises such as creating menu-driven programs and file manipulations, alongside SQL queries for database management and data retrieval. The tasks cover a range of topics including arithmetic operations, factorial calculations, Fibonacci series, and various data queries related to student and employee information.

Uploaded by

boyapatiyagnitha
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
12 views11 pages

Cbse Practical Questions Set

The document outlines a series of programming tasks and SQL queries organized into 12 sets. Each set includes Python programming exercises such as creating menu-driven programs and file manipulations, alongside SQL queries for database management and data retrieval. The tasks cover a range of topics including arithmetic operations, factorial calculations, Fibonacci series, and various data queries related to student and employee information.

Uploaded by

boyapatiyagnitha
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 11

Set - 1

1.Create a menu driven program to perform arithmetic operations.

2. To write Queries for the following Questions based on the given table:

(a) Write a Query to Create a new database in the name of "STUDENTS".

b) Write a Query to Open the database “STUDENTS”.

(c)Write a Query to create the above table called: “STU”

(d) Write a Query to list all the existing database names.

(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

1. write a menu driven Python Program to display fibonacci Series..


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 -4

1. write a Python program to implement python mathematical functions to find:

(i) To find Square of a Number.

(ii) To find Log of a Number(i.e. Log10)

(iii) To find Quad of a Number .


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 -5

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:

(a) Write a Query to Create a new database in the name of “STUDENTS”.

(b) Write a Query to Open the database “STUDENTS”.

(c)Write a Query to create the above table called: “STU”

(d) Write a Query to list all the existing database names.

(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:

(a) Write a Query to Create a new database in the name of “STUDENTS”.


(b) Write a Query to Open the database “STUDENTS”.
(c) Write a Query to create the above table called: “STU”
(d) Write a Query to list all the existing database names.
(e) Write a Query to List all the tables that exists in the current database.

Set -12

1. Write a Python program to implement Stack using a list data-structure, to


perform the following operations:
(i) To Push an object containing Doc_ID and Doc_name of doctors who
specialize in “ENT” to the stack.
(ii) To Pop the objects from the stack and display them.
(iii) To display the elements of the stack (after performing PUSH or POP)
2. To write Queries for the following Questions based on the given table:

You might also like