cbleippu02
cbleippu02
Sample Paper 02
INFORMATICS PRACTICES (065)
CLASS XII 2024-25
Time: 3 Hours Max. Marks: 70
General Instructions:
1. Please check this question paper contains 37 questions.
2. All questions are compulsory. However, internal choices have been provided in some questions. Attempt
only one of the choices in such questions
3. The paper is divided into 5 Sections- A, B, C, D and E.
4. Section A consists of 21 questions (1 to 21). Each question carries 1 Mark.
5. Section B consists of 7 questions (22 to 28). Each question carries 2 Marks.
6. Section C consists of 4 questions (29 to 32). Each question carries 3 Marks.
7. Section D consists of 2 case study type questions (33 to 34). Each question carries 4 Marks.
8. Section E consists of 3 questions (35 to 37). Each question carries 5 Marks.
9. All programming questions are to be answered using Python Language only.
10. In case of MCQ, text of the correct answer should also be written.
SECTION - A
1. State whether the following statement is True or False: The `.tail()` method in Pandas retrieves the last
few rows of a DataFrame.
3. _____ is a set of moral principles that governs the behaviour of a group or an individual and regulates
the use of computers.
(a) Copyright (b) Computer ethics
(c) Property rights (d) Privacy law
9. Pandas is a _____.
(a) package (b) language
(c) library (d) software
13. Home page helps viewers to find out what they can find on the particular site. Home page is the _____.
(a) first page of a website (c) about page
(b) index page (d) None of these
18. If emp_id contain the following set {9, 7, 6, 4, 3, 1, 2}, what will be the output on execution of the following
MySQL statement?
SELECT emp_id
FROM person ORDER BY emp_id;
(a) {1, 2, 3, 4, 6, 7, 9} (b) {2, 1, 4, 3, 7, 9, 6}
(c) {9, 7, 6, 4, 3, 1, 2} (d) None of these
20. Assertion (A) : The name Bluetooth is derived from Harald Bluetooth, a king in Denmark.
Reason (R) : Bluetooth is used for exchanging data over a short distance from fixed and mobile devices.
(a) Both A and R are true and R is the correct explanation for A.
(b) Both A and R are true and R is not the correct explanation for A.
(c) A is true but R is false.
(d) A is false and R is true.
21. Assertion (A) : Pandas is an open-source Python library which offers high performance, easy to use data
structures and data analysis tools.
Reason (R) : Professionals and developers are using the Pandas library in data science and machine learning.
(a) Both A and R are true and R is the correct explanation of A.
(b) Both A and R are true but R is not the correct explanation of A.
(c) A is true but R is false.
(d) A is false but R is true.
SECTION B
22. What are some factors that have contributed to the rise of cyber crimes?
23. What is the purpose of ORDER BY clause in SQL? Explain with the help of suitable example.
25. List some benefits of networking. Name any two components required for networking.
o
Give an example of each static web page and dynamic web page.
26. The Python code written below has syntactical errors. Rewrite the correct code and underline the corrections
made.
Import pandas as pd
Emp = {‘a’ : 10000, ‘b’ : 15000,
‘c’ : 12000}
Sr = pd.Series(Emp)
Print(sr)
27. A character expression name contains ‘try yourself’. Write a command to pick the following set of characters
from it.
(i) First 3 characters
(ii) From 3rd to 7th character
28. Complete the given Python code to get the required output as: 16
import _____ as np
data = [1, 4, 9, 16]
series_data = np._____(data)
print(series_data[______])
SECTION C
29. Consider the table EXAM given below. Write the queries for (i) to (iii).
Table : EXAM
S No Name Stip-end Subject Average Division
1 Karan 400 English 68 Ist
2 Aman 680 Mathematics 72 Ist
3 Javed 500 Accounts 67 Ist
4 Bishakh 200 Informatics 55 IInd
5 Sugandha 400 History 35 IIIrd
6 Suparna 550 Geography 45 IIIrd
(i) To list the names of those students, who have obtained division as Ist in ascending order of Name.
(ii) To count the number of students, who have either Accounts or Informatics as Subject.
(iii) To display a report listing Name, Subject and annual Stipend received assuming that the Stipend
column has monthly stipend.
o
Reena is working with functions of MySQL.
Explain her following
(i) What is the purpose of NOW( ) function?
(ii) How many parameters does it accept?
(iii) What is the general format of its return type?
A B C
0 21 12 69
1 45 45 84
2 23 86 70
3 17 33 78
What will be the result of the following code statements?
(i) df[‘D’] = np.NaN
(ii) df[‘D’] = [23, 41, 32]
(iii) df[‘D’] = [23, 41, 32, 9]
Continue on next page.....
32. Rahul has recently shifted to a new college and hostel. He does not know many people in his new college
and hostel. But all of a sudden, someone is posting negative, demeaning comments on his social networking
profile etc.
He is also getting repeated mails from unknown people. Every time he goes online, he finds someone chasing
him online.
(i) What is this happening to Rahul?
(ii) What immediate action should he take to handle it?
(iii) Is there any law in India to handle such issues? Discuss briefly.
o
What is software licensing ? Name two types of software licensing with an example of each.
SECTION D
33. Mr. Ankit is working in an organisation as data analyst. He uses Python Pandas and Matplotlib for the
same. He got a dataset of the passengers for the year 2010 to 2012 for January, March and December. His
manager wants certain information from him, but he is facing some problems.
Help him by answering few questions given below:
Month Passengers
0 Jan 25
2 Jan 35
(iii) Predict the output of print (df[1 : 3])
(Option for part (iii) only)
o
Suppose a DataFrame df contains information about student having columns rollno, name, class and
section. Write the code to transpose DataFrame.
34. Tejasvi Sethi, a car dealer has stored the details of all cars in her showroom in a table CARMARKET. The
table CARMARKET has attributes CARCODE which is a primary key, CARNAME, COMPANY COLOR,
COST (in lakh) of the car and DOM which is the Date of Manufacture of the car.
Table : CARMARKET
CARC-ODE CARNAME COMPANY COLOR COST DOM
SECTION E
35. Green Valley Public School has 4 buildings in its campus . Distance between the buildings and the number
of computers in each is given below
Building Distance
A-B 10 m
A-C 1250 m
A-D 25 m
B-C 30 m
B-D 2000 m
(i) Which building is best suitable for placement of server?
(ii) If building A to D is to be connected, which device will be required for strong signals?
(iii) Which building would need a switch/hub?
(iv) Which topology would you suggest for connecting computers in each building?
(v) Suggest and draw cable layout to efficiently connect various buildings within the school campus for a
wired connectivity.
36. Write down the syntax format of the following functions, with one example of each.
(i) LCASE(str) (ii) UCASE(str)
(iii) RIGHT(str,n) (iv) POWER(m,n)
(v) RTRIM(str)
o
Consider the table DOCTOR given below. Write commands in SQL for (i) to (iv) and answer the question
for (v).
Table : DOCTOR
ID DOCName Department DOJ Gender Salary
1 Amit Kumar Orthopaedics 1993-02-12 M 35000
2 Anita Hans Paediatrics 1998-10-16 F 30000
3 Sunita Maini Gynaecology 1991-08-23 F 40000
4 Joe Thomas Surgery 1994-10-20 M 55000
5 Gurpreet Kaur Paediatrics 1999-11-24 F 52000
6 Anandini Burman Oncology 1994-03-16 F 31000
7 Siddharth Dang Surgery 1995-09-08 M 47000
8 Rama Mukherjee Oncology 2000-06-27 F 54500
(i) Display the names and salaries of doctors in descending order of salaries.
(ii) Display names of each department along with total salary being given to doctors of that department.
(iii) Display the number of doctors in each department.
(iv) To display all the female doctors from the given data.
(v) Identify the primary key from the table DOCTOR.
37. A bar graph is used to show individual figures at a specific time or to compare different items. Similarly, a
bar graph which is showing the marks of different subjects. You have to write the code that will represent
the given graph.
Write a Python code to create a line graph for the data given below based on Games apps rated by the users.
Games = [“Subway Surfer”, “Temple Run”, “CandyCrush”, “Bottle Shot”, “Runner Best”]
Rating= [4.2, 4.8, 5.0, 3.8, 4.1]
EN