0% found this document useful (0 votes)
24 views8 pages

12 IP PP2 MS

This document is a practice set for Class 12 Informatics Practices, consisting of various questions related to programming, databases, and data handling. It includes multiple-choice questions, true/false statements, and coding tasks that assess knowledge in Python, SQL, and data analysis. The total duration for the exam is 3 hours, with a maximum score of 70 marks.

Uploaded by

tilakschoolexam
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
24 views8 pages

12 IP PP2 MS

This document is a practice set for Class 12 Informatics Practices, consisting of various questions related to programming, databases, and data handling. It includes multiple-choice questions, true/false statements, and coding tasks that assess knowledge in Python, SQL, and data analysis. The total duration for the exam is 3 hours, with a maximum score of 70 marks.

Uploaded by

tilakschoolexam
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 8

केन्द्रीय विद्यालय संगठन, जयपुर संभाग

Kendriya Vidyalaya Sangathan, Jaipur Region


PRACTICE SET – 02

कक्षा/Class: 12िीं विषय/Subject: Informatics Practices(065)

समय/Time: 3 Hours अविकतम अंक/Max. Marks: 70

Q.No SECTION-A Marks


1. State whether True or False: 1
Boolean Indexing helps us to select the data from the DataFrames using a
boolean vector.
TRUE
2. In column “Margin “contains the data set(4,NULL,NULL,12). What will be 1
the output of after the execution of the given query?
SELECT AVG(Margin) FROM SHOP;
(A) 4.0 (B) 8.0
(C) 16.0 (D) 12.0
3. ___________ is a device which receives a weak signal and regenerates it. 1
a. Browser
b. Gateway
c. Modem
d. Repeater
4. _____ command is used to modify records in the MySQL table. 1
(a) ALTER
(b) UPDATE
(c) MODIFY
(d) SELECT
5. An organization purchase new computers every year and dumps the old 1
one into the local dumping yard. Write the name of the most appropriate
category of waste that the organization is creating every year, out of the
following options:
(A) Business waste
(B) Commercial waste
(C) E-waste
(D) Green waste
6. what will be the output of following code: 1
import pandas as pd
a=pd.Series([2,3,4,5])
b=pd.Series([5,6,7,8,9])
c=a+b
print(c)
(A) (B) (C) (D) Error
0 7 0 7.0 0 7.0
1 9 1 9.0 1 9.0
2 11 2 11.0 2 11.0
3 13 3 13.0 3 13.0
4 0 4 0 4 NaN
dtype: float64 dtype: float64 dtype: float64
7. The command used to give a heading to a graph using matplot is ______ 1
(a) plt.show()
(b) plt.plot()
(c) plt.xlabel()
(d) plt.title()
8. State whether the following statement is True or False: 1
In SQL, The HAVING clause is used to filter data on groups formed by
GROUP BY clause.
TRUE
9. What does CSV stands for:- 1
A. CommaSupportVariables
B. CommaSpreadsheetValues
C. CommaSeperatedValues
D. (iv) CommonSpecificValues
10. Stealing someone’s intellectual work and representing it as another 1
person’s work is known as .
(A) Phishing (B) Spamming
(C) plagiarism (D) hacking
11. Which one of the following is a string function? 1
A. COUNT()
B. SUBSTR()
C. MOD()
D. MAX()

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

b. Column1 Column2 Column3


T3 49.090140 100.0 46.04
T4 38.487265 85.4 58.62

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)

34. i. SELECT LCASE(LEFT(NAME,3)) FROM SALESPERSON; 4


ii. SELECT NAME FROM SALESPERSON WHERE DOB=MAX(DOB);
iii.SELECT RIGHT(PHONENO,4) FROM SALESPERSON;
iv.SELECT ZONE, COUNT(*) FROM SALESPERSON GROUP BY ZONE;
(1 Mark for each correct query)
OR
a) Select _________, _________ from superarcade; (Maximum & Minimum
Rent)
Ans.: max(rent), min(rent)
b) Select __________ from superarcade; (owner name into capital)
Ans.: ucase(owner)
c) Select FLR, avg(rent) from superarcade _________ having ______>=2;
(Floor wise average rent where shops are more than 2)
Ans.: group by, count(agencyname)
d)
Select AgencyName, Owner from superarcade ____________ opening_date
___________ (Display the shops as per by history (Latest to Oldest)).
Ans.: order by, desc

(1 Mark for each correct answer)


35. Suggest the most suitable place (i.e. block) to house the server of this 5
company with a suitable reason.
Ans.: Development block is best block to house the server for this company.
ii. Suggest the type of network to connect all the blocks with suitable reason.
Ans.: As the distance is given within 1 KM, LAN network will connect all the
blocks.
iii. The company is planning to link all the blocks through a secure and high
speed wired medium. Suggest a way to connect all the blocks.

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

(1 Mark for each correct answer)


36. i.(4, 2) 5
ii. df[1:3]
First Second
Salesman2 11000 15000
Salesman3 60000 40000
B.
print(df.loc['Salesman1': 'Salesman3', 'Second'])
C. print(df.First+df.Second)
D. print(df.loc['Salesman2': 'Salesdata', 'First'])
E. print(df.First - df.Second)
(1Mark for each answer)
37. i. select mid(INFORMATICS PRACTICES',7,7); 5
ii. select INSTR('WELCOME WORLD','COME');
iii. select round(2334.78,1);
iv. select mod(200,7);
v. select trim(userid) from users;
(1 mark for each correct query)
OR
i. select mid('INDIA RISING',3,5);
ii. select INSTR(‘PYTHON FUNDAMENTALS’,'FUNDA');
iii. select round(453.668.78,2);
iv. select mod(120,7);
v. select trim(student_id) from student;
(1 mark for each correct query)

You might also like