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

Xii Ip MT Aug Ms Kv1mdu

The document outlines a monthly test for Class XII in Informatics Practices, including a marking scheme and various sections with questions on SQL, Python, and data visualization. It consists of multiple-choice questions, coding tasks, and SQL queries, covering topics such as data manipulation, functions, and database management. The test is designed to assess students' understanding and application of informatics concepts and practices.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
4 views5 pages

Xii Ip MT Aug Ms Kv1mdu

The document outlines a monthly test for Class XII in Informatics Practices, including a marking scheme and various sections with questions on SQL, Python, and data visualization. It consists of multiple-choice questions, coding tasks, and SQL queries, covering topics such as data manipulation, functions, and database management. The test is designed to assess students' understanding and application of informatics concepts and practices.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 5

PM SHRI KV NO.

1 MADURAI – CHENNAI REGION


MONTHLY TEST -AUGUST 2025
Marking Scheme
Class : XII Max. Marks: 35
Subject: Informatics Practices (065) Duration : 1 ½ hrs

QN SECTION - A [9 x 1 = 9] Marks

o
1 Which function will be used to write data into dataframe from CSV file? 1
(a) readcsv() (b) to_csv() (c) read_csv() (d) csv_read()
2 Which of the following would arrange the rows in ascending order in SQL. 1
a. SORT BY b. ALIGN BY c. GROUP BY d. ORDER BY
3 Which keyword is used to check pattern matching in a query? 1
a) Check b) match c) where d) Like
4 ……………………. is the function to save the graph. 1
a. save.figure() b. savefig() c. Save.figure() d. Savechart()
5 Write the command to install Matplotlib library of Python. 1
6 Which is the function to draw a line chart in python. 1
Line() b) line() c) Plot() d) plot()
7 The round() function in MySql is an example of . 1
a.Math function b.Text function c.Date Function d.Aggregate Function
8 Write output: select round(1544.45, -3); 1
a) 1500 b) 2000 c) 1500.00 d) 1544.000
9 Q9 is ASSERTION AND REASON based question. Mark the correct choice as 1
a) Both A and R are true and R is the correct explanation for A
b) Both A and R are true and R is not the correct explanation for A
c) A is True but R is False
d) A is false but R is True
Assertion(A):-The ROUND() in SQL can be used to round off a number to a specified
number of decimal places.
Reason(R):-The ROUND() is a string function that accepts character values as input and
returns numerical values as output.
SECTION - B [4 x 2 = 8]
10 A. Write output: 1+1
1. select round(12345.789,2), round(1434.56,-1);
2. select mod(23,2), mod(78,4);
Ans. 1. 12345.79 1430
2. 1 2
OR
B. Consider the string: "Database Management System". Write suitable SQL queries :
1. To extract and display "Manage" from the string.
2. Display the position of the first occurrence of "base" in the given string.
11 Rewrite the errors and underline the corrections made: 2

Page 1 of 5
import pandas as pd
dict={'p_id':[101,102,103],p_name:['Hard disk','Pen Drive','Camera']}
df=pd.dataframe(dict1)
pd.to_csv("Product.csv")
print(df)
Ans: import pandas as pd
dict1={'p_id':[101,102,103],'p_name':['Hard disk','Pen Drive','Camera']}
df=pd.DataFrame(dict1)
df.to_csv("Product.csv")
print(df)
12 Write an SQL statement to create a table named EMPLOYEES, with the following 2
specifications:

Ans: CREATE TABLE EMPLOYEES ( Empid INT PRIMARY KEY, Firstname


VARCHAR(30), Lastname VARCHAR(30), Joindate DATE, Salary DECIMAL(10,2));
13 Ms. Anubha is working in a school and stores the details of all students in a Table: 2
Table: SCHOOL

Write the SQL statements from the given table to :


(i) Display the names of students who were born on Tuesday.
(ii) Display the Grades of students born in 2006.
SECTION - C [3 x 3 = 9]
14 Ramesh is an IP student. He is working on Data Visualization. His teacher has assigned 3
him a task to create a line chart to show rainfall in Jaipur from 2001 to 2005. His code
produced the following output:

Page 2 of 5
Write code to produce this output.
15 Write SQL commands for the following: 3
Table : Teacher
TID TName TSal TDept TDesig
1 Amit 2000 IT PGT
2 Sumit 1500 History TGT
3 Naina 1800 Math PGT
a. Write the degree and cardinality of Table : Teacher
Ans. Degree -5, Cardinality - 3
b. Display records of all PGT Staff
Ans. Select * from Teacher where TDesig=’PGT’;
c. Increase the salary of teachers of Math department by Rs. 500.
Ans. Update Teacher set salary=salary+500 where Tdept=’math’;
OR
Consider the table EMPLOYEE given below. Write SQL statements from (i) to (iii)
EMPLOYEE
EID NAME SALES JOBTITLE
E1 SUMIT SINHA 1100000 PRESIDENT
E2 VIJAY SINGH TOMAR 1300000 VICE PRESIDENT
E3 AJAY RAJPAL 1400000 ADMINISTRATION ASSISTANT

E4 MOHIT 1250000 ACCOUNTING MANAGER


E5 SHAILAJA 1450000 ACCOUNTANT
i) Display the name and job title of the employee
Select name, jobtitle from employee;
ii) Display the employee details whose sales are more than 1250000
Select * from employee where sales>1250000;
iii) Display the jobtitle of Mohit.
Select jobtitle where name=”Mohit”;
16 Perform the following operations on data in database EmployeeDB: 3
Table: EMPLOYEE
Ecode Ename Gender Dept Salary City
Page 3 of 5
1025 Manisha F ADMN 36000 Guwahati
1011 Rahul M SALES 45000 surat
1502 Rinky F HR 25000 Jaipur
1308 Mohan M SALES 38000 Delhi
1255 Mishra M ADMN 50000 Jaipur
1359 Anand M Sales 37000 Surat
Write query of the following:
A. Find the minimum salary among female employees in EMPLOYEE table.
B. Display the number of employees working in Sales department
C. Display the first 3 characters of names all employees.
OR
Write the output of following queries:
A. Select Right(EName, 3) from employee where Gender=”M”;
B. Select count(*),dept from employee group by dept;
C. Select sum(salary) from employee where dept=”ADMN”;

SECTION - D [1 x 4 = 4]
17 Mr. Vijay is working in the mobile app development industry and he was comparing the 4
given chart on the basis of the rating of the various apps available on the play store.

He is trying to write a code to plot the graph. Help Mr. Vijay to fill in the blanks of the
code and get the desired output.
import ________________ as plt #Statement 1
apps=["Arogya Setu","WPS Office","Cam Scanner","WhatsApp","Telegram"]
ps_rating=[3.9,4.5,4.6,4.2,4.3]
plt.__________(apps,ps_rating, label=__________) #Statement 2 Statement 3
plt.xlabel("Apps")
plt._____________("Rating") #Statement 4
plt._________ #Statement 5

Page 4 of 5
plt.show()
i) Write the appropriate statement for #statement 1 to import the module.
ii) Write the function name and label name as displayed in the output for #statement 2
and #statement 3 respectively.
iii) Which method should be used for #statement 4?
iv) Write appropriate method name for #Statement 5 to display legend
SECTION - E [1 x 5 = 5]
18 Write suitable SQL query for the following: 5
a) Display the position of “CHENNAI” in the string “KVSROCHENNAI”
b) Extract 5 characters from position 9 from the string “CENTRAL BOARD OF
SECONDAY EDUCATION”.
c) Display the length of the number “1234.999” rounded off to zero decimal places
d) Display the remainder of your day of birth divided by month of your birth
e) Display the name of the day of hiredate column of table emp
OR
Write suitable SQL query for the following:
I. To display the total number of characters in the string “DatabaseSystems”.
II. Find the position of the first occurrence of the letter 'a' in the Product_Name column
of the Products table.
III. Display the total sum of the Salary from the Salary column in the Employees table.
IV. Calculate the square of the Amount for each transaction in the Tran_Amount
column of the Transactions table.
V. To display the average salary from the Salaries column in the Employees table.
Ans:
a) SELECT INSTR('KVSROCHENNAI','CHENNAI');
b) SELECT MID(“CENTRAL BOARD OF SECONDAY EDUCATION”,9,5);
c) SELECT LENGTH(ROUND(1234.999));
d) SELECT MOD(DAY(DOB),MONTH(DOB)); [DOB-DATE OF BIRTH]
e) SELECT DAYNAME(HIREDATE) FROM EMP;
OR
I. SELECT LENGTH('DatabaseSystems');
II. SELECT INSTR(Product_Name, 'a') FROM Products;
III. SELECT POWER(Tran_Amount, 2) FROM Transactions;
IV. SELECT AVG(Salaries) FROM Employees;
V. SELECT SUM(Salary) FROM Employees;

Page 5 of 5

You might also like