0% found this document useful (0 votes)
54 views2 pages

August MT Ip

This document contains a practice test for Class XII students with 12 multiple choice and short answer questions covering topics like SQL commands, pattern matching in queries, creating tables, differences between SQL clauses, Pandas operations on DataFrames and Series, and more. It provides instructions to write code to perform operations like adding a column, displaying highest values, removing columns, and filtering Series by index values.

Uploaded by

TRAP GAMING
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)
54 views2 pages

August MT Ip

This document contains a practice test for Class XII students with 12 multiple choice and short answer questions covering topics like SQL commands, pattern matching in queries, creating tables, differences between SQL clauses, Pandas operations on DataFrames and Series, and more. It provides instructions to write code to perform operations like adding a column, displaying highest values, removing columns, and filtering Series by index values.

Uploaded by

TRAP GAMING
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/ 2

KENDRIYA VIDYALAYA NO 2 HAPP TRICHY

AUGUST MONTHLY TEST – 2022-23


CLASS XII SUBJECT: INFORMATICS PRACTICES
MARKS 40 TIME 90 MINS
1 Which SQL command is used to view the structure of the table Employee? 1

2 Which keyword is used to check pattern matching in a query? 1

3 12

(iv) Insert the Nightstand row using NULL value in query.


(v) Insert 6,Shoe Rack,Store Room,3600.34 row in the table using partial insertion.
(vi) Delete those records where price is not given.
(vii) Display itemname and stockdate of those items whose price range from
10000 to 30000.
(viii) Increase the price of Living type items by 3000
(ix) Display number of itemnames purchased in 2019
(x) Display sno and type of the items whose name ending with s.
State the ouput for the following:
(xi) SELECT LENGTH(ITEMNAME) FROM ITEM WHERE TYPE NOT IN
(“LIVING”, “KITCHEN”);
(xii) SELECT COUNT(*) FROM ITEM WHERE STOCKDATE IS NULL OR
PRICE<10000;
4 Create the table CLUB : Coach_ID, Coach_Name, Age,Sports,DateofApp,Pay,Gender 2

5 State the difference between order by and group by clause with examples 3

6 1

1 | Page
7 Differentiate between array , list and series with respect to display, creation , 3
multiplication
8 Write code in Pandas to create the following DataFrame batsman from a dictionary: 2
Perform the following operations: 5
i) Add both the scores and assign a new column “Total”
ii) Display the highest score in both Score1 and Score2
iii) Display the dataframe
iv) Remove the column Score1
v) Display all the batsman names
B_No Name Score1 Score2
1 Sunil Pillai 90 80
2 Gaurav Sharma 65 45
3 Piyush Goel 70 90
4 Karthik Thakur 80 76
9 Given a list named Pat that has the list of registered patient’s token numbers in some 5
hospital
Pat=[258,547,520,621,125,485,214,457]
Write code in Python to perform the following:
i) Create a series named Ser1 using the list Pat.
ii) Assign Patient as the name of Ser1
iii) Assign index as P1,P2,P3,P4,P5,P6,P7,P8
iv) Given the index name as PAT_ID
v) Display those patients whose token number more than 450
10 Consider the following DataFrame df and answer questions from (i) & (ii)
rollno name MT1 MT2 MT3 MT4
1 Sujith 25 24 20 22
2 Umesh 19 17 19 22
3 Sanjay 20 22 18 24
4 Fathima 22 20 24 20
The teacher needs to know the marks scored by the student with roll number 2. 1

The teacher wants to display the rows from 2 to 4. 1

Consider the Series S given below: 3


SOFA 500
DINING 11200
RACK 4000
STOOL 500
dtype:int64
i. Write the command to find the number of bytes in the series
ii. Write the command to reduce and display the price of items by 300
iii. Display the first 2 data of the series

~~~ALL THE BEST~~~

2 | Page

You might also like