Sie sind auf Seite 1von 1

PRACTICAL QUESTIONS

CLASS – XII Informatics Practices


Topic: Functions
1. Write a Python program having function that accepts a range of numbers and print all the perfect
numbers in that range.
2. Write a Python program having function that accepts a hyphen-separated sequence of words as input
and prints the words in a hyphen-separated sequence after sorting them alphabetically. Sample Items :
green-red-yellow-black-white Expected Result : black-green-red-white-yellow
3. Write a Python program having function to generate a dictionary where keys are numbers between 1
to n and values are square of keys. Function should print only the values of dictionary
4. Write a Python function that takes a list and returns two new lists one having unique odd numbers of
the first list and another having unique even elements of the list Sample List : [1,2,3,3,3,3,4,5]
Odd Numbers: [1, 3, 5] Unique List: [2, 4]
Topic: Data handling using Python libraries
5. Use map functions to convert all negative numbers in a Data Frame to the mean, median and
mode of all the numbers.
6. Create a Data Frame where Name, Marks in 3 subjects of 10 students is stored. Use map functions
to find the min, max, mode, mean, count, sum, median, quartile, var of all the data.
7. Consider a Data Frame, where each row contains the item category, item name, and expenditure.
Group the rows by the category, and print the total expenditure per category.
Topic: Numpy array
8. Use Numpy arrays and its functions to calculate the Covariance and Correlation of a sample data.
9. Create a 1-D Numpy array and carry out the following operations
Display in reverse order
Display only even ordered index
Find the sum of first half and second half separately.
10. Create a 2-D Numpy array and carry out the following operations
Find row sum and column sum
Find the diagonal sum
Display the lower diagonal
11. If Data is [[10,20,30,40],[11,21,31,41],[12,22,32,42],[13,23,33,43]] then use slicing to
display [[22,32],[23,33]]
12. Given a Series, print all the elements that are above the 75th percentile.
13. Given a day’s worth of stock market data, aggregate it. Print the highest, lowest, and closing
prices of each stock.
Topic: Data visualization using pyplot
14. Plot a bar chart having class as IX,X,XI,XII on x-axis and no. of students and average marks of the
class both on y axis.
15. Plot a pie chart for the no. of students opting for choice of Language as Hindi, English, Kannada,
and French in a class.
16. Plot a line chart having markers for Class as IX,X,XI,XII and no. of students in a class.
Topic: Data Management: SQL + Web-Server(Refer book back)
17. Find the min, max, sum, and average of the marks in a student marks table.
18. Find the total number of customers from each country in the table (customer ID, customer Name,
country) using group by.
19 Write a SQL query to order the (student ID, marks) table in descending order of the marks.
20. Integrate SQL with Python by importing MYSQL dB
21. Write a Django based web server to parse a user request (POST), and write it to a CSV file.
Topic:Basic Software Engineering
22. Business use-case diagrams for an airline ticket booking system, train reservation system, stock
exchange
23. Collaboratively write a program and manage the code with a version control system (GIT)

Das könnte Ihnen auch gefallen