You are on page 1of 8

_____________________________________________________________________________

General Instructions:
1. This question paper contains five sections, Section A to E.
2. All questions are compulsory.
3. Section A has 18 questions carrying 01 mark each.
4. Section B has 07 Very Short Answer type 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.
8. All programming questions are to be answered using Python Language only.
______________________________________________________________________________

SECTION A

1. Internet is an example of: 1


(a) LAN (b) MAN (c) WAN (d) PAN

2. Which of the following is a violation of IPR? 1


(a) Licensing (b) Digital footprint
(c) Phishing (d) Plagiarism

3. E-waste management in India is done as per guidelines of 1


(a) NITI Aayog (b) Ministry of Commerce
(c) Central Pollution Control Board(CPCB)
(d) National Green Tribunal(NGT)

4. Which aggregation function does not give useful information when 1


applied on non numeric attribute?
(a) Count (b) Min (c) Avg (d) Max

5. If column “Name ” contains data set(“arun”,”varun”,”tarun”). What 1


will be output after execution of given query.
Select sum(name) from students;
(a) 0 (b) Error (c) arun varun tarun (d) None of above.

6. “P” in GPL stands for:- 1


(a) Product (b) Public (c) Private (d) Proprietary.

7. Which SQL statement counts the unique cities from ‘city’ 1


attribute of table ‘bank’.
(a) SELECT DISTINCT COUNT(CITY) FROM BANK;
(b) SELECT COUNT(DISTINCT CITY) FROM BANK;
(c) SELECT DISTINCT COUNT(*) FROM BANK;
(d) SELECT COUNT(CITY) FROM BANK;

8. Equi-join is formed by equating 1


(a) Foreign key with Primary key
(b) each row with all other rows
(c) Primary key with Primary key
(d) none of the above
1 of 8
9. To display the first 10 rows of series ‘S’ we may write : 1
(a) S.Head() (b) S.head(10) (c) S.Head(10) (d) S.tail()

10. Find the output of given code: 1


import pandas as pd
s=pd.Series([‘a’,’s’,’r’], index=[2,6,9])
print(s>=’s’)
(a) 2 False (b) 2 False
6 False 6 True
9 True 9 False
(c) 2 False (d) 2 True
6 False 6 False
9 False 9 True

11. Which of the following is an aggregation function? 1


(a) ROUND() (b) UCASE() (c) NOW() (d) SUM()

12. Which of the following functions is used to import a dataframe 1


from csv file ?
(a) read_csv() (b) import_csv()
(c) to_csv() (d) export_csv()

13. What can be done from browser settings? 1


(a) Change home page (b) Set default browser.
(c) Clear cookies (d) All of the above

14. Which SQL function is used to display length of string values 1


from attributes?
(a) Len() (b) Length() (c) Sum() (d) None of the above

15. What will be considered as violation of IPR? 1


(a) Plagiarism (b) Copyright Infringement
(c) Trademark Infringement (d) All of the above

16. __________ is the legal term to describe terms under which people are 1
allowed to use the copyrighted material.
(a) Licensing (b) Copyright (c) Patent (d) Trademark

Q17 and 18 are ASSERTION AND REASONING based questions. Mark the
correct choice as
(a) Both A and R are true and R is the correct explanation for A
(b) Both A and R are true and R is not the correct explanation for A
(c) A is True but R is False
(d) A is false but R is True

17. ASSERTION(A): Websites keep track of users with the help of cookies. 1

REASON(R): Cookies are small text files that store user information
and send it to the server when the browser makes a request again.

18. ASSERTION(A): Data can easily be interpreted/visualized in python 1


in form of line graph, bar graph and histograms.

2 of 8
REASON(R): To visualize data, only numpy needs to be imported in a
python program .

SECTION B

19. Arshi, is a student of class VIII, and seldom browses the internet. 2
Recently, she came across terms like plug-ins and add-ons. As a
senior, explain the difference between Plug-ins and add-ons to her.
OR
Akash, a beginner in the IT field, has just started learning web
technologies. Help him in understanding the difference between
website and Web Hosting.

20. Madhu, a database administrator needs to display class wise 2


maximum marks of all classes above 8th class. She is encountering
an error in following query. SELECT CLASS,MAX(MARKS) FROM
STUDENT GROUP BY CLASS WHERE CLASS>8;
Help her in identifying error and write correct query by suggesting
possible corrections.

21. Aryan,a database administrator, has grouped records of a table with 2


the help of GROUP BY clause. He needs to further filter groups of
records generated through GROUP BY clause. Suggest suitable clause
for it and properly explain its usage with the help of an example.

22. Write a program to create a series using a dictionary that stores the 2
number of students in each section of class 12 in your school.

23. Discuss e-waste management strategies. 2


OR
What is an IPR? Give examples of IPR.

24. Carefully observe the following code: 2


import pandas as pd
d1={‘Eng’:92,”Math”:88,’Hindi’:93}
d2={‘Eng’:86,”Math”:89,’Hindi’:98}
d3={‘Eng’:73,”Math”:81,’Hindi’:92}
df = pd.DataFrame([d1,d2,d3],index=[‘Ayush’,’Piyush’,’Nitin’])
print(df)
(i) List the column names of dataframe df.
(ii) List the index name of dataframe df.

25. What will be the output of following code: 2


import pandas as pd
s=pd.Series({1:1,2:4,3:9,4:16})
print(s[s%2==0])

SECTION C

26. Write outputs for SQL queries (i) to (iii) which are based on the given 3
table
BANK:

3 of 8
(i) SELECT SUBSTR(ACCNO,3,2), MID(CITY,3,2) FROM BANK
WHERE BALANCE>7500;
(ii) SELECT ROUND(BALANCE,1),ANAME FROM BANK WHERE
LENGTH(ANAME)>5;
(iii) SELECT RIGHT(YEAR(LASTUPDATEDON)), ACCNO FROM
BANK WHERE BALANCE>1000;

27. Write python code to create a dataframe df (runs scored by batsman 3


in last three years) with appropriate row labels from the dictionary
given below: {‘Virat’:[1000,962,1035],’Rohit’:[635,580,602],’Surya’:
[1200,1008,1258]}

28. Consider the given dataframe df: 3

(a) Add a column ‘debt’ with value 10 for each state(row).


(b) Add new state MP with population 10.5
(c) Remove the column debt.

29. Priya has received an SMS on mobile, asking her to provide the 3
details of her old debit card in order to get new one. She clicked on
the link in the message and entered the details of her debit card
assuming that this message was from her bank.
(a) Which cyber crime happened with her?
(b) What immediate action should she take to handle it?
(c) Is there any law in India to handle such issues.
Discuss briefly. OR
What are cyber crimes? Name a few cyber crimes and is there any
law in India which guards its citizens against cyber crimes?

30.3 Based on the table STUDENT given here, write suitable SQL queries 3
for the following:

4 of 8
(a) Display total number of male and female students.
(b) Display gender wise minimum weight.
(c) Display class wise tallest student
OR
What are aggregation functions? Name all the aggregation
functions. Write examples for all the aggregation functions.

SECTION D

31. Write suitable SQL query for the following: 5


(a) Display 3 characters extracted from the 5th left character from
string “PRACTICES”.
(b) Round off the value 54.52 to zero decimal place.
(c) Display the position of occurrence of string ‘STUDENTS’ in
string “GOOD DAY STUDENTS”.
(d) Display the remainder of 50 divided by 3.
(e) Remove all the expected leading spaces from the column
‘NAME’ of table ‘STUDENT’ of Q30.
OR
Explain the following SQL functions using suitable examples:
(a) LCASE()
(b) TRIM()
(c) INSTR()
(d) MONTHNAME()
(e) MOD()

32. XEED Private Ltd.Delhi is a company that deals with educational 5


toys. Thay have different divisions HR(A1), Sales(A2), Production
(A3) and Marketing (A4).

The company has a branch in Bangalore. The management wants


to connect all the divisions as well as all the computers of each

5 of 8
division(A1, A2, A3, A4).

The number of computers in each of the wing:


A1 50

A2 40

A3 110

A4 60
Based on the above specifications, answer the following:
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.Give reason.

iii. Which device can be used to connect the network of Delhi


Branch to the internet? This device should be able to receive the
data, analyze it and then transmit 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 a mental health expert from
Mumbai. Out of the options given below, suggest the protocol that
will help to send the voice signals over the internet to conduct the
session successfully.
(a) FTP (b) SMTP (c) VOIP (d) POP

33. Write python code to plot a bar chart for Library Books as 5
shown below:

6 of 8
Also give suitable python statement to save this chart.
OR

Write a program to plot a line chart based on the given data to


depict the runs scored by a batsman in 5 innings.
Innings = [1,2,3,4,5]
Runs = [102,88,98,146,52]

SECTION E

34. Sahil has recently joined a mobile shop that maintains the 1+1+
database of all mobile stockin the form of relation MobileMaster: 2

Help him frame the SQL statements for the queries below::
a) To display the mobile company, mobile name and price in
descending order of their price.
b) To display the mobile name and quantity of all mobiles except
‘MB003’
c) To display the mobile details manufactured after the year
2019.
d) To display the mobile names whose quantity is not null.
OR
Predict the output for the following queries for Sahil:
a) Select M_Company, avg(qty) From MobileMaster Group by
M_Company;
b) Select substr(M_Company,1,3) ,M_Price From MobileMaster
Where Qty>10;
c) Select M_Name ,M_Price*.01 as discount From MobileMaster
Where M_Price between 25000 and 35000;

7 of 8
d) select count(*), count(qty), max(Mfg_date) From MobileMaster;

35. Ms. Shilpa, a data analyst has designed a dataframe df that 1+1+
contain data about marks obtained by students in different 1+1
subjects. Answer the following questions:

(a) Predict output of following python statement:


(i) print(df [ df[ ‘IP ’] > 80 ] )
(ii) df[1:]
(b) Write python statement to display the marks of
ayush and tarun only.
(c) Write the python code to export the above dataframe
to a CSV file.
(d) Write a command to create a new dataframe namely
ndf that stores only the first two rows and columns
‘Accountancy’ and ‘IP’ from the given dataframe df.
OR(for part (d) only)
Write python statement to compute the sum of marks of all the
subjects of given dataframe and add it as another column.

—---------------------------------xxxxxxxxxxxxxxxxxx—--------------------------------------

8 of 8

You might also like