Professional Documents
Culture Documents
SECTION – A
1 A set of rules that decide the functioning of a network is called ______________? 1M
(i) Syntax
(ii) Topology
(iii) URL
(iv) Protocol
2 Mas. Mokshith found that his hard disk got corrupted and unable to use. Which is 1 M
a good task to be done, from the following?
(i) Burn the hard disk for destroying
(ii) Handover it to a certified e–waste recycler
(iii) Simply throw it away like a general waste at home
(iv) Bury it after breaking into pieces
3 The “Nike” brand holds a Trademark for their Shoe and Cloth products. Can a 1 M
newly launching note book company apply and get Trademark for “Nike”?
(i) Yes
(ii) No
(iii) May be
(iv) Not Sure
12 Ritika is a new learner for the Python Pandas, and she is aware of some concepts 1 M
of python. She has created some lists using the following code
import pandas as pd
Name = ['Manpreet', 'Kavil', 'Manu', 'Ria']
Phy = [70, 60, 76, 89]
Chem = [30, 70, 50, 65]
But she is unable to create the dataframe from the same. She wants a dataframe df
like below is to be created
Name Phy Chem
0 Manpreet 70 30
1 Kavil 60 70
2 Manu 76 50
3 Ria 89 65
Help her by identifying the correct statement which will create the dataframe.
15 The trail of online activities that a person leave while being online is called as ___? 1 M
(i) Digital Society
(ii) Data Protection
(iii) Intellectual Property
(iv) Digital Footprint
16 Mas. Sridhar is using WhatsApp to make a voice call to his friend. Which protocol 1 M
will be used internally for this?
(i) File Transfer Protocol
(ii) Simple Mail Transfer Protocol
(iii) Voice Over Internet Protocol
(iv) Post Office Protocol
-4-
Q17 and 18 are ASSERTION AND REASONING based questions. Mark the correct choice as
i. Both A and R are true and R is the correct explanation for A
ii. Both A and R are true and R is not the correct explanation for A
iii. A is True but R is False
iv. A is false but R is True
17 Assertion (A):– Cyber crime is not a criminal crime 1M
Reason (R):– The Information Technology Act, 2000 was enacted to provide legal
recognition to e–commerce and electronic transactions
SECTION – B
19 Cite the difference between Add–on and Plug–in with an example each? 2M
OR
Give one advantage of Bus topology over Star topology and one advantage of Star
topology over bus topology
20 Kum. Sireesha developed an application that accepts data from user. In the 2M
application while inputting name of user, one can enter some textual data that can
include spaces also.
While saving the data into a database, she wants to convert the name of user, if
inputted in mixed case, into a single case i.e. either uppercase or lowercase. Also,
she wants to remove any spaces, if inputted, at the beginning and ending of name.
Suggest her two functions for the mentioned purposes.
21 There was a table called EMP with a column EName in it. The following two 2M
statements producing the different outputs as mentioned against them.
Statement Output
SELECT COUNT(EName) FROM Emp; 5
SELECT COUNT(*) from Emp; 8
22 Consider the following Series object namely ‘Sales’ and answer the questions that 2M
follow
TV 450
Oven 250
AC 345
Computer 280
(a) Write a Python statement to display those products whose sales are more than
300
(b) Write a Python statement to name the index of the series as “ProductName”
27 lst=[{'a':10,'b':20},{'a':5,'b':10,'c':20}] 3M
df=pnds.DataFrame(lst)
Based on the above code, answer the below questions
(a) How many rows and columns will be present in the dataframe df?
(b) How many NaNs will be present in the dataframe df?
(c) Write a suitable missing import statement for the code
28 Distinguish between iterrows( ) and iteritems( ). With which Data Structure these 3M
functions are used?
30 Consider the following table Order, and answer the questions that follow 3M
OrderID OrderDate SalesPerson OrderAmount
101 2015–08–14 Ravi Kiran 45000
102 2015–09–22 Sumanth 24000
103 2015–01–11 Vinay Kumar 36000
104 2016–09–12 Tharun Kumar 62000
105 2016–10–11 Sonu 50000
-6-
(a) Write a query to display the OrderId and OrderAmount in descending order
of order amount
(b) Write a query to display the average order amount?
(c) Write output for the following query
SELECT LEFT(OrderAmount,3) FROM OrderAmount;
OR
Explain the difference between WHERE and HAVING clauses with an example
SECTION – D
31 In MySQL, mention 5M
(a) Two functions that accepts string as input and returns an integer as output
(b) Two functions that accepts date input and returns numeric output
(c) A function that counts distinct values in a column of a table
(d) Two aggregate functions that ignores NULL values
(e) One function and one operator that gives remainder after performing
operation
OR
Consider the following table named ‘Garment’. Write commands of MySQL for
(a) to (c) and output for (d) and (e)
GCODE GNAME SIZE COLOUR PRICE
111 Tshirt XL Red 1400.00
112 Jeans L Blue 1600.50
113 Skirt M Black 1100.00
114 Jacket XL Blue 4000.25
115 Trousers L Brown 1500.00
116 LadiesTop L Pink 1200.00
Write queries to:
(a) Display the sum of prices of garments colour–wise?
(b) Display the average price of garments whose size is XL?
(c) Display the lowest and highest price of garments?
Write output to:
(d) SELECT ROUND(PRICE) FROM Garments;
(e) SELECT CONCAT(COLOUR,GNAME) FROM Garments;
Back
Sales Office
Office
Sales Sales
Office at Office at
Maval Daund
-7-
SECTION – E
34 Considering the following table answer the queries that follow
Table: Teacher
No Name DOB Department JoinDate Salary Sex
1 Sachin 1993–04–15 English 2016–05–21 8000.25 M
2 Kiran 1999–05–05 Accountancy 2020–04–15 NULL F
3 Ritu 1990–12–10 Physics 2015–08–29 9000.95 F
4 Kumar 1984–06–04 Accountancy 2016–09–10 10000.00 M
(i) Write a query to display the highest salary among the salaries of all the 1M
teachers?
(iii) Write a query to display the year of retirement of teachers, assuming that the 2M
retirement age is 60 years
Write a query to display details of those teachers who joined in the year
2016?
(ii) Write a Python statement to rename the row label ‘America’ to ‘USA’ 1M
(iii) Write a Python statement to calculate the difference of mortality of the years 2M
2019 and 2022 for the country India
Write a Python statement to delete the row data with country ‘Australia’