www.anjeevsinghacademy.
com
All India Senior Secondary Certificate Examination
School Code: xxxxx
Time 3 Hours | Subject: Informatics Practices (065) | M.M. : 30
Q1. Problem Solving using PYTHON [5 + 3 = 8]
a) Write the code to create the series ‘serObj’ and answer the questions followed. (5)
Jan 31
Feb 28
Mar 31
Apr 30
i) Write the command to add one row: ‘May’ – 31
ii) Write the command to update Feb to 29
iii) Write the command to change index to 1,2,3,4,5 in place of Jan, Feb, Mar, Apr and May.
iv) Write a command to print a month name having number of days less than 31.
v) Write the output:
(a) print(serObj < 30)
(b) print(serObj + 3)
b) Write a Python program to display a BAR CHART of the number of students in a school. (3)
(i) Use different colors for each bar.
(ii) Title for x axis should be ‘Groups’ and title for y axis should be ‘Number of Students’
(iii) Ensure the title of chart is “Group wise Students” and grid line must be shown.
Sample data: Group: I, II, III, IV and Strength: 38, 30, 45, 49
Q2 SQL Queries: [2+5=7]
a) Create a table DRUGDB with the fields given in below table and assuming data type of your own.
b) Consider the table DRUGDB. Write the SQL commands for queries given below:
(i) To increase the price of “Paracetamol” by 35.
(ii) To display the drugid, Rxid and pharmacy name of all records in descending order of their price.
(iii) Display all the details of the drugs where name starts with ‘C’ and has ‘sh’ somewhere in the name.
(iv) Display the drug name in lower case along with price rounded off to nearest interger.
(v) Delete the field name loc from drugdb table.
Q3 Practical Records [5]
Q4 Project Work [5]
Q5 Viva voce [5]
External Examiner Internal Examiner
Name : _______________________ Name : _________________________
Sign : _______________________ Sign : _________________________
Examiner No: __________________ Examiner No: ____________________