CBSC 12th Informatics Practices Sample Paper 06 Page 1
Sample Paper 06
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 dropna() method in Pandas removes all rows with any missing values by default.
2. Open office is a/an _____.
(a) documentation (b) spreadsheet
(c) presentation (d) office application suite
3. The return type of POWER( ) function is
(a) String (b) Date
(c) Numeric (d) None of these
4. _____ refers to stealing of required information by seeking and exploring weakness in a computer.
(a) Piracy (b) Hacking
(c) Digital Property Rights (d) Trademark
5. Method or function to add a new row in a DataFrame is
(a) .loc() (b) .iloc()
(c) join() (d) add()
6. The _____ translates Internet domain and host names to IP address.
(a) Domain Name System (DNS) (b) Routing Information Protocol (RIP)
(c) Internet Relay Chart (IRC) (d) Network Time Protocol (NTP)
Page 2 Sample Paper 06 NODIA APP
7. Bulk volume of calls/messages from looking to be authorised sources is an example of_____.
(a) cyber stalking (b) bullying
(c) IPR infringement (d) phishing
8. State whether the following statement is True or False:
In SQL, `DELETE` and `DROP` are used interchangeably to remove data from a table.
9. Given the code:
datastud=[[‘Shreya’, 20, 30],
[‘Rakhi’, 23, 50], [‘Priya’, 45, 90]]
dfs=pd.DataFrame(datastud)
The statement to add the column names Name’, ‘Eng’, ‘IP’ to the DataFrame will be
(a) dfs.fields= [‘Name’, ‘Eng’, ‘IP’]
(b) dfs.rows= [‘Name’, ‘Eng’, ‘IP’]
(c) dfs.columns=[‘Name’, ‘Eng’, ‘IP’]
(d) None of these
10. Write the output of the following SQL query.
SELECT INSTR(‘INTERNATIONAL’, ‘NA’);
(a) 5 (b) 6
(c) 11 (d) 2
11. _____ is not an e-Waste?
(a) Books (b) Laptop
(c) Monitor (d) Motherboard
12. A shareware is
(a) free of cost (c) has some restrictions for use
(b) freely available for a limited period (d) Both (b) and (c)
13. The savefig() function is _____.
(a) saves a DataFrame (b) saves a Series
(c) saves a panel (d) saves a graph
14. Which of the following performs a pre-defined task and returns some type of result?
(a) Database (b) SQL function
(c) Implementation (d) None of these
15. Which SQL function will give ‘MAHAL’ as output in the following query?
SELECT(UPPER(_____(“Taj Mahal”, 5));
(a) INSTR (b) STRING
(c) MID (d) SUB
Continue on next page.....
CBSC 12th Informatics Practices Sample Paper 06 Page 3
16. Match the following SQL functions with their purposes:
SQL Funtion Description
P DISTINCT 1. Groups rows based on a specific condition
Q LIMIT 2. Restricts the result to a certain number of rows..
R ORDER BY 3. Removes duplicate rows in the result.
S GROUP BY 4. Sorts the rows in ascending or descending order.
(a) P-3, Q-2, R-4, S-1 (b) P-2, Q-3, R-1, S-4
(c) P-4, Q-3, R-2, S-1 (d) P-2, Q-3, R-1, S-4
17. What will be the order of sorting in the following MySQL statement?
SELECT emp_id, emp_name from Employee order by emp_id, emp_name:
(a) Sorting { emp_id, emp_name} (b) Sorting {emp_name, emp_id}
(c) Sorting {emp_id} but not emp_name (d) None of these
18. A table “Transport” in a database has degree 3 and cardinality 8. What is the number of rows and columns
in it?
(a) 3, 8 (b) 8, 3
(c) 11, 5 (d) 5, 11
19. Which of the following proves a website to be authentic?
(a) Padlock (b) Digital certificate
(c) Starting with https:// (d) All of these
Directions (Q.Nos. 20-21) Assertion and Reason based Questions.
20. Assertion (A) : Data visualization refers to the graphical representation of information and data using visual
elements like charts, graphs and maps etc.
Reason (R) : To install matplotlib library, we can use the command pip install matplotlib.
(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.
21. Assertion (A) : The Internet is a world wide collection of networked computers, which are able to exchange
information with each other very quickly.
Reason (R) : A gateway is a device that connects dissimilar networks.
(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.
Continue on next page.....
Page 4 Sample Paper 06 NODIA APP
SECTION - B
22. Intellectual property right means that the person who produces the information is the only one who can use
that information. Now, explain the need of protecting intellectual property rights.
23. Rashmi is a travel agent, she has stored the data of all passengers in a table Travel(PNo, PName,TDate,Km,
Coach). She has given the following command to display the name of the traveller whose travel date is in
year 2016. She is encountering an error while executing the following query:
SELECT PName, TDate WHERE TDate= ‘2016’ FROM Travel;
Help her in identifying the reason of the error and write the correct query by suggesting the possible
correction(s).
24. Samadrita wants to find the outputs of the following queries using SUBSTR() and MOD() functions. Help
her to find the outputs.
(i) SELECT SUBSTR(“testcases”, –5, 3);
(ii) SELECT MOD(17.7, 3);
25. Complete the given Python code to concatenate the DataFrames ‘df1’ and ‘df2’ vertically and display the
resulting DataFrame.
import _____ as pd
df1 = pd.DataFrame({‘A’: [1, 2, 3,],
‘B’ : [4, 5, 6]
df2 = pd.DataFrame({‘A’: [7, 8, 9],
‘B’ : [10, 11, 12]})
result_df = pd._____(_____)
print (result_df)
26. Answer the following questions based on the Series given below
import pandas as pd
list1=[1,2,3,4,5,6,7,8]
list2=[‘swimming, ‘tt’, ‘skating’, ‘kho kho’, ‘bb’, ‘chess’, ‘football’,
‘cricket’]
school=pd.Series(list1.index=list2)
What will be the output of the following statements?
(a) print (school*2)
(b) print (school [“tt”])
27. The Python code written below has syntactical errors. Rewrite the correct code and underline the corrections
made.
import pandas as pd
data1 = {‘ID’: [1, 2, 3], ‘Name’:
[‘Riya’, ‘Preeti’, ‘Neeta’]}
data2 = [‘ID’: [3, 4, 5], ‘Age’ [22,
30, 40]}
df1 = Pd.DataFrame(data1)
df2 = Pd.DataFrame(data2)
result = Pd.merge(df1, df2, on=‘ID’,
how=inner)
print(result)
CBSC 12th Informatics Practices Sample Paper 06 Page 5
28. Define Voice over Internet Protocol (VoIP). Also, explain its one advantage.
o
Explain any two uses of the Internet.
SECTION - C
29. Write a Python code to create a DataFrame with appropriate column headings from the list given below:
[[P01, ‘Sachin Tendulkar’, ‘India’], [P02, ‘Brian Lara’, ‘West Indies’], [P03, ‘Wasim Akram’, ‘Pakistan’],[P04,
‘Adam Gilchrist’, Australia’]]
30. Consider the following table BOOK.
Table : BOOK
Code Title Author Publication Price
D001 Physics Vikas Sharma xxx 250
D002 Chemistry Preeti Goyal yyy 300
D003 Computer Science Swati Rana zzz 275
D004 English Sanjeev Jain aaa 150
D005 Mathematics Rajiv Rastogi bbb 400
Give the output of the following SQL commands on the basis of the above table BOOK.
(i) SELECT LEFT(Publication, 1) FROM BOOK WHERE Price>280;
(ii) SELECT LCASE(Author) FROM BOOK;
(iii) SELECT SUBSTR (Title, 2, 3) FROM BOOK WHERE Code = ‘D002’;
31. Consider the given table Order.
Table : Order
Orderno Orderdate CName Cloc Orders (in `) Payments (in `)
1 12/02/2008 Avlon Delhi 100000 90000
2 21/11/2008 Parason Jaipur 230000 230000
3 15/10/2008 Trident Raipur 120000 100000
4 13/01/2008 Avlon Jaipur 240000 240000
5 17/07/2008 Trident Delhi 340000 310000
6 16/06/2008 Nalco Chennai 140000 140000
Write the SQL statements for the following based on above table Order.
(i) Display the maximum and minimum orders placed for each city.
(ii) Find the average of Payments received by Cloc Jaipur.
(iii) List all orders given between 01/01/2008 to 12/10/2008
o
Which type of DIY SQL function accepts only numeric values? What is the use of such functions? Give the
name of some functions of that type.
Page 6 Sample Paper 06 NODIA APP
32. Sumit has to prepare a project on “Swachh Bharat Shreshth Bharat”. He decides to get information from
the Internet. He downloads three web pages (webpage1, webpage2, webpage3) containing information on
the given topic.
1. He reads a paragraph from webpage1 and rephrased it in his own words. He finally pasted the rephrased
paragraph in his project.
2. He downloaded three images from webpage2. He made a collage for his project using these images.
3. He also downloaded an icon from webpage3 and pasted it on the front page of his project report.
Now, answer the following questions based on above reading.
(i) Step 1 an example of _____.
(ii) Step 3 an act of _____.
(iii) The process of getting web pages, images and files from a web server to local computer is called
_____.
o
What is cyber stalking? Is cyber stalking a crime? How cyber stalking messages are different from ordinary
spam?
SECTION - D
33. Ms. Jennifer Christiano wants to create a DataFrame “Football” and perform some operations with it.
Football
Index Player Club Charges
0 Ronaldo AC Milan 9.6
1 Pele Real Madrid 10.5
2 Maradona Royal Argentina 19.5
(Assume pandas is imported as pd)
(a) Write the output for the following:
(i) Football[‘Charges’]/2
(ii) Football.size
(b) Help her to write the code for the following:
To set the index as ‘R’, ‘P’ and ‘M’, respectively for the three rows.
(c) To change index Label of Football from 0 to Zero and 1 to One.
(Option for part (c) only)
o
To make all the charges to 11.9
34. Army hospital Patna maintains the following table for its patients . They want certain outputs department
wise - like the average charges , total number of patients department wise etc. As a database programmer,
helps them to get the required outputs.
Table : Hospital
Patld Pname Dept Charges
P01 Amit ENT 5600
CBSC 12th Informatics Practices Sample Paper 06 Page 7
P02 Sunil Eye 7000
P03 Rina Ortho 2500
P04 Akash Ortho 9000
P05 Amitabh ENT 4000
P06 Preeti Ortho 5000
(i) Display each Dept and the total number of patients in each.
(ii) Display the department wise average Charges
(iii) Display the total number of unique departments.
(iv) Display the minimum Charges among patients whose name starts with “S” or “R”.
SECTION - E
35. “Anutulya Creations”-A start-up fashion house has set up its main centre at Kanpur, Uttar Pradesh for its
dress designing, production and dress supplying activities. It has 4 blocks of buildings:
Distance between the various blocks:
A to D 50 m
A to P 60 m
A to S 110 m
D to S 60 m
P to S 50 m
P to D 150 m
Number of computers in each block:
Block A 20
Block D 80
Block P 15
Block S 8
Page 8 Sample Paper 06 NODIA APP
Based on the above specifications, answer the following questions.
(i) Out of LAN, WAN and MAN, what type of network will be formed, if we interconnect different
computers of the campus? Justify.
(ii) Suggest the topology, which should be used to efficiently connect various blocks of buildings within
Kanpur centre for fast communication.
Also, draw the cable layout for the same.
(iii) Suggest the placement of the following device with justification.
(a) Repeater (b) Switch/Hub
(iv) Now-a-days, video-conferencing software is being used frequently by the company to discuss the product
details with the clients. Name any one video conferencing software.
Also, mention the protocol which is used internally in video conferencing software.
(v) Suggest the suitable place (BLOCK) to house the server, with a suitable reason.
36. Carefully, observe the following table named ‘Stock’.
Table : Stock
Pid PName Category Qty Price
1 Keyboard IO 15 450
2 Mouse IO 10 350
3 Wifi-router NW 5 2600
4 Switch NW 3 3000
5 Monitor O 10 4500
6 Printer O 4 17000
Write SQL queries for the following
(i) To display the records in decreasing order of Price.
(ii) To display Category and category wise total Quantities of products.
(iii) To display the Category and its average Price.
(iv) To display Category and category wise highest Price of the products.
(v) To display product names of the items with price below 200 and quantity less than 5.
o
Briefly explain the purpose of the following SQL functions.
(i) POWER ()
(ii) MOD ()
(iii) NOW ()
(iv) MONTH ()
(v) LENGTH ()
37. Write a Pandas program to sort the DataFrame first by Name in descending order, then by ‘Score’ in
ascending order.
Sample DataFrame :
exam_data={‘Name’: [‘Abhi’, ‘Chirag’,
‘Tarun’, ‘Anjali’, ‘Mahi’, ‘Tushar’,
‘Shubham’, ‘Harsh’, ‘Vanshika’,
‘Kartik’]
‘Score’:[12.5,9,16.5,np.Nan,9,20,
CBSC 12th Informatics Practices Sample Paper 06 Page 9
14.5,np.NaN,8,19],
‘Attempts’:[1,3,2,3,2,3,1,1,2,1],
‘Qualify’ : [‘Yes’, ‘No’, ‘Yes’, ‘No’, ‘No’, ‘Yes’, ‘Yes’, ‘No’, ‘No’, ‘Yes’]}
labels = [‘a’, ‘b’, ‘c’, ‘d’, ‘e’,
‘f’, ‘g’, ‘h’, ‘i’, ‘j’]
o
Python provides the facility to draw multiple bar charts in same plot. Shrey used this feature and made
multiple bar charts in same plot but by mistake the code of graph has deleted. Now, help him to write the
code of given graph.
EN