You are on page 1of 6

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

NAVODAYA VI DYAL AYA SAMI TI


PRE-BOARD–II EXAMINATION :: 2022–23
Class : XII Time : 3 Hrs
Subject : Informatics Practices (065) Max. Marks : 70

Note: For MySQL outputs, full marks may be awarded, even if the column name was not written

SECTION – A
1 (iv) Protocol 1M

2 (ii) Handover it to a certified e–waste recycler 1M

3 (i) Yes 1M

4 (iv) None of these 1M

5 (iii) COUNT(*) 1M

6 (iii) Keep the device such that direct sun light falls on the computer 1M

7 (iii) POW(2,3) 1M
8
8
8
8 (ii) 84 1M

9 (iv) INSTR( ) 1M

10 (iii) 1 25 1M
2 100
3 225
4 400
11 (ii) pip install pandas 1 M

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

13 (ii) A webpage is container of websites 1M

14 (iv) ORDER BY, ASC 1M

15 (iv) Digital Footprint 1M

16 (iii) Voice Over Internet Protocol 1M

17 (iv) A is False but R is True 1M

18 (iii) A is True but R is False 1M


-2-

SECTION – B

19 Difference – 1 M, Example – 1 M

Add–On is like regular app or program, but only run when the browser runs.
These will be installed and used for a specific purpose such as, taking Google Meet
attendance, converting webpage to PDF, downloading files etc.

Plug–in allows a web browser to display additional content it was not originally
designed to display. An example of a plug–in is the free Macromedia Flash
Player, which allows the web browser to display animations using the Flash format

OR

Advantage of Bus topology over Star topology – 1 M


Advantage of Star topology over Bus topology – 1 M

Bus topology consumes less cable length where as Star topology requires more
cable length
Data Transmission is faster in Star topology compared to Bus topology

Or any valid advantage

20 For case conversion function to be used is LCASE( ) OR UCASE( ) – 1 M


To remove spaces function is TRIM( ) – 1 M

21 For valid reason reflecting that the EName column of table Emp has NULL values
–2M

Reason: The column EName has three NULLs. COUNT(*) returns counts
including NULLs in the table but COUNT(EName) counts excluding NULLs and
hence the two statements producing different outputs

22 (a) print(Sales[Sales>300]) – 1M

(b) Sales.index.name="ProductName" – 1 M

23 Definition of Plagiarism –2M


Presenting someone else’s idea or work as one’s own idea or work is called
plagiarism.

OR

Definition – 1 M
Anyone who uses digital technology along with Internet is a digital citizen or a
netizen.

Any two etiquettes to be followed – 1 M


Net Etiquettes (Be Ethical, Be Respectful, Be Responsible),
Communication Etiquettes (Be Precise, Be Polite, Be Credible),
Social Media Etiquettes(Be Secure, Be Reliable)

Any two valid etiquettes should be awarded marks even if not present in the above
list
-3-

24 No error will be generated – 1 M

For justification – 1 M
Justification: On x–axis the default labels 0, 1, 2, 3, 4, 5, 6 will be displayed

25 (a) SNo int64 1M


SName object
SClass int64

(b) studentdf.T 1M

SECTION – C
26 (a) SELECT MOD(ROUND(13.9), 3); 1M
2

(b) DAYOFYEAR('2022-02-05') 1M
36

(c) INSTR("I SAW A SAW, SUCH A SAW I NEVER SAW", "SAW") 1M


3

27 (a) 2 rows and 3 columns – ½+½ Mark

(b) 1 NaN – 1 Mark

(c) import pandas as pnds – 1 Mark

28 For difference between iterrows( ) and iteriems( ) – 2 M


Difference: The iterrows( ) function is used to iterate over row data where as
iteritems( ) function is used to iterate over column data of dataframe

For Mentioning data structure name correctly – 1 M


These functions are used with DataFrame

29 Explanation of Reduce, Reuse, Recycle methods of e–waste management


Or any other three valid methods of e–waste management
One Mark for each feasible method

OR

Definition or explanation of Identity Theft –2M


The fraudulent practice of gaining others data of identity such as photo, name,
account number and other personal information unlawfully for misuse

At least one way of protecting identity – 1 M


Do not share personal information which is not essential
Restrict visibility of posts or profile friends or friends of friends and make not
visible to public
Post group photos instead of single person photos on social media
-4-
30 (a) SELECT OrderID, OrderAmount FROM Order ORDER BY OrderAmount
DESC; –1M
(b) SELECT AVG(OrderAmount) FROM OrderAmount; –1M
(c) LEFT(OrderAmount,3)
450
240
360
620
500

OR

For difference between WHERE and HAVING clauses – 2 M


Difference between WHERE and HAVING: The WHERE clause is used to put
a condition on individual row of a table where as HAVING is used to put condition
on individual group formed by GROUP BY clause in a SELECT statement.

Valid Example (Only queries without giving table data also should be considered)
–1M

SECTION – D
31 (a) Any two valid functions names (no explanation required) – 1 M
LENGTH( ), INSTR( ), ASCII( ) etc.
(b) Any two valid functions names (no explanation required) – 1 M
DAY( ), MONTH( ), YEAR( ), DAYOFMONTH( ), DAYOFWEEK( ),
DAYOFYEAR( ) etc.
(c) COUNT( ) –1M
(d) Any two valid functions names (no explanation required) – 1 M
SUM( ), AVG( ), MIN( ), MAX( ), COUNT(*) etc.
(e) Function MOD( ) – ½ Mark
Operator % – ½ Mark
OR
1 Mark for each query and output

(a) SELECT SUM(Price) FROM Garment GROUP BY COLOUR;


(b) SELECT AVG(Price) from Garment GROUP BY Size HAVING Size='XL';
OR
SELECT AVG(Price) from Garment WHERE Size='XL';
(c) SELECT MAX(Price), MIN(Price) FROM Garment;

(d)
ROUND(PRICE)
1400
1601
1100
4000
1500
1200
-5-

(e)
CONCAT(COLOUR,GNAME)
RedTshirt
BlueJeans
BlackSkirt
BlueJacket
BrownTrousers
PinkLadies Top

32 (a) 1M

Develop Research
ment Lab

Sales
Office
Back
Office

(b) Server to be placed in Research Lab as number computers are maximum 1M


(c) (ii) MAN 1M
(d) Hub / Switch 1M
(e) (iii) Satellite Link 1M

33 import matplotlib.pyplot as plt ½M


½M
age=[45, 24, 32, 18, 25, 54, 76, 33, 53, 20, 14, 65, 10, 28, 44, 52, 46, 30, 36, 28]

plt.hist(age, bins=8, color='yellow') 2M

plt.xlabel('Class Interval of Age') ½M


plt.ylabel('Frequency) ½M

plt.show( ) 1M

OR

import matplotlib.pyplot as plt 1M

x_mag=[5, 10, 15, 20, 25, 30] 1M


y_fov=[180, 120, 80, 60, 40, 230]

plt.plot(x_mag,y_fov,marker=".",markersize="10") 1M

plt.xlabel("Magnification") 1M
plt.ylabel("Field of View")
plt.title("Best in Class - Field of View Vs Magnification")

plt.show() 1M
-6-

SECTION – E
34 (i) SELECT MAX(Salary) FROM Teacher; 1M

(ii) SELECT COUNT(DISTINCT Department) FROM Teacher; 1M

(iii) SELECT YEAR(DOB)+60 FROM Teacher; 2M

OR

SELECT * FROM Teacher WHERE YEAR(JoinDate)=2016; 2M

35 (i) 2019 2020 1M


America 5.748 5.681
Australia 3.302 2.957

(ii) InfantMortality.rename(index={'America' : 'USA'}) 1M


Or
InfantMortality.rename(index={'America' : 'USA'},inplace=True)

(iii) print(InfantMortality[2019]['India']-InfantMortality[2022]['India']) 2M
(Any valid accessing of elements should be considered)

OR

InfantMortality.drop('Australia') 2M
Or
InfantMortality.drop('Australia',axis=0)
Or
InfantMortality.drop('Australia',axis=0,inplace=True)
Or
InfantMortality.drop('Australia',inplace=True)

You might also like