0% found this document useful (0 votes)
14 views5 pages

XII Practical Qs Paper

Uploaded by

yashmeetkaur1768
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)
14 views5 pages

XII Practical Qs Paper

Uploaded by

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

SET 1

Q1. Write a Python program to plot a bar chart of the popularity of programming Languages. Use
different color for each bar. Languages: Java, Python, PHP, JavaScript, C#, C++ , Popularity:
22.2, 17.6, 8.8, 8, 7.7, 6.7 (5)

Q2. Write a program to create the given DataFrame and display the 'name' and 'score' columns
from it. (3)

Q3. Write queries for the following- (7)

TABLE: PATIENT
NO NAME AGE DEPARTMENT CHARGES GENDER
1 ARPIT 62 SURGERY 300 M
2 ZARINA 22 HISTORYENT 250 F
3 KAREEM 32 ORTHOPAEDIC 200 M
4 ARUN 12 SURGERY 300 M

1) Create the above table patient


2) Insert above records in table.
3) To display Total Number of departments present in the Hospital
4) To display all information about the patients of Surgery department.
5) To display name and gender of all the patients whose age is in the range of 12 to 45 in
ascending order of their name.
6) To display all the patient names having ‘R’ alphabet in their names
7) To display the total charges paid by male patients
SET 2

Q1. Write a program to plot a line chart with two lines of different colours with markers. The data
to be used are-x = [2,4,6,8,10] y=[6,7,8,2,4] x2=[1,3,5,7,9] y2=[7,8,2,4,2] (5)

Q2. Write a program to create the given DataFrame and display the column names and index of it
(3)

Q3. Write queries for the following- (7)

TABLE: SPORT

CID COACHNAME AGE SPORTS DATEOFAPP PAY SEX NO_PLAYERS


1 ADITI 35 KARATE 2012-03-25 20000 F 20

2 MOHAN 34 BASKETBALL 2011-01-20 15000 M 15


3 SEEMA 34 SQUASH 2010-03-11 20000 F 2
4 RAGHAVA 33 KARATE 2008-03-25 15500 M 16

1) Create the above table Sport.


2) Insert above records in table.
3) To show all information about the karate coaches in the Sport.

4) To show all information of the Sport whose coach name ENDS with “A”.
5) To display coach name, pay, age for all the coaches.
6) To display details of coach earning 20000 for female coach only.
7) To display all the sport names having ‘A’ alphabet in fourth place in their names
SET 3

Q1. Write a Python program to plot a bar chart (5)


left = [1, 2, 3, 4, 5] , Height = [10, 24, 36, 40, 5]

Q2. Create a series and find out all the elements greater than 75 (3)
Array elements are [50 54 58 62 66 70 74 78 82 86 90 94 98]
Q3. Write queries for the following- (7)

Table : STUDENT.

NO NAME AGE DEPARTMENT FEE SEX


1 PANKAJ 24 COMPUTER 120 M
2 SHALINI 21 HISTORY 200 F
3 SANJAY 22 HINDI 300 M
4 SUDHA 25 HISTORY 400 F

1) Create the above table student


2) Insert above records in table.
3) Display name and age of male students
4) Display all details of students in descending order of name
5) Display total of fees of all students
6) Display the details of students of computer department only.
7) Display all the details of students whose department name starts with ‘H’
SET 4

Q2. Write a program to make a star with coloured lines. (5)


x=[20,55,90,10,100,20]
y = [10,100,10,80,80,10]

Q1. Write a program to explain Boolean indexing. (3)


Rollno-10,11,12,13,14,15,
Name- aniket,ram,shyam,bhim,rim,kim

Q3. Write queries for the following- (7)

Table: CLUB
No_Players
C_Id CoachName Age Sports DateofApp Pay Sex
1 KUKREJA 35 KARATE 2012-03-27 1000 M 20
2 RAVINA 34 KARATE 2008-01-20 1200 F 15
3 KARAN 34 SQUASH 2009-02-19 2000 M 2
4 TARUN 33 BASKETBALL 2012-01-01 1500 M 16

1) Create table club


2) Insert above records in table
3) To display highest age of coach along with lowest pay of coach from table club.
4) To display different sports available in the club.
5) To list the names of all coaches with their date of appointment in descending order.
6) To display the name of coach ending with “A” joining after 20th January.
7) To display details of coach who are paid in the range 1000 to 2500
SET 5

Q1. Write code to draw the bar chart with coloured bars . (5)
girls = [10,20,20,40]
boys = [20,30,25,30]

Q2. Create the given DataFrame ‘Stock’ and write code to (3)

i. Add a column called Special_Price with the following data: [135,150,200,440].


ii. Add a new book named ‘The Secret' having price 800.
iii. Remove the column Special_Price.

Q3. Write queries for the following- (7)

Table : SchoolBus

Rtno Area_covered Capacity Noofstudents Distance Transporter Charges


1 Vasant kunj 100 120 10 Shivam travels 100000
2 Hauz Khas 80 80 10 Anand travels 85000
3 Pitampura 60 55 30 Anand travels 60000
4 Rohini 100 90 35 Anand travels 100000

1) Create table SchoolBus


2) Insert above records in table
3) To show all the bus routes number where the distance is less than 30.
4) To show the maximum capacity of a bus
5) To show the area whose names end with ‘j’ in decreasing order of the area covered.
6) To display the total charges earned by anand travels .
7) To display the highest charges paid by anand travels

You might also like