Download as pdf or txt
Download as pdf or txt
You are on page 1of 9

Downloaded from www.tutorialaicsip.

com
Answer Key Sample Paper 2
1
Subject: Informatics Practices (065) Class 12
Time: 3:00 Hours Max. Marks: 70
General Instructions
1. This question paper contains five sections, Section A to E.
2. All questions are compulsory.
3. Section A have 18 questions carrying 01 mark each.
4. Section B has 07 Very Short Answer 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 Q35 against part c only.
8. All programming questions are to be answered in Python Language only.
Section –A
1. c) WAN
2. d) Plagiarism
3. c) Central Pollution Control Board (CPCB)
4. c) Avg
5. a) 0
6. b) Public
7. b) SELECT COUNT(DISTINCT CITY) FROM BANK;
8. a) sum
9. b) S.head(10)
10. b) from pandas import DataFrame
11. d) Sum()
12. a) read_csv()
13. d) All of these
14. b) Length()
15. d) All of these
16. a) Licensing
17. a) Both A and R are true and R is the correct explanation for A
18. c) A is True R is False (by considering matplotlib spelling)

Subscribe YouTube: @TutorialAICSIP | Follow on Insta: @TutorialAICSIP


Downloaded from www.tutorialaicsip.com

Section B
19. Steps for hosting a website are as follows
i) Select the web hosting service provider that will provide the web server space as
well as related technologies and services such as database, bandwidth, data
backup, firewall support, email service, etc. This has to be done keeping in mind the
features and services that we want to offer through our website.
ii) Identify a domain name, which best suits our requirement, and get it registered
through domain name Registrar.
iii) Once we get web space, create logins with appropriate rights and note down IP
address to manage web space.
iv) Upload the files in properly organised folders on the allocated space.
v) Get domain name mapped to the IP address of the web server.
(Reference: NCERT Textbook IP Class XII Pg.No:157-158)
OR
Based on geographical area coverage network types are as follows:
i) LAN
✓ It is a network that connects computers, mobile phones, tablet, mouse,
printer, etc., placed at a limited distance.
✓ The geographical area covered by a LAN can range from a single room, a
floor, an office having one or more buildings in the same premise,
laboratory, a school, college, or university campus.
✓ The connectivity is done by means of wires, Ethernet cables, fibre optics,
or Wi-Fi.
✓ LAN is comparatively secure as only authentic users in the network can
access other computers or shared resources.
✓ These types of networks can be extended up to 1 km.
✓ Data transfer in LAN is quite high, and usually varies from 10 Mbps (called
Ethernet) to 1000 Mbps (called Gigabit Ethernet), where Mbps stands for
Megabits per second.
ii) MAN
✓ Metropolitan Area Network (MAN) is an extended form of LAN which covers a
larger geographical area like a city or a town.
✓ Data transfer rate in MAN also ranges in Mbps, but it is considerably less as
compared to LAN.

Subscribe YouTube: @TutorialAICSIP | Follow on Insta: @TutorialAICSIP


Downloaded from www.tutorialaicsip.com
✓ Cable TV network or cable based broadband internet services are examples of
MAN.
✓ This kind of network can be extended up to 30–40 km.
✓ Sometimes, many LANs are connected together to form MAN.
iii) WAN
✓ Wide Area Network (WAN) connects computers and others LANs and MANs, which
are spread across different geographical locations of a country or in different
countries or continents.
✓ A WAN could be formed by connecting a LAN to other LANs via wired or wireless
media.
✓ Large business, educational and government organisations connect their different
branches in different locations across the world through WAN.
✓ The Internet is the largest WAN that connects billions of computers, smartphones
and millions of LANs from different continents.
(Reference: NCERT Textbook IP Class XII Pg.No:140-142)
20. As where clause is used with group by which is not correct. With group by clause
having clause is required. The correct statement is as follows:
SELECT CLASS,MAX(MARKS) FROM STUDENT
GROUP BY CLASS HAVING CLASS>8;
21. It groups the rows together that contain the same values in a specified column.
We can use the aggregate functions (COUNT,MAX, MIN, AVG and SUM) to work on
the grouped values. HAVING Clause in SQL is used to specify conditions on the
rows with GROUP BY clause.
Example: SELECT CLASS,MAX(MARKS) FROM STUDENT GROUP BY CLASS
(Reference: NCERT Textbook IP Class XII Pg.No:14)
22.
import pandas as pd
import numpy as np
arr=np.array(['Delhi','Thimphu','Ottawa','Cairo','Paris'])
s=pd.Series(arr,index=['India','Bhutan','Canada','Egypt','France'])
print(s)
23. E-waste management is the efficient disposal of e-waste. management are
reduce, reuse and recycle.
a) Reduce:

Subscribe YouTube: @TutorialAICSIP | Follow on Insta: @TutorialAICSIP


Downloaded from www.tutorialaicsip.com
✓ We should try to reduce the generation of e-waste by purchasing the electronic
or electrical devices only according to our need.
✓ They should be used to their maximum capacity and discarded only after their
useful life has ended.
✓ Good maintenance of electronics devices also increases the life of the devices.
b) Reuse:
✓ It is the process of re-using the electronic or electric waste after slight
modification.
✓ The electronic equipment that is still functioning should be donated or sold to
someone who is still willing to use it. The process of re-selling old electronic
goods at lower prices is called refurbishing.
c) Recycle:
✓ Recycling is the process of conversion of electronic devices into something that
can be used again and again in some or the other manner.
✓ Only those products should be recycled that cannot be repaired, refurbished or
re-used.
✓ To promote recycling of e-waste many companies and NGOs are providing
door-to-door pick up facilities for collecting the e-waste from homes and
offices.
(Reference: NCERT Textbook IP Class XII Pg.No:185)
OR
✓ Intellectual Property refers to the inventions, literary and artistic expressions,
designs and symbols, names and logos.
✓ The ownership of such concepts lies with the creator, or the holder of the
intellectual property.
✓ This enables the creator or copyright owner to earn recognition or financial
benefit by using their creation or invention.
✓ Intellectual Property is legally protected through copyrights, patents,
trademarks, etc.
(Reference: NCERT Textbook IP Class XII Pg.No:175)
24. 2 4
4 16
dtype: int64
25. i) df.clomuns or df.keys() or sorted(df)
ii) df.index

Subscribe YouTube: @TutorialAICSIP | Follow on Insta: @TutorialAICSIP


Downloaded from www.tutorialaicsip.com

Section C
26.
i) substr(accno,3,2) city
-------------------- --------------------
13 Srinagar
15 Delhi
10 Jammu
ii) round(balance) aname
--------------------- ------------------
1000.7 Ramesh
9025.8 Suresh
7061.6 Kashish
iii) year(lastupdateon) accno
------------------------- ----------------
2022 101011
2022 101316
2022 101512
2022 101011
27. import pandas as pd
d={'Virat':[1000,962,1035],'Rohit':[635,580,602],'Surya':[1200,1008,1258]}
df=pd.DataFrame(d,index=['Year1','Year2','Year3'])
print(df)
28. i) df[‘debt’]=10 or df.loc[:,’debt’]=10 or df.insert(3,'debt',10) or
df=df.assign(debt=10) or df.at[:,'debt']=10
ii) df.loc[len(df.index)]=[None,'MP',10.5] or
df=df.append({'Year':np.NaN,'State':'MP','Population':10.5},ignore_index=True)
or
d1={'Year':[np.NaN],'State':['MP'],'Population':[10.5]}
df1=pd.DataFrame(d1)
df=pd.concat([df,df1],ignore_index=True)
df.reset_index()
iii) del df[‘debt’] or df=df.drop('debt',axis=1) or df=df.drop(columns='debt') or
df.pop('debt')
29. i) Financial Identity theft or phishing

Subscribe YouTube: @TutorialAICSIP | Follow on Insta: @TutorialAICSIP


Downloaded from www.tutorialaicsip.com
ii) Immediately she should report to the bank and apply for new debit card by
requesting older one to deactivate
iii) The Government of India’s The Information Technology Act, 2000 (also known
as IT Act), amended in 2008, provides guidelines to the user on the processing,
storage and transmission of sensitive information.
(Reference: NCERT Textbook IP Class XII Pg.No:182)
OR
✓ Criminal activities or offences carried out in a digital environment can be
considered as cyber crime. In such crimes, either the computer itself is the
target or the computer is used as a tool to commit a crime.
✓ Hacking, ransomware attacks, denial-of-service, phishing, email fraud, banking
fraud, identity theft are few cyber crimes.
✓ The Indian Information Technology Act 2000 amended in 2008 guards Indian
citizens against cyber crime.
(Reference: NCERT Textbook IP Class XII Pg.No:182)
30. i) select gender, count(*) from student group by gender;
ii) select gender, min(weight) from student group by gender;
iii) select class, max(height) from student group by class;
OR
✓ Aggregate functions are also called multiple row functions.
✓ These functions work on a set of records as a whole, and return a single value
for each column of the records on which the function is applied.
✓ The aggregate functions are as follows:
o max : example: select max(sal) from emp;
o min : example: select min(age) from student;
o sum : example: select sum(sal) from emp
o avg : example: select avg(marks) from student;
31. (i) select substr(‘INFORMATICS’,5,3); or select mid(‘INOFRMATICS’,5,3);
(ii) select instr(‘HELLOW WORLD’,’WORLD’);
(iii) select round(23.52,0);
(iv) select mod(50,3);
(V) select ltrim(name) from student;
OR
(i) LCASE(): This function is used to convert the specified text into small letters.
Ex.: select lcase(‘IP’) will return ip

Subscribe YouTube: @TutorialAICSIP | Follow on Insta: @TutorialAICSIP


Downloaded from www.tutorialaicsip.com
(ii) TRIM(): This function extra leading and trailing spaces from the specified text.
Ex.: select trim(‘ Hello ’) will return “Hello”
(iii) INSTR(): This function will return the position of first occurrence of specified
word from the given text.
Ex.: select instr(‘Informatics Practice’,’form’) will return 3
(iv) MONTHNAME(): This function will return name of the month of specified text.
Ex.: select monthname(now()) will return “December” (Today:10/12/2022)
(v) MOD(): This will returns remainder after dividing the number.
Ex.: select mod(34,3) will return 1
32. (i) HR Block because it has more number of computers
(ii)

Switch Switch

Repeater Repeater

Switch

(iii) Switch
(iv) Firewall will be placed into server room (HR Block)
(v) By connecting Delhi and Chandigarh office it would be WAN

Subscribe YouTube: @TutorialAICSIP | Follow on Insta: @TutorialAICSIP


Downloaded from www.tutorialaicsip.com
33.
import matplotlib.pyplot as plt
book=['Maths','IP','Accounts']
qty=[60,40,72]
plt.bar(book,qty)
plt.title("Books in library")
plt.xlabel("Books")
plt.ylabel("Number of Books")
plt.savefig("Books.jpg")
plt.show()
OR
import matplotlib.pyplot as plt
Innings = [1,2,3,4,5]
Runs = [102,88,98,146,52]
plt.plot(Innings,Runs)
plt.show()
34. (i) select invoiceno,monthname(saledate) from sale;
(ii) select max(saleprice) from sale;
(iii) select * from sale order by saleprice desc;
OR
Select paymentmode, count(*) from sale group by paymentmode;
35.
a) (i) (3,3)
(ii) Accountancy Economics IP
Karan 87 89 87
Tarun 95 88 97
b) print(df.loc[['Ayush','Tarun'],:]) or print(df.iloc[[0,2]])
OR
df['Total']=df.Accountancy+df.Economics+df.IP or
df.loc[:,'Total']=df.Accountancy+df.Economics+df.IP or
df.at[:,'Total']=df.Accountancy+df.Economics+df.IP or
df.insert(3,'Total',df.Accountancy+df.Economics+df.IP)
-------------X-----------------

Follow this link for more Question Papers:

Subscribe YouTube: @TutorialAICSIP | Follow on Insta: @TutorialAICSIP


Downloaded from www.tutorialaicsip.com

Download IP Sample Papers for 2023

For note & question bank follow this link:


Download PDF for complete notes

Thank You

Subscribe YouTube: @TutorialAICSIP | Follow on Insta: @TutorialAICSIP

You might also like