12 IP PP2 MS
12 IP PP2 MS
12. Which protocol allow us to have voice and video calls over the internet? 1
(A) HTTP (B) VoIP
(C) VideoChat (D) SMTP
13. Given a Pandas series called Marks, the command which will display the 1
last 2 rows is :
A. print(Marks.tail(2))
B. print(Marks.Tail(2))
C. print(Marks.tails(3)
D. iv. print(Marks.tail())
14. Which of the following is not done by cyber criminals? 1
(A) Unauthorized account access
(B) Mass attack using Trojans as botnets
(C) Email spoofing and spamming
(D) Report vulnerability in any system
15. To create an empty Series object, you can use: 1
(a) pd.Series(empty)
(b) pd.Series( )
(c) pd.Series(np.NaN)
(d) all of these
16. Which MySQL function returns the week day name corresponding to Date 1
value supplied as argument.
(A) weekday()
(B)dayname()
(C)dayofweek()
(D)weekofday()
17. In Pandas which of the following dataframe attribute can be used to know 1
the number of rows and columns in a dataframe
a. size
b. index
c. count
d. shape
18. In order to draw charts in Python, which of the following statement will be 1
used:
(A) import pyplot.matplotlib as pl
(B) import matplotlib.pyplot as plt
(C) Import matplotlib.pyplot as plt
(D) import pyplot from matplotlib as plt
19. If different branches of a hospital in different state capitals are connected 1
together, which type of network it forms?
(a) LAN
(b) MAN
(c) WAN
(d) None of the above
Q-20 and Q-21 are Assertion (A) and Reason (R) Type questions.
Choose the correct option as:
(A) Both Assertion (A) and Reason (R) are true, and Reason (R) is
the correct explanation of Assertion (A)
(B) Both Assertion (A) and Reason (R) are true, but Reason (R) is
not the correct explanation of Assertion (A)
(C) Assertion (A) is True, but Reason (R) is False
(D) Assertion (A) is False, but Reason (R) is True
20. Assertion (A):- While creating a dataframe with a nested or 2D dictionary, 1
Python interprets the outer dict keys as the columns and the inner keys as
the row indices.
Reasoning (R):- A column can be deleted using remove command.
(C) Assertion (A) is True, but Reason (R) is False
21. Assertion (A):- SELECT INSTR(‘Python Program’, ‘thon’); will give an 1
output 2.
Reasoning (R):- INSTR() function takes two arguments as string and sub
string and returns the position of first occurance of a specifies substring
from a string.
(D) Assertion (A) is False, but Reason (R) is True
22. import pandas as pd 2
M1=pd.Series([45,65,24,89],index=['term1','term2','t erm3','term4'])
½ mark for import statement
½ mark for usage of Series ()
½ mark for stating index as a list
½ mark for creating object m1
OR
city={'AGRA':4, 'JHANSI':3, 'MATHURA':5, 'NOIDA':4}
kv=mypandas.Series(city)
1 mark for each correct python statement
23. A digital footprint – sometimes called a digital shadow or an electronic 2
footprint – refers to the trail of data you leave when using the internet. It
includes websites you visit, emails you send, and information you submit
online. Types are Active Digital Foot Print and Passive Digital Foot Print.
(1 Marks for definition)
(1 Marks for types)
24. This is because the column commission contains a NULL value and the 2
aggregate functions do not take into account NULL values. Thus
Command1 returns the total number of records in the table whereas
Command2 returns the total number of non NULL values in the column
commission.
(2 Marks for any correct explanation)
25. Expand the following terms related to Computer Networks: 2
a. URL : UNIFORM RESOURCE LOCATOR
b. PAN: PERSONAL AREA NETWORK
c. MODEM : MODULATOR DEMODULATOR
d. WWW : WORLD WIDE WEB
(1/2 Marks for each correct term)
OR
cookies are small files which are stored on a user’s computer and contains
information like which Web pages visited in the past, logging details
Password etc. They are designed to hold a small amount of data specific to
a particular client and website and can be accessed by the web server or
the client computer.
(2 Marks for correct definition)
26 Degree: No of columns in a table is called degree of a table. 2
Cardinality: No of rows in a table is called degree of a table.
I_ID SHOP_NAME QTY
PC01 Akhil Enterprises 10
LC01 Nihal and Sons 5
PC03 Renuka Technologies 12
PC01 Tanvi Techno and E-Waste firm 5
LC03 Akhil Enterprises 7
For example in the above STOCK table
Degree: 03 and Cardinality: 05
(1 Mark for correct definition)
(1 Mark for correct example)
27. Risk involved : It includes websites we visit emails we send, and any 2
information we submit online, etc., along with the computer’s IP address,
location, and other device specific details. Such data could be used for
targeted advertisement or could also be misused or exploited.
1 mark for naming the activity
1 mark for mentioning any one risk
OR
There are positive as well as negative impact on health due to the use of
these technologies.
● POSITIVE IMPACT ▪ Various health apps and gadgets are available to
monitor and alert Online medical records can be maintained.
● NEGATIVE IMPACT ▪ One may come across various health issues like
eye strain, muscle problems, sleep issues,etc ▪ Anti social behaviour,
isolation, emotional issues, etc.
(1 Marks for each)
28. import __pandas_____ as pd # ½ Marks 2
s=pd.Series(___3___,__index=[1,2,3,4]_____) #(1 Mark)
print(_s___) # ½ Mark
OR
import pandas as pd
Data= [[501,'Aromal',’Commerce’], [502,'Greeshma',’Science’],
[503,''Preeti”,’Humanities’], [504,' Rupin ',’Arts’]]
Toppers=pd.DataFrame(data,columns=['Rno','Name', 'Stream'])
print(Toppers)
( 1 Marks for each correction)
29. i. Proprietary Software. 3
( 1 Marks for correct answer)
ii. Intellectual property rights are the rights given to persons over the
creations of their minds like creativity concepts, inventions, industrial
models, trademarks, songs, literature, symbols, names, brands,....etc. They
also entitle him/her to prevent others from using, dealing or tampering with
his/her product without prior permission from him/her. It should be protected
since:
1. New innovations in all IPR domains lead to Human progress and
advancement. 2. Legal protection of new innovations encourages safe
spending on other innovations.
3. Caring for and protecting IPR contribute to achieving economic and social
development
( 1 Marks for definition)
( 1 Marks for any one use)
30. a. Column3 Res 3
T1 60.00 True
T2 59.22 True
T3 46.04 False
T4 58.62 False
c. Column3
T2 59.22
T3 46.04
1 mark for each correct output.
OR
import pandas as pd ½ mark
D={'Arnab':[90,91,97],'Ramit':[92,81,96],'Samridhi':[89,91,88] } 1 mark
Df=pd.DataFrame(D,index=['Maths','Science','Hindi']) 1 mark
print(Df) ½ mark
31. i)MONTH() GIVES MONTH IN Numbers. 3
example:
MONTH(‘2021-05-11’) GIVES 05
where as MonthName(‘2021-05-11’) gives ‘MAY’.
ii. DAYNAME(date)-Returns the name of the weekday for date
SELECT DAYNAME('2022-02-23'); -> 'Wednesday’;
iii. February
32. i. Select company, round(wheel-base,1) from automobile; 3
1 mark each for correct usage of Select and round()
ii. Select instr(body-style,’dan’) from automobile;
1 mark each for correct usage of Select and instr()
iii. Select year(dateofmanufacture) from automobile where body-
style=’sedan’;
1 mark each for correct usage of Select and year()
OR
Having clause is used in conjunction with group by clause in MySQL. It is
used to provide condition based
on grouped data. On the other hand, order by clause is an independent
clause used to arrange records of a table
in either ascending or descending order on the basis of one or more
columns
2 marks for correct explanation and 1 mark for example.
33. import matplotlib.pyplot as ……plt……………. #statement 1 4
Player=['Rohit','Virat','Surya',’Rahul’]
Runs=[80,60,40,20]
plt…….plot(Player,Runs)……#statement 2
plt.ylabel('Runs')
plt….xlabel(Player)….('Player') #statement 3
plt.title('PERFORMANCE')
plt….show()……………….#statement 4
plt.savefig("x.jpg")
( 1 Mark for each correct statement)
iii)
a) Hub/Switch must be placed in every block
b) Modem is placed in Development to provide the internet connection
iv. Company is planning to purchase a new hardware to protect the network
fromnetwork from unauthorised access from outside the network. Name the
device.
Ans.: Firewall