APS Practical Question Paper-1
APS Practical Question Paper-1
Q1. To write a Python program to create a panda’s DataFrame called DF for [4]
the following table Using Dictionary of List and perform the following
operations:
(ii) To Display the row details of 'AP' and 'OD' from DataFrame DF.
(iii) To Display the column 'Books' and 'Uniform' for 'M.P' and 'U.P' from
DataFrame DF.
Q2. Write a Python program to plot a Line chart to depict the changing weekly [4]
Onion and Brinjal prices for four weeks. Also, give appropriate axes labels,
title and color keep marker style as Diamond and marker edge color as
'red' for Onion, keep marker style as X and marker edge color as 'green' for
Brinjal
Weeks=[1,2,3,4]
Onion=[45,25,32,80]
Brinjal=[16,18,45,50]
SECTION - B (SQL Queries)
Q3. Based on table STOCK given here, write suitable SQL queries and outputs
for the following:
[7]
TABLE : STOCK
(a) Write a SQL command to create the table Stock with given
attributes .
(b) Write a SQL command to update the quantity of Office 2007 from 2
to 4
(c) Write a SQL command to display Name, DOPURCHASE of Stock
whose Quantity is more than 2.
(d) Write a SQL command to display minimum Quantity and
maximum Quantity.
(e) Write a SQL command to display the year of date of purchase of
Mother Board
(f) Write a SQL command to display the Stock name
in lower case and length of Stock Name.
(g) Write a SQL command to display the position of occurrence of the
string "o" in Stock Name.
Q2. [4]
Write a Python program to plot a bar chart for the following data
representing the number of people and their hobbies. Specify each bar with
different colors. Provide appropriate titles and axis labels for the bar chart.
SECTION - B (SQL Queries)
Q3. Based on table Salesman given here, write suitable SQL queries and [7]
outputs for the following:
TABLE: SALESMAN
Q1. [4]
Write a program in python to create the following dataframe named
“weather” storing the following details:
Q2. [4]
Plot a bar chart depicting the city on x-axis and rainfall on y-axis,
with appropriate Graph title, x-label ,y-label and different color for
each city .
City = [‘Delhi’,’Bangalore’,’Chennai’,’Mumbai’,’Kolkata’]
Rainfall = [24.1,36.2,40.8,35.2,41.8]
SECTION - B (SQL Queries)
Q3. [7]
Based on table STUDENT table given here, write suitable SQL queries and
outputs for the following:
(a) Write a SQL command to create the table STUDENTS with given
attributes .
(b) Write a SQL command to display Remainder of column Marks
divided by 3.
(c) Write a SQL command to display first 2 characters of the column
Dept.
(d) Write a SQL command to display the average marks department
wise.
(e) Write a SQL command to display name of all the students where
marks less than 80.
(f) Write a SQL command to display Student name and month name
of the students ’ DOA’ .
(g) Write a SQL command to display student name and marks after
rounding off to zero decimal places.
[EXTERNAL NUMBER:]
SSCE PRACTICAL EXAMINATION 2024-2025 SET D
2. Add a new column named discount which is 10% of their bill amount.
3. Display the details of Tushar and Sameer.
4. Delete the details of Mayank
Temp = [42,45,49,47]
City = [‘Oman’,’UAE’,’Kuwait’,’Manama’]
Q3. Write Sql commands and outputs for the following on the basis of the [7]
Employee table given below:
(a) Display the details of all employees who are below 30 years of age
(b) Display the details of all the employees whose Grade is A.
(c) Display the details of all the employees whose salary is between
32000 and 38000.
(d) Display the total salary of the employees zone wise.
(e) Display the name, salary, and age of all the employees whose
name starts with “M”.
(f) Display all the details in descending order of salary.
(g) To display the employees who work in West Zone.
[EXTERNAL NUMBER:]
SSCE PRACTICAL EXAMINATION 2024-2025
SET E
School Code : 75062
School Name : AIRPORT SENIOR SECONDARY SCHOOL
Class : XII
Subject Code : 065
Subject : INFORMATICS PRACTICES
Reg.No : ___________________________
Date : 21/1/25
Max.Marks : 30
Time : 3:00 HRS
{"jan":20000,"feb":10000,"mar":15000,"apr":22000,"may":7000,"jun":
8000,"jul":9900,"aug":22000,"sep":10000,"oct":5600,"nov":9000,"dec"
:8900}
Q3. Write Sql commands and corresponding outputs for (a) to (g) on the basis of [7]
tables given below.