IIP LAXMI RAMAN GLOBAL SR.
SEC SCHOOL (CBSE) TIRUNELVELI GROUP BY DEPT;
Affiliation No.1931428 Which of the following is a correct query to perform the given task?
GRADE: 12 FULL PORTION II MARKS: 70 i. SELECT DEPT, AVG(SAL) FROM EMP WHERE COUNT(*) > 5
DATE: .11.25 INFORMATICS PRACTICES TIME: 3.00 Hrs. GROUP BY DEPT;
ii. SELECT DEPT, AVG(SAL) FROM EMP HAVING COUNT(*) >
I. Choose the best answer: 18 x 1 = 18 5 GROUP BY DEPT;
1. A ____________is a device that connects the organisation’s network iii. SELECT DEPT, AVG(SAL) FROM EMP GROUP BY DEPT
with the outside world of the Internet. WHERE COUNT(*) > 5;
i. Hub ii. Modem iii. Gateway iv. Repeater iv. SELECT DEPT, AVG(SAL) FROM EMP GROUP BY DEPT
2. When e-waste such as electronic circuit boards are burnt for disposal, HAVING COUNT(*) > 5;
the elements contained in them create a harmful chemical called 9. Predict the output of the following query:
________which causes skin diseases, allergies and an increased risk of SELECT LCASE (MONTHNAME ('2023-03-05'));
lung cancer. i. may ii. March iii. May iv. march
i. Hydrogen ii. Beryllium iii. Chlorine iv. Oxygen 10. Which of the following command will show the last 3 rows from a Pandas
3. Copyright, Patent and Trademark comes under: Series named NP?
i. Intellectual Property Right ii. Individual Property Right i. [Link]( ) ii. [Link](3) iii. [Link](3) iv. All the above
iii. Industrial Property Right iv. International Property Right 11. With reference to SQL, identify the invalid data type.
4. Predict the output of the following query: i. Date ii. Integer iii. Varchar iv. Month
SELECT MOD (9,0); 12. In Python Pandas, while performing mathematical operations on series,
i. 0 ii. NULL iii. NaN iv. 9 Index matching is implemented and all missing values are filled in
5. Which of the following SQL functions does not belong to the Math with _____by default.
i. Null ii. Blank iii. NaN iv. Zero
Functions category? 13. By restricting the server and encrypting the data, a software company's
i. POWER() ii. ROUND() iii. LENGTH() iv. MOD() server is unethically accessed in order to obtain sensitive information.
6. ________ is not a FOSS tool. The attacker blackmails the company to pay money for getting access
i. Libre Office ii. Mozilla Firefox to the data,and threatens to publish sensitive information unless price
iii. Google Chrome iv. Python is paid. This kind of attack is known as:
7. CSV stands for: i. Phishing ii. Identity Theft
i. Column Separated Value ii. Class Separated Value iii. Plagiarism iv. Ransomware
iii. Comma Separated Value iv. Common Segregated Value 14. In SQL, the equivalent of UCASE() is:
8. Raj, a Database Administrator, needs to display the average pay of i. UPPERCASE () ii. CAPITALCASE()
Workers from those departments which have more than five iii. UPPER() iv. TITLE ()
15. Collection of hyper linked documents available on the internet is
employees. He is experiencing a problem while running the following known as_______________.
query: i. Website ii. Webpage iii. Web Serveriv. Web Hosting
SELECT DEPT, AVG(SAL) FROM EMP WHERE COUNT(*) > 5 16. _______________is a non-profit organization that aims to build a
Publicly accessible global platform where a range of creative and import pandas as pd
academic work is shared freely. list1=[-10,-20,-30]
i. Creative Cost ii. Critical Commons ser = [Link](list1*2)
iii. Creative Commons iv. Creative Common print(ser)
23. Differentiate between the active digital footprint and passive digital
17. Assertion (A):- MODEM stands for modulator-demodulator. footprints.
Reasoning (R): - It is a computer hardware device that converts data 24. Complete the given Python code to get the required output as:
from a digital format to analog and vice versa. Rajasthan
i. Both A and R are true and R is the correct explanation for A import _________ as pd
ii. Both A and R are true and R is not the correct explanation for A di = {'Corbett': 'Uttarakhand', 'Sariska':
iii. A is True but R is False iv. A is false but R is True 'Rajasthan', 'Kanha': 'Madhya Pradesh’,'Gir':'Gujarat'}
18. Assertion (A):- To use the Pandas library in a Python program, one NP = ___ Series( _____ )
Must import it. print(NP[ __])
Reasoning (R): - The only alias name that can be used with the 25. What are aggregate functions in SQL? Name any two.
Pandas library is pd. 26. What is cyberbullying?
i. Both A and R are true and R is the correct explanation for A III. Answer the following questions: 6 x 3 = 18
ii. Both A and R are true and R is not the correct explanation for A 27. Based on the SQL table CAR_SALES, Write suitable queries for the
iii. A is True but R is False iv. A is false but R is True following:
II. Answer the following questions: 8 x 2 = 16 +--------+-------------------+--------+-------+-------+
19. Rati is doing a course in networking. She is unable to understand the NUMBER | SEGMENT | FUEL | QT1 | QT2 |
concept of URL. Help her by explaining it with the help of suitable +--------+-------------------+--------+-------+-------+
example. | 1 | Compact HatchBack | Petrol | 56000 | 70000 |
20 The python code written below has syntactical errors. Rewrite the | 2 | Compact HatchBack | Diesel | 34000 | 40000 |
correct code and underline the corrections made. | 3 | MUV | Petrol | 33000 | 35000 |
Import pandas as pd | 4 | MUV | Diesel | 14000 | 15000 |
df ={"Technology":["Programming","Robotics","3D | 5 | SUV | Petrol | 27000 | 54000 |
Printing"],"Time(in months)":[4,4,3]} | 6 | SUV | Diesel | 18000 | 30000 |
df= [Link](df) | 7 | Sedan | Petrol | 8000 | 10000 |
Print(df) | 8 | Sedan | Diesel | 1000 | 5000 |
21. Consider the given SQL string: +--------+-------------------+--------+-------+-------+
S1=“12#All the Best!” i. Display fuel wise average sales in the first quarter.
Write suitable SQL queries for the following: ii. Display segment wise highest sales in the second quarter.
i. Returns the position of the first occurrence of the substring “the” in iii. Display the records in the descending order of sales in the second
the given string. quarter.
ii. To extract last five characters from the string. 28. Create a DataFrame in Python from the given list:
22. Predict the output of the given Python code: [[‘Divya’,’HR’,95000],[‘Mamta’,’Marketing’,97000],
[‘Payal’,’IT’,980000], DataFrame df that contains the four quarter’s sales data of different
[‘Deepak’,’Sales’,79000]] stores as shown below:
Also give appropriate column headings as shown below: Store Qtr1 Qtr2 Qtr3 Qtr4
0 Store1 300 240 450 230
1 Store2 350 340 403 210
2 Store3 250 180 145 160
Answer the following questions:
29. Write MySQL statements for the following: i. Predict the output of the following python statement:
i. To create a database named FOOD. a. print([Link]) b. print(df[1:3])
ii. To create a table named Nutrients based on the following ii. Delete the last row from the DataFrame.
specification: iii. Write Python statement to add a new column Total_Sales
Column Name Data Type Constraints which is the addition of all the 4 quarter sales.
Food_Item Varchar(20) Primary Key [Link] Python statement to export the DataFrame to a CSV file
Calorie Integer named [Link] stored at D: drive.
30. Richa, recently started using her social media account. Within a few
days, she befriends many people she knows and some that she does
not know. After some time, she starts getting negative 34. Write suitable SQL queries for the following:
comments on her posts. She also finds that her pictures are i. To calculate the exponent for 3 raised to the power of 4.
being shared online without her permission. ii. To display current date and time.
31. Police officials arrested four members of an interstate gang for iii. To round off the value -34.4567 to 2 decimal place.
allegedly during many people from different states on the pretext of iv. To remove all the probable leading and trailing spaces from the
column userid of the table named user.
providing them with holiday packages after creating fake websites of V. Answer the following questions: 2 x 5 = 10
Tours and Travels. The cyber criminals send fraudulent emails 35. ABC International School, Delhi has different wings Administrative
containing links to fraudulent websites created by them. Wings. Primary wings, Middle wing and Secondary wing as shown
The victim in his complaint told police that he was offered a in the diagram.
holiday package to Dubai for a total of 10 times in the next 10 years
and was charged 1.45 lakh through his credit card. Answer the
following questions pertaining to the given news byte:
i) Identify the type of cybercrime mentioned in above case.
ii) Which act deals with such crimes in India?
iii) Suggest any one precaution that can be taken to avoid falling prey
to such criminals.
32. Differentiate candidate key and primary key. Distance between the wings are as follows:
IV. Answer the following questions: 2x4=8 W3 to W1 85 m
33. Ekam, a Data Analyst with a multinational brand has designed the W1 to W2 40 m
W2 to W4 25 m
W4 to W3 120 m
W3 to W2 150m
W1 to W4 170 m
Number of computer in each of the wing
W1 125
W2 40
W3 42
W4 60
Based on the above specifications, answer the following question:
I) Suggest the topology and draw the most suitable cable layout for
connection all the wings of Delhi branch.
II) Suggest the kind of network required (out of LAN,MAN, WAN) for
Connecting
a)Administrative Wing(W1) with middle wing(W3
b)Administrative wing (W1) with Mumbai branch.
III) Suggest the placement of the following devices with justification.
a) Repeater b) Switch/Hub
IV) Due to pandemic school had to adopt Online classes. Suggest the
protocol that is used for sending the voice signals over internet. Also,
give an example of an application of WWW that helped the teachers to
send message instantly to the students.
36. Complete thee following table:
import ________ as plt #st1
import pandas as pd
Months=[‘Jan’,’Feb’,’Mar’,’Apr’,’May’,’Jun’,’July’,
‘Sep’,’Oct’,’Nov’,’Dec’]
sales=[30000,35000,40000,45000,50000,55000,60000,65000,70000,75000
,80000,85000]
[Link](__________________) #St2
[Link](“________________________”)#st4
[Link](“Months”)
[Link](“________________”)$st4
[Link]( )