IP preboard 2023-24
IP preboard 2023-24
CLASS XII
INFORMATICS PRACTICES (065)
TIME: 03 HOURS M.M.: 70
General Instructions:
1. This question paper contains five sections, Section A to E.
2. All questions are compulsory.
3. Section A has 18 questions carrying 01 mark each.
4. Section B has 07 Very Short Answer type questions carrying 02 marks each.
5. Section C has 05 Short Answer type questions carrying 03 marks each.
6. Section D has 02 questions carrying 04 marks each.
7. Section E has 03 questions carrying 05 marks each.
8. All programming questions are to be answered using Python Language only.
SECTION A
SECTION B
26. Consider the table STUDENT given below write suitable SQL queries for the following:
SECTION E
33. Attempt the following questions:
(i) Write a SQL query to calculate the modulus of 62 by 10.
(ii) Write a SQL query to retrieve the current month.
(iii) Write a SQL query to extract the last four characters from the string 'Milkybar!'.
(iv) Write a SQL query to convert the text in the 'Address' column of the 'Person' table to lowercase.
(v) Write a SQL query to display the position of 'abc' in values of Name column of table EMP
OR
Observe the given tables carefully and attempt the following questions:
Table:-Employee
Eno Ename Job Salary
1001 Adam Doctor 150000.00
1002 Amaal Engineer 165000.00
1003 Ali Doctor 180000.00
1004 Simran Manager 125000.00
1005 Rabil Manager 185000.00
.
Table:-Location
LNO Location ENo
1 Kolkata 1004
2 Mumbai 1002
3 Delhi 1003
4 Goa 1001
(i) Identify the column based on which both the tables can be related or joined. Also justify your answer.
(ii) Write a SQL query to list names of all employees name with their salary in descending order:
(iii) Write a SQL query to find the sum of salaries for all jobs.
(iv) Write a SQL query to display EName and corresponding Location for all employees .
(v) Write a SQL query to display EName,Job and Location for all employees whose salary is above
150000,00.
34. A large company campus with multiple departments and buildings is planning to establish an efficient
network infrastructure to connect its various facilities. The campus comprises five main buildings, each
with specific distance and computer requirements:
Distance between various buildings:
Building A to Building B:70 meters
Building B to Building C: 50 meters
Building C to Building D: 60 meters
Building D to Building E: 40 meters
Building E to Building C: 60 meters
Building D to Building A: 220 meters
Building D to Building B: 160 meters
Building E to Building B: 85 meters
35. Write a python program to plot a line chart with an appropriate chart title and both axis labels based
on the given data to depict the weekly sales patterns for all the seven days.
Day=[1,2,3,4,5,6,7]
Sales_patt=[20,30,50,20,60,70,50]
Also, give suitable python statement to save this chart in d: drive of the computer with name ‘Sales.png’.
OR
The weights of 10 students of eighth grade are given below:
Weight_cms=[55,60,65,60,70,70,80,90,70.80]
Write suitable Python code to generate a histogram based on the given data, along with an appropriate
chart title and both axis labels. Also give suitable python statement to save this chart.