0% found this document useful (0 votes)
151 views1 page

Kendriya Vidyalaya Rajnandgaon Computer Science: Xii Practical List: Term Ii Python & Mysql

The document outlines 13 Python and MySQL programming tasks involving creating and manipulating stacks containing student and sportsman data, as well as tasks performing queries on book data stored in tables to retrieve book information, increase prices, count records, find maximum prices, and delete records matching certain criteria.

Uploaded by

Harsh
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)
151 views1 page

Kendriya Vidyalaya Rajnandgaon Computer Science: Xii Practical List: Term Ii Python & Mysql

The document outlines 13 Python and MySQL programming tasks involving creating and manipulating stacks containing student and sportsman data, as well as tasks performing queries on book data stored in tables to retrieve book information, increase prices, count records, find maximum prices, and delete records matching certain criteria.

Uploaded by

Harsh
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/ 1

KENDRIYA VIDYALAYA RAJNANDGAON

Computer Science : XII


Practical List : Term II
Python & MySQL
1. Write a program in Python to create a stack name StackVow, which takes the
elements as vowels and implement all oprations (Push, POP and Traversal) on
stack StackVow
2. Write a program in python to create a stack “student” with details of student
name and their marks. Write Operation for Push, Pop and Traversal operation
using menu.
3. Write a python program to create stack Sport_Stack to store age of sportsman
using stack implementation as list. Write Operation for Push, Pop and Traversal
operation using menu.

4. Consider the following tables and answer the following Table : Book
Book_Id Book_Name Author_Name Publisher Price Type Quantity
C0001 Fast Cook LataKapoor EPB 355 Cookery 5
F0001 The Tears William Hopkins First Pub 650 Fiction 20
T0001 My First C++ Brain & Brooke EPB 350 Text 10
T0002 C++ Brain works A.W. Rossaine TDH 350 Text 15
F0002 Thunderbolts Anna Roberts First Pub 750 Fiction 50
Table : Issued
Book_Id Issuedto Quantity_Issued
T0001 Kamal 4
C0001 Arvind 5
F0001 Suresh 2
1. To show Book id, Book name, Author name and price of books of First Pub Publisher
2. To display the names and price of books in ascending order of their prices.
3. Display the price of book which has price between 300 to 500.
4. To increase the price of all books of EPB publishers by 50.
5. To display the Book_Id, Book_Name and quantity issued for all books which have been issued.
6. To display the Bookname and Price of Books for all books having ‘C++’ in the bookname
7. Delete the book whose book id is T0002
8. Show all book whose book name started with character ‘T’

Give the output of the following


9. Select Count(*) from Book;
10. Select Max(Price) from Book where Quantity >=15;
11. Select Book_Name, Author_Name from Book where Publisher=’First Pub’;
12. Select count(distinct Publisher) from Book where Price>=400;
13. Select count(distinct(Publisher)) from book;

You might also like