0% found this document useful (0 votes)
29 views

ip_qp2022_23

Uploaded by

priyanshu9107
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)
29 views

ip_qp2022_23

Uploaded by

priyanshu9107
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/ 11

2022-2]

SET-4

Series 2HEFG
Q.P. Code 90
RollNo.
Candidates must write the GQ.P. Code
on the title page of the answer-book.

INFORMATICS PRACTICES

Time allowed: 3 hours Maximum Marks :70

Please check that this question paper contains 11 printed pages.

Q.P. Code given on the right hand side of the question paper should be
written on the title page of the answer-book by the candidate.

Please check that this question paper contains 35 questions.


question in the answer
Please write down the serial number of the
book before attempting it.
read this question paper. The
15 minute time has been allotted to
a.m. to 10,30
paper will be distributed at 10.15 a.m. From 10.15
question
paper only and will not write
a.m.. the candidates will read the question
answer-book during this period
any answer on the

1 P.T.0.
90 279
General Instructions :
(i) This question paper contains five sections, Section A to E.
(ii) Alquestions are compulsory.
() Section A have 18 questions carrying I
(ip) Section B has 7 Very Short mark each.
each. Answer type questions carrying 2 marks
(u) Section C has 5 Short
Answer type questions carrying 3 markseach.
(vi) Section D has 3 Long Answer
(vii) Section E has 2 questions type questions carrying 5 marks
4 marks each. One internaleach.
carrying
given in Q. 35 against PartE only. choice is
(viii) All programming question are to be
only. answered using python language

1. Part- A
Which of the following topologies is very
connected to a central hub? efficient and all nodes are
Y Star
(ii) Tree
(iüN Bus
(iv) Ring
2.
Ramandeep is a young
of like-minded people.woman with great aspirations and has a gpd
She along with her team team
company to sell handicrafts online and also members started a
designed a
company. What type of intellectual property does this logo logo for their
(i) Patents represent ? 1
(ii) Design iY Copyright
( iTrademark
3.. Which of the following is a type of
cybercrime where objectionable and
demeaning comments are posted on social
such that he/she is mentally harassed ? media platform about a person,
(1), Phishing (ii) Hacking
1

(i Cyber bullying (iv) Identity Theft


4. Which of the following is the correct output of the
SELECT ROUND (7876.4568, 2); following SQL command ? 1
7876.46 (ii) 7876.45
(iii) 7900 (iv) 7900.4568
Aggregate functions are also known as:
1
Scalar Functions (ii) Single Row Functions
(iiü)) Multiple Row Functions (iv) Hybrid Functions
2
90
6. 1
hmarylaw in India for matters related to e-commerce and cyber Cmo
(i) T Act 1995 (ii) MAct 2000
(ii) IT Act 1998 (iv) IT Act 2010
7. Ravisha has stored the records of all students of her class in a MYSQi
table. Suggest a suitable SQL clause that she should use to display the 1
names of students in alphabetical order.
i) SORT BY (ii) ALIGN BY
(11) GROUP BY (iy) ORDER BY

8. To remove the leading and trailing space from data values in a column of
1
MySql Table, we use
(i) Left( ) (ii) Right( )
(ii)Trim( ) (iv) Ltrim( )

9. If thesubstring is not present in a string, the INSTR( ) returns :


(i) -1 (ä) 1
(iii) NULL (iv) o
1
10. What will be theoutput of the following code ?
import pandas as pd
myser= pd.Series ( [0, 0,0])
print (myser)
i) 0 (ii) 0 1
0 1
2
(i)o 0 (iv) 0
1 1 1
2 0 2 2

11. Which of the following is a two-dimensiozal labelled data structure of


Python ? 1
(i) Relation ( Dataframe
(iii) Series iv) Square
12. To compare data values of commission earned by salesmen over a vear.
wh¿h of the following type of graph should preferably be used ? 1
( line (11) area
(ii) bar (iv) scatter
13. Which of the following is not a web browser? 1
Opera (i) Google Chrome
(ii) Linux (iv) Mozilla Firefox
14. Which of the following is not a valid aggregate function in MYSQL?
() COUNT( ) ) SUM( )
) MAX(O (iv) LEN ()
15. The digital footprint that we leave online unintentionally is called
(i) Active digital footprint (iY Passive digital footprint
(iüi) True digital footprint (iv) False digital footprint
16. E-waste is responsible for the degradation of our environment if not
properly treated or disposed of. Some of the feasible methods of e-waste
maDagement are reduce, and recycle. 1
reuse
(ii) recheck
(iii) resubmit (iv) regular
Q. 17 and 18 are ASSERTION (A)and
Mark the correct choice as
REASONING (R) based questions.
(i) Both (A) and (R) are true and (R) is the correct
(ii) Both (A) and (R) are true and (R) is not the explanation
for (A).
correct explanation for
(A).
(iii) (A) is true and (R) is false.
(iv) (A) is false but (R) is true.

, 17. Assertion (A) :A static webpage does not change for each person visiting
the web page.
1
Reason (®):When a web server receives a request for a
dynamic web
page, it locates and updates the page and sends it to the
the client. browser of
18. Assertion (A) :The output of addition of two series will be NaN, if one of
the elementsor both the elements have novalue(s).
1
Reason (R): While performing mathematical operations on a
default all missing values are filled in with 0. series, by
PART -B
19. What is a web server? How is it different from web
browser ?
OR
What do you understand by the term cookies ? Give any
cookies. two benefits of
2

wreb sit wbity


uotsehe webs's
20. Keshav has written the following guery to find out the sum of bonus
earned by the emplovees of WEST zone :
SELeCT zone, TOTAL (bonus) FROM employee HAVING zone Wo
e got an error. Identify the errors and rewrite the query Dy
2
underlining the correction(s) done.
Select
Z1. Differentiate between cOUNT ( ) and CoUNT(*) functions in MYsQL. Give
2
suitable examples to support your answer.

22. Write a Python program to create a series object, country using a list
that stores the capital of each country.
Note : ASsume four countries to be used as index of the series object are
India, UK, Denmark, and Thailand having their capitals as New Delhi, 2
London, Copenhagen, and Bangkok respectively.
2
23. Explain plagiarism with an example.
OR
Nowadays all of us frequently use social media to connect with our
friends. Give any two netiquettes that we should follow while 2
communicating on social media.
2
24. What will be the output of the following code: 13
import pandas as pd
s1-pd. Series (data=2* (3,10))
print (s1)
2
25. Carefully observe the following code :
import pandas as pd
dic={"pid':[101, 102, 103, 104, 105] ,
'Lalit'1,
'pname':['Shyam','Roushan', 'Archit','Medha',
'sports':['Cricket',"Tennis' 'Football' ' Cricket','Cricket'],
"points':[45000,20000,15000,53000, 60000]} spot
player-pd. DataFrame (dic)
print (player)
Write Python statements for the following:
created above, set the row labels as
(i) In the dataframe player "Player5'.
'Player1'", "Player2, "Player3', 'Player4',
(i) Rename the column 'points' to 'netpoint' in the DataFrame,player.
lsmn,
P.T.0.
90
SESSION:2024-25 ANo

SECTION -C
26. Consider the table Patient given below and write SQL commands. 29. Manohar rec
Table : Patient Ltd., claimin:
In order to cl
Patientid Name City Phone Dateofadm Department
questions su
1000001 Ritvik Garg Delhi 68476213 2021-12-10 Surgery number and
1000002 Rahil Arora Mumbai 36546321 2022-01-08 Medicine liFk providec
Mehak Bhatt Answer the
1000003 Delhi. 68421879 2022-02-02 Cardiology
(i) Should
1000004 Soumik Rao Delhi 26543266 2022-01-11 Medicine (i) What
1000005 Suresh Sood Bangalore 65432442 2021-03-09 Surgery (ii) What
(i) Display the details of all patients who were admitted in January. What do yc
(ii) Count the total number of patients from Delhi. that one st
(iii) Display the last 2 digits of the Patientid of all patients from Surgery
Department. 30. Write the

27. Kavyanjali, a chemical analyst, needs to arrange data of few elements in


the form of two series containing symbols and their atomic numbers
respectively. Thereafter, the data of these two series has to be arranged
and displayed in the form of DataFrame as shown below :
Symbol Atomiç Number
B CHydrogen, L1,
Helium 'He 2) S fsenio (An, E) (i)
Lithium' Li 3 S (iü)
Beryllium Be 41 (iüi
Help her in writing suitable Python code to complete the task.
Fi
28. Consider the given DataFrame 'health'.
Diseasename Agent Quo )
Common cold Virus
1 Chickenpox Virus
2 Cholera Bacteria 31. Write

Bacteria 1)
3 Tuberculosis
(ii)
Write suitable Python statements for the following : (111)
(i) Remove the row containing details of disease named Tuberculosis. (iv)
(ii) Add a new disease namedMalaria' caused by 'Protozoa'. dt, locu (v)
Giü) Display the last 2 rows.
90
6
90
a0Manonar received an email from'a companv, named Makemoney vt.
Claming that Manohar has won T20 lakhs in a survey done online.
In order toclaim the prize money, he was required to answer few securiiy
questions such as his Name, Account number, PAN card details, rnone
number and OTP for verification purposes, For this. he had toclick on the
link provided in the email.
Answer the following questions :
(i) Should Manohar give the required details to the company ?
(ii) What is the activity depicted above ? hayhi 3
(iii) What should he do with this email?
OR
What do you understand by the term Hacking ? Write any two measures
that one should take to avoid being the victim of hacking.
3
30. Write the output (i-ii) for the following SQL commands.
Table : FASHION
ID Product Price Qty
F01 Kajal 970 10
F02 Foundation 2100 15
F03 Night Cream 1700 20
Day Cream 1400 10
F04
1200 25
F05 Shampo0
F06 Lipstick 850 32
COUNT(Product)FROM FASHION;
(i) SELECT FROM FASHION WHERE
(ii) SELECT SUM (Price*0ty)
Product="Night Cream";
FASHION WHERE Price>1500;
(iii) SELECT LEFT (Product, 4) FROM
OR
3
Find the output of the following SQL queries :
("CLIMATE CHANGE",4, 4) ;
(i) SELECT SUBSTR ("Pollution", 3) );
(ii) SELECT UCASE(RIGHT
+3;
(iii) SELECT LENGTH ("HAPPY")
SECTION-D
SQL queries which will perform the following operations : 5
31. Write the 2023-05-15.
To display the year from your Date of Admission which is
1) '[email protected]' to lowercase.
(ii) To convert your email id
(iii) To remove leading spaces from a string 'my country'.
P7 current date.
(iv) To display
value of 106.
(v) Todisplay the OR
P.T.0.
90
'3)
Considera table PRODUCT with the following data :
Table : PRODUCT
SNO Itemname Company Stockdate Price Discount
1 Monitor HP 2021-12-20 15499.739 15
Webcam Logitech 2020-02-03 4890.90 5
3
Keybòard Logitech 2022-08-19 1878.985 30
4 Mouse HCL 2021-05-16 1200.00 7
5 Speakers iBall 2021-10-19 NULL 25
Write SQL queries using SQL functions to perform the following
operations: 5
(i) Display the first 3characters of all Itemnames.
() Display the names of all items whose Stockday is "Monday".
(ii) Display the total price of all the products.
(iv) Display the maximum Price.
() Display the average Price of all the products by the company named
'Logitech!.
32. XEED Private Ltd., Delhi is a company that deals with educational toys.
They have different divisions HR(A1), Sales (A2), Production (A3) and
Marketing (A4).
The layout of the Delhi branch is :
XEED Private Ltd.
Delhi Branch
HR SALES
(A1) (A2)
BANGALORE
BRANCH
PRODUCTION MARKETING
(A3) (A4)

The company also hàs a branch in Bangalore. The management wants to


connect all the divisions as well as all the computers of each division (A1,
A2, A3, A4).
Distance between the wings are as follows :
A3 to A1 25 m
A1 to A2 40 m
A2 to A4 25 m
A4 to A3 20 m
A3 to A2 30m
A1 to A4 170m
Delhi Head Office to Bangalore Office 2154 km

8
90
Number of computers in each of the wing :
A1 50
A2 40
A3 110
A4 6)
Based on the above specifications,answer the following questions :
(i) Suggest the topology and draw the most suitable cable layout for
connecting all the divisions of Delhi branch.
(ii) Suggest the kind of network required (out of LAN, MAN, WAN) for
connecting Production (A3) with the Bangalore branch.
(iüi) Which device can be used to connect the network of Delhi Branch to
the Internet ? This device should be able to receive data, analyse it
and then transmit it to the network.
(iv) Suggest the placement of switch/hub with justification.
(V) Many employees were finding it difficult to cope up with work
pressure and hence were showing stress related symptoms. In order
to improve the mental health of its employees, HR planned to
conduct an online session with amental health expert from Mumbai.
Out of the options given below, suggest the protocol that will help to
send the voice signals over internet to conduct the session successfully.
(a) FTP (b) SMTP (c) VOIP (d) POP

33. Consider the following graph. Write the Python code to plot it. Also add 5
the Title, label for X andY axis.
Use the following data for plotting the graph
Smarks=[io, 40;30:80.551
sname-["Sahil", "Deepak", "Anil", "Ravi","Riti"]
Marks secured by students in Term-1
.601
Marks
Scored
50
þ)t bitle "Ma
404 )
30

20 þlt s
10 -
Sahil Deepak Anil Ravi Riti
Student Name
OR

P.T.0.
90
Write Python code to draw the following bar graph representing the total
sales in each quarter. Add the Title, Label for X-axis and Y-axis.
Use the following data for plotting the graph : 5
sales=[450,300,500,650]
qtr="QTR1", "QTR2", "QTR3", "QTR4"]
"Sales each quarter

6004

5004

400
3004

200
1004

0
QTRI QTR2 QTR3 QTR4
)rabe "Quarter
SECTION - E

34. Consider the following table Schooldata: 1+1+2


Table: Schooldata
Admno Name Grade Club Marks Gender
20150001 Sargam Singh 12 STEM 86 Male
20140212 Alok Kumar 10 SPACE 75 Male
20090234 Mohit Gaur 11 SPACE 84 Male
201302 16 Romil Malik 10 READER 91 Male
20190227 Tanvi Batra 11 STEM 70 Female
20120200 Nomita Ranjan 12 STEM 64 Female
Write SQL queries for the following:
() Display the average Marks secured by each Gender.
() Display the minimum Marks secured by the students of Grade 10.
(ii) Display the total number of students in each Club where number of
students are mnore than 1.
OR

10
90
(Option for Part (iii) only)
(111) Display the maximum and minimum marks secured by each gender. 2

35. Consider the following DataFrame 'mdf. 1+1+ 2


Rollno Name English Hindi Maths
1 Aditya 23 20 28
1 2 Balwant 18 1 25
2 3 Chirag 27 23 30
4 Deepak 11 7

4 5 Eva 17 21 24

(A) Write Python statements for theDataFrame 'mdf:


(i) To display the records of the students having roll numbers
2 and 3. mdt 3 mll iloe L3, J
(i)Toincrease.the marks of subject Math by 4,for all students.
(B) Write Python statement to display the Rollno and Name of all
students who secured less than 10 marks in Maths. 'WaeI7
.OR
(Option for Part B only)
Write Python statement todisplay the total marks i.e., sum of marks
secured in English, Hindi and Maths for all students. 2

(mt. eughit

DEO

You might also like