0% found this document useful (0 votes)
122 views

IP 12 BoardPracPracticeQuestions PDF

This document provides practice questions on informatics practices for a board exam. It includes questions on creating and manipulating NumPy arrays, Pandas DataFrames, SQL queries on database tables. The NumPy/Pandas section includes questions on creating a series from a list, accessing data using indexes/locations, sorting, adding/removing columns. The SQL questions involve creating a student table, inserting data, querying for aggregate functions, filtering, sorting records. Instructions are also given on reading/writing DataFrames to CSV files. The final questions involve creating histograms and graphs to visualize student marks data.

Uploaded by

Krrish Kumar
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)
122 views

IP 12 BoardPracPracticeQuestions PDF

This document provides practice questions on informatics practices for a board exam. It includes questions on creating and manipulating NumPy arrays, Pandas DataFrames, SQL queries on database tables. The NumPy/Pandas section includes questions on creating a series from a list, accessing data using indexes/locations, sorting, adding/removing columns. The SQL questions involve creating a student table, inserting data, querying for aggregate functions, filtering, sorting records. Instructions are also given on reading/writing DataFrames to CSV files. The final questions involve creating histograms and graphs to visualize student marks data.

Uploaded by

Krrish Kumar
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

PRACTICE QUESTIONS OF INFORMATICS PRACTICES

For BOARD (AISSCE) PRAC. EXAM 2023


===============================================================
1. Create a Series as according to the following instructions:
(a) Series with NumPy array made of a list: [1,2,3,4,5,6,7,8,9]
(b) Assign indexes 'a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i'
(c) Access 2nd to 2nd last data using LOC
(d) Access 1st to 2nd last data using ILOC
(e) Print Top 5 & Bottom 5 data of the Series
(f) Print the data 5 & more than that.
(g) Replace the indexes with 'a1', 'b2', 'c3',.... etc.
(h) Create a Series using a Dictionary where Keys are: 'a', 'b', 'c', 'd', 'e' and values
are: 10, 20, 30, 40, 50
2. Here is a DataFrame EMP crated from a dictionary and write code of the following
questions:
Name Age Address Salary
-----------------------------------------------------------------
0 Jainath 27 Delhi 55000.00
1 Prince 24 Kanpur 95000.00
2 Gaurav 22 Allahabad 82000.00
3 Ansuman 32 Agra 65000.00
4 Siddhu 33 Lucknow 76000.00

a) Create the above DF from a Dictionary data-source


b) Display the DF
c) Display the DF those have Salary more than 60000
d) Display the data of Age, Address columns of the 2nd, 3rd, 4th records of DF
e) Display the top 3 rec.
f) Display the last 5 rec.
g) Delete the last record.
h) Add a new record to the DF
i) Add a new column to the DF
j) Add a new column "DA_%age" with 40% of "Salary"
k) Add a new column "Total" with the sum of the values of 'DA_%age' & 'Salary'
l) Replace the default index by 'a', 'b', 'c', 'd', 'e'
m) Replace the columns names by 'Emp_name', 'Emp_age', 'Emp_add', 'Emp_sal'
n) Replace the last three values by the Minimum value of the age
o) Display the records in descending order on Salary
p) Print a Bar-Graph of the 'Address' wise 'Salary'.
q) Print a Doubled-Line-Graph of the 'Address' wise 'Salary'and 'Address' wise 'Age'
r) Create a Histogram of to show the frequency of data within bin of 10) of average
marks scored by the students of a class are:
50,60,60,60,75,75,80,80,80,85,85,89,89,93,95,95,95,95,100,100,100
s) Assume the above data of DF is a EMP1.CSV file (with no index) then performs the
following tasks:
(i) Create a DF from the EMP1.csv file
(ii) Add a new row & column and save it to EMP2.csv file

3. Create following table - "Student" of the DataBase "Exam" as given and answer the
Queries as asked here, the fields of the Table are as given:
➢ StudId - int(4), Primary Key
➢ StudName - varchar(20) not null
➢ Batch - varchar(10)
➢ ExamDate – date
➢ Marks – float
➢ Stream – varchar
a) Insert 1 record(s) in the table as per your choice, one sample is as following
b) Write a query to Display maximum, minimum and sum of marks of candidates
c) Write a query to Display Maximum Marks of variouos Streams.
d) Write a query to Display Minimum Marks of different Streams those marks is more
than 50
e) Write a query to Display number students from commerce stream
f) Write a query to Display first two letters of candidatenames
g) Write a query to Display the average marks of stduents for each batch
h) Write a query to Display the name of the day of week including student name,
batch, marks
i) Write a query to Display the records of the student, who has scored the maximum
marks.
j) Write a query to Display records in Descinding order on Marks those have scored
less than 90
k) Write a query to replace the Student Name by "Shasmit Mishra" having student Id
"S005".
l) Write a query to Add a new column with DOJ of Date type
m) Write a query to Remove the column Batch
n) Write a query to update a column Stream with a size 20
o) Write a query to change the column name 'Marks' with 'Std_Marks

###

You might also like