You are on page 1of 8

नवोदय िव ालय सिमित

NAVODAYA VI DYAL AYA SAMI TI


PRE-BOARD–II EXAMINATION :: 2022–23
Class : XII Time : 3 Hrs
Subject : Informatics Practices (065) Max. Marks : 70
General Instructions:
1. This question paper contains five sections, Section A to E.
2. All questions are compulsory.
3. Section A has 18 questions carrying 01 mark each.
4. Section B has 07 Very Short Answer type questions carrying 02 marks each.
5. Section C has 05 Short Answer type questions carrying 03 marks each.
6. Section D has 03 Long Answer type questions carrying 05 marks each.
7. Section E has 02 questions carrying 04 marks each. One internal choice is given in Q34 &
Q35 against part (iii) only.
8. All programming questions are to be answered using Python Language only.

SECTION – A
1 A set of rules that decide the functioning of a network is called ______________? 1M
(i) Syntax
(ii) Topology
(iii) URL
(iv) Protocol

2 Mas. Mokshith found that his hard disk got corrupted and unable to use. Which is 1 M
a good task to be done, from the following?
(i) Burn the hard disk for destroying
(ii) Handover it to a certified e–waste recycler
(iii) Simply throw it away like a general waste at home
(iv) Bury it after breaking into pieces

3 The “Nike” brand holds a Trademark for their Shoe and Cloth products. Can a 1 M
newly launching note book company apply and get Trademark for “Nike”?
(i) Yes
(ii) No
(iii) May be
(iv) Not Sure

4 What is meaning of NULL in MySQL? 1M


(i) 0
(ii) Empty String
(iii) False
(iv) None of these

5 Which of the following returns the number of rows in a MySQL table? 1M


(i) COUNTROWS(ALL)
(ii) COUNT(ALL)
(iii) COUNT(*)
(iv) COUNTROWS(*)

6 Which of the following is not a “Device Safety technique of Computer System”? 1M


(i) Regularly cleaning using a liquid solution specifically formulated for cleaning
of electronic screens
(ii) Wipe monitor’s screen often using the regular microfiber soft cloth
(iii) Keep the device such that direct sun light falls on the computer
(iv) Avoid eating food or drinking something very much near to device
-2-
7 Consider the following MySQL table “Result” 1M
Name Marks
A 45
B 84
C 62
What will be the output of the following statement
SSELECT POW(2,3) FROM Marks;
(i) POW(2,3)
81
(ii) POW(2,3)
81
81
81
(iii) POW(2,3)
8
8
8
(iv) POW(2,3)
8
8 What is the output of the following MySQL query? 1M
SELECT CONCAT (8,4);
(i) Results in Error
(ii) 84
(iii) EIGHTFOUR
(iv) 12
9 Identify the odd one from the following 1M
(i) SUBSTR( )
(ii) SUBSTRING( )
(iii) MID( )
(iv) INSTR( )
10 What will be the output for the following Python code 1M
import pandas as pd
s=pd.Series([5,10,15,20],[1,2,3,4])
print(s*s)
(i) 1 25
4 100
9 225
16 400
(ii) 1 5
4 10
9 15
16 20
(iii) 1 25
2 100
3 225
4 400
(iv) 1 5
2 10
3 15
4 20
-3-

11 Which of the following command is used to install Pandas? 1M


(i) pip install python pandas
(ii) pip install pandas
(iii) python install pandas
(iv) pandas install python

12 Ritika is a new learner for the Python Pandas, and she is aware of some concepts 1 M
of python. She has created some lists using the following code
import pandas as pd
Name = ['Manpreet', 'Kavil', 'Manu', 'Ria']
Phy = [70, 60, 76, 89]
Chem = [30, 70, 50, 65]
But she is unable to create the dataframe from the same. She wants a dataframe df
like below is to be created
Name Phy Chem
0 Manpreet 70 30
1 Kavil 60 70
2 Manu 76 50
3 Ria 89 65
Help her by identifying the correct statement which will create the dataframe.

(i) df = pd.DataFrame({'Name' : Name, 'Phy' : Phy, 'Chem' : Chem})


(ii) df = pd.DataFrame(data = ('Name' : Name, 'Phy' : Phy, 'Chem' : Chem))
(iii) df = pd.DataFrame([Name, Phy, Chem], columns = ['Name', 'Phy', 'Chem',
'Total'])
(iv) df = pd.DataFrame({Name : 'Name', Phy : 'Phy', Chem : 'Chem' })

13 Which of the following is NOT correct 1M


(i) A website is container of webpages
(ii) A webpage is container of websites
(iii) A hyperlink connects one webpage with another
(iv) A website name can also be called as URL

14 The _______________ clause is used to sort the records of a MySQL table in 1 M


________________ keyword is used to sort in ascending order
(i) SORT BY, ASC
(ii) ORDER BY, ASCEND
(iii) SORT BY, ASCEND
(iv) ORDER BY, ASC

15 The trail of online activities that a person leave while being online is called as ___? 1 M
(i) Digital Society
(ii) Data Protection
(iii) Intellectual Property
(iv) Digital Footprint

16 Mas. Sridhar is using WhatsApp to make a voice call to his friend. Which protocol 1 M
will be used internally for this?
(i) File Transfer Protocol
(ii) Simple Mail Transfer Protocol
(iii) Voice Over Internet Protocol
(iv) Post Office Protocol
-4-
Q17 and 18 are ASSERTION AND REASONING based questions. Mark the correct choice as
i. Both A and R are true and R is the correct explanation for A
ii. Both A and R are true and R is not the correct explanation for A
iii. A is True but R is False
iv. A is false but R is True
17 Assertion (A):– Cyber crime is not a criminal crime 1M

Reason (R):– The Information Technology Act, 2000 was enacted to provide legal
recognition to e–commerce and electronic transactions

18 Assertion (A):– The default number of bars in a histogram is 10 1M

Reason (R):– By default, the bars in a histogram will be separated by a different


color other than bar color

SECTION – B
19 Cite the difference between Add–on and Plug–in with an example each? 2M
OR
Give one advantage of Bus topology over Star topology and one advantage of Star
topology over bus topology

20 Kum. Sireesha developed an application that accepts data from user. In the 2M
application while inputting name of user, one can enter some textual data that can
include spaces also.

While saving the data into a database, she wants to convert the name of user, if
inputted in mixed case, into a single case i.e. either uppercase or lowercase. Also,
she wants to remove any spaces, if inputted, at the beginning and ending of name.
Suggest her two functions for the mentioned purposes.

21 There was a table called EMP with a column EName in it. The following two 2M
statements producing the different outputs as mentioned against them.

Statement Output
SELECT COUNT(EName) FROM Emp; 5
SELECT COUNT(*) from Emp; 8

What may be the possible reason?

22 Consider the following Series object namely ‘Sales’ and answer the questions that 2M
follow
TV 450
Oven 250
AC 345
Computer 280
(a) Write a Python statement to display those products whose sales are more than
300
(b) Write a Python statement to name the index of the series as “ProductName”

23 Define the term “Plagiarism” 2M


OR
Define the term ‘Netizen’? Mention two etiquettes to be followed by a netizen
-5-
24 Kum. Pragya had written the following code for plotting a line chart 2M
import matplotlib.pyplot as plt
y_temp=[36,41,24,43,32,38,36]
plt.plot(y_temp)
plt.xlabel("Day")
plt.ylabel("Temperature")
plt.title("Temperatures in a Week")
plt.show()
In this code, by mistake she provided only one list for plotting line chart. Do this
generate any error? Justify your answer.

25 Consider the below dataframe ‘studentdf’ 2M


SNo SName SClass
0 111 Sudha 10
1 112 Krishna 11
2 113 Suhas 12
Answer the following:
(a) What will be the output of the following Python statement?
print(studentdf.dtypes)
(b) Write a Python statement to interchange the position of row indices and
column labels
SECTION – C
26 Write output for the following queries: 3M
(a) SELECT MOD(ROUND(13.9), 3);
(b) SELECT DAYOFYEAR('2022-02-05');
(c) SELECT INSTR("I SAW A SAW, SUCH A SAW I NEVER SAW",
"SAW");

27 lst=[{'a':10,'b':20},{'a':5,'b':10,'c':20}] 3M
df=pnds.DataFrame(lst)
Based on the above code, answer the below questions
(a) How many rows and columns will be present in the dataframe df?
(b) How many NaNs will be present in the dataframe df?
(c) Write a suitable missing import statement for the code

28 Distinguish between iterrows( ) and iteritems( ). With which Data Structure these 3M
functions are used?

29 Explain three feasible methods of e–waste management? 3M


OR
What is Identity Theft? How one can protect his/her identity in digital world?

30 Consider the following table Order, and answer the questions that follow 3M
OrderID OrderDate SalesPerson OrderAmount
101 2015–08–14 Ravi Kiran 45000
102 2015–09–22 Sumanth 24000
103 2015–01–11 Vinay Kumar 36000
104 2016–09–12 Tharun Kumar 62000
105 2016–10–11 Sonu 50000
-6-
(a) Write a query to display the OrderId and OrderAmount in descending order
of order amount
(b) Write a query to display the average order amount?
(c) Write output for the following query
SELECT LEFT(OrderAmount,3) FROM OrderAmount;
OR
Explain the difference between WHERE and HAVING clauses with an example

SECTION – D
31 In MySQL, mention 5M
(a) Two functions that accepts string as input and returns an integer as output
(b) Two functions that accepts date input and returns numeric output
(c) A function that counts distinct values in a column of a table
(d) Two aggregate functions that ignores NULL values
(e) One function and one operator that gives remainder after performing
operation
OR
Consider the following table named ‘Garment’. Write commands of MySQL for
(a) to (c) and output for (d) and (e)
GCODE GNAME SIZE COLOUR PRICE
111 Tshirt XL Red 1400.00
112 Jeans L Blue 1600.50
113 Skirt M Black 1100.00
114 Jacket XL Blue 4000.25
115 Trousers L Brown 1500.00
116 LadiesTop L Pink 1200.00
Write queries to:
(a) Display the sum of prices of garments colour–wise?
(b) Display the average price of garments whose size is XL?
(c) Display the lowest and highest price of garments?
Write output to:
(d) SELECT ROUND(PRICE) FROM Garments;
(e) SELECT CONCAT(COLOUR,GNAME) FROM Garments;

32 The Manufacturing Branch of Bharath Chemicals at Pune is having four units 5M


namely, Research Lab, Development Unit, Back Office and Sales Office. Its
head-quarters is located at Delhi. It also has Sales Offices at Pune, Maval and
Daund. The rough layout is as follows
Manufacturing Branch at Pune
Head Research
Quarters, Develop
ment Lab
Delhi

Back
Sales Office
Office

Sales Sales
Office at Office at
Maval Daund
-7-

Approximate distance between the blocks is as follows:


Research Lab to Back Office 100 m
Research Lab to Development Unit 25 m
Research Lab to Sales Office at Pune 85 m
Pune to Delhi 1460 km
Pune to Maval 65 km
Pune to Daund 110 km
Number of computers in the different blocks:
Research Lab 150
Development Unit 95
Back Office 75
(a) Draw a most suitable cable layout for connecting the four blocks at Pune
(b) Suggest the most appropriate location of the server to be placed, out of four
blocks at Pune. Justify your answer
(c) The Sales Offices at Pune, Maval and Daund have been connected in a
network. Mention the type of network formed in this case?
(i) LAN
(ii) MAN
(iii) PAN
(iv) WAN
(d) Suggest a device to form network among four units of Manufacturing
Branch at Pune
(e) Which of the following transmission medium is most suitable to connect
Head Quarters, Delhi with Manufacturing Unit, Pune
(i) UTP Cable
(ii) Co-axial Cable
(iii) Satellite Link
(iv) Microwave
33 During a survey the age of 20 people has been recorded like below 5M
45, 24, 32, 18, 25, 54, 76, 33, 53, 20, 14, 65, 10, 28, 44, 52, 46, 30, 36, 28
Write a Python program to plot and display a Histogram for the above data with
following customization of plot
(a) Total number of bars in histogram = 8
(b) Fill color of bars = yellow
(c) x–axis label = Class Interval of Age
(d) y–axis label = Frequency
(e) Plot title = Histogram for frequency distribution of age of 20 people
OR
Write a Python program to plot and display the following chart
-8-

SECTION – E
34 Considering the following table answer the queries that follow
Table: Teacher
No Name DOB Department JoinDate Salary Sex
1 Sachin 1993–04–15 English 2016–05–21 8000.25 M
2 Kiran 1999–05–05 Accountancy 2020–04–15 NULL F
3 Ritu 1990–12–10 Physics 2015–08–29 9000.95 F
4 Kumar 1984–06–04 Accountancy 2016–09–10 10000.00 M

(i) Write a query to display the highest salary among the salaries of all the 1M
teachers?

(ii) Write a query to count the different departments available? 1M

(iii) Write a query to display the year of retirement of teachers, assuming that the 2M
retirement age is 60 years

OR (Choice for 34(iii) Only)

Write a query to display details of those teachers who joined in the year
2016?

35 Given a DataFrame “InfantMortality” as below:


2019 2020 2021 2022
India 30.924 29.848 28.77 27.70
America 5.748 5.681 5.61 5.55
Australia 3.032 2.957 2.88 2.81
China 9.595 9.295 9.00 8.70

Write Python statements to:


(i) Write the output of the following statement 1M
InfantMortality.iloc[1:3, :2]

(ii) Write a Python statement to rename the row label ‘America’ to ‘USA’ 1M

(iii) Write a Python statement to calculate the difference of mortality of the years 2M
2019 and 2022 for the country India

OR (Choice for 35(iii) only)

Write a Python statement to delete the row data with country ‘Australia’

You might also like