Orange IP065 12 QP
Orange IP065 12 QP
Orange IP065 12 QP
2. A ____________ is a device that connects different networks and routes data packets 1
between them.
(A) Hub
(B) Bridge
(C) Gateway
(D) Repeater
3. What will be the output produced on the execution of the following MySQL statement? 1
SELECT MOD(9,0);
(A) 0
(B) NULL
(C) NaN
(D) 9
4. Suman wants to display the average commission of salesmen who have achieved the target 1
of more than 25000 from each city. She is experiencing a problem while running the
following query:
SELECT CITY, AVG(COMM)
FROM SALESMAN
GROUP BY CITY
WHERE TARGET > 25000;
[1]
Which of the following is a correct query to perform the given task?
(A) SELECT CITY, AVG(COMM)
GROUP BY CITY
FROM SALESMAN
WHERE TARGET > 25000;
(B) SELECT CITY
GROUP BY COMM
FROM SALESMAN
WHERE TARGET > 25000;
(C) SELECT CITY, AVG(COMM)
FROM SALESMAN
GROUP BY CITY
WHERE TARGET > 25000;
(D) SELECT CITY, AVG(CITY), COMM
FROM SALESMAN
WHERE TARGET > 25000
GROUP BY CITY;
5. On the burning of e-waste such as electronic circuit boards, a harmful chemical called 1
________ is created, which causes skin diseases, allergies, and an increased risk of lung
cancer.
(A) Hydrogen
(B) Beryllium
(C) Chlorine
(D) Oxygen
6. In Python, when a DataFrame is created using a dictionary, keys of the dictionary are set as 1
____________ of DataFrame.
(A) Column names
(B) rows
(C) either columns or rows
(D) neither columns nor rows
7. Which Python library is specifically designed for visualizing data and plotting 2D arrays? 1
(A) pandas
(B) numpy
(C) csv
(D) matplotlib
8. Which of the following MySQL functions serves the same purpose as the UCASE() function? 1
(A) UPPERCASE()
(B) CAPITALCASE()
(C) UPPER()
(D) TITLE()
[2]
10. Reshma is writing a research paper on Artificial Intelligence. She downloaded specific images 1
from the Internet and added them to her paper without acknowledging its creator/owner.
This act of Reshma is known as _________
(A) authentication
(B) Patenting
(C) Cyber Theft
(D) Plagiarism
11. 1
What will be the output produced on the execution of the following MySQL statement?
SELECT LCASE(MONTHNAME('2020-06-15'));
(A) JUNE
(B) June
(C) june
(D) 6
13. Which of the following commands will show the last five rows from a Pandas Series, named 1
pandasSeries?
(A) pandasSeries.Tail( )
(B) pandasSeries.tail(5)
(C) pandasSeries.TAIL(5)
(D) tail(5).pandasSeries
14. Samvit works in a bank. One day, he received an email stating that the bank’s server was 1
seized, and the bank had to pay money in bitcoins to get the server back. This kind of attack is
known as:
(A) Identity Theft
(B) Phishing
(C) Ransomware
(D) Plagiarism
15. While creating a Series from a dictionary, if no index is specified, the ___________ are used 1
to represent the index of the Series.
(A) Keys of a dictionary
(B) Values of a dictionary
(C) key-value pairs of a dictionary
(D) sequence of numbers starting from 0
16. Which of the following functions is used to display the cardinality of a table in MySQL? 1
(A) COUNT()
(B) COUNT(ROWS)
(C) COUNT(COLUMNS)
(D) COUNT(*)
[3]
17. Which of the following commands is the correct way to select a column labeled city from a 1
DataFrame named DF?
(A) DF.label['city']
(B) DF.loc[:,'city']
(C) DF.head['city']
(D) DF.tail['city']
18. Which method is used to save the output of pyplot as an image file, say, filename? 1
(A) pyplot.savefig("filename.png")
(B) pyplot.save_figure(filename)
(C) pyplot.save(filename)
(D) pyplot.save_fig(filename)
19. Abha has created a document on a desktop computer in her lab. She wants to print it out 1
using a printer in the lab that is available on the same network. Which type of network is
formed in this case?
(A) WAN
(B) MAN
(C) PAN
(D) LAN
Q 20 and 21 are ASSERTION (A) AND REASONING (R) 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
20. Assertion (A): To use the pandas library in a Python program, one must import it. 1
Reasoning (R): pandas provide two data structures for processing the data – Series and
DataFrame.
21. Assertion (A): To retrieve data from a table in MySQL, SELECT statement is used. 1
Reasoning (R): SELECT is a DDL command.
22. In the context of the Pandas library in Python, explain the key differences between a Series 2
and a DataFrame.
OR
What do you mean by indexing in Pandas? Write the names of two forms of indexing used in
Pandas.
23. Differentiate between the active digital footprint and passive digital footprints. 2
[4]
24. Consider the following string value in a MySQL database: 2
' Orange Education! '
Write suitable SQL queries for the following:
a. To remove leading and trailing spaces from the string.
b. To extract the first five characters from the string.
26. Define the following terms in the context of relational database management systems 2
(RDBMS):
a. Tuples
b. Candidate key
27. Mention any two health hazards associated with inappropriate and excessive use of gadgets. 2
28. The Python code below contains errors. Rewrite the correct code and underline the 2
corrections made.
import Pandas as pd
df ={"HP":{"Desktops","Laptops","Printers"},"Sales":[10,14,9]}
df= pd.DataFrame(DF)
print("df")
30. Using a dictionary, write a code snippet to create the following DataFrame named players. 3
OR
What will be the output produced on the execution of the following code snippet?
import pandas as pd
values = pd.Series([10, 5, 15, 0, -5, 20], index = ['A', 'B',
'C', 'D', 'E', 'F'])
print(values['A' : 'C'])
print(values.loc['A'])
print(values[4])
[5]
31. Write MySQL statements for the following: 3
i. To create a database named Stationery.
ii. To create a table named Pens within Stationery. The specifications of table Pens are
given below:
Column Name Data Type Constraints
PenId Integer Primary Key
Company String Not NULL
Price Integer Not NULL
TABLE: TRAVEL
Cust_No Cust_Name Travel_Date DistanceKM Taxi_Code
101 Rana Dutta 2020-12-07 250 T01
102 Sharad Bali 2021-02-25 100 T04
105 Chetna 2019-11-22 420 T01
103 Manish Nagpal 2022-01-12 235 T02
107 Penny Joe 2020-03-12 365 NULL
104 Sanchit 2019-09-28 290 T05
Write SQL statements to perform the following:
a. To display all the customer names and the type of taxi they have taken.
b. For each taxi, display the average distance traveled (in km).
c. To delete the record of customers whose Taxi_Code is not known.
OR
33. Kapil wants to be a cricket coach. He wants to analyze the runs scored in the 10-over intervals, 2+2=4
that is, 1-10, 11-20, 21-20, 31-40, and 41-50. The runs scored by his team are given below:
runs = [75, 39, 48, 70, 85]
Write a Python program to generate a bar chart using the provided data. Ensure the chart
includes an appropriate title and labels for the x-axis and y-axis.
[6]
OR
Below is a line chart showing the monthly rainfall (in centimeters) for the year's first six
months. Write a Python program to recreate this chart using matplotlib. Ensure the x-axis is
labeled with the months (January to June) and the y-axis shows the rainfall in centimeters.
Line Chart Details:
Months: January, February, March, April, May, June
Rainfall (in mm): 14, 9, 18, 7, 15, 12
34. Rakul is a database administrator in a music company. He has created the table 4
MUSIC_ALBUMS as shown below:
Table: MUSIC_ALBUMS
[7]
OR
Consider the table, GARMENT given below:
GCODE GNAME SIZE COLOUR PRICE DOP
111 TSHIRT XL RED 1400.00 2022-01-06
112 JEANS L BLUE 2023-11-20
113 SKIRT M BLACK 1100.00 2020-07-18
114 LADIES XL BLUE 4000.00 2024-12-16
JACKET
115 TROUSERS L RED 1500.00 2024-05-19
116 LADIES L PINK 1200.00 2019-10-18
TOP
When executed, what output will be produced for each of the following SQL queries?
a. SELECT LEFT(GNAME, 2)
FROM GARMENT
WHERE COLOUR = 'RED';
b. SELECT AVG(PRICE)
FROM GARMENT
WHERE SIZE = 'L';
c. SELECT SUM(PRICE)
FROM GARMENT
GROUP BY COLOUR;
d. SELECT MIN(DOP)
FROM GARMENT;
35. GNG School of Uttarakhand is setting up a secured network for its campus at Rishikesh to 5
operate its day-to-day office and conduct web-based activities. They are planning to have
network connectivity between four buildings. Answer questions (i) to (v) after going through
the building positions on the campus and other details, which are given below:
[8]
Number of Computers in each building:
Building Number of
Computers
Main Building 130
Admin 45
Finance 62
Academic 38
As a network expert, you are required to give the best possible solutions for the following
queries of the university administration:
a. Suggest cable layout for the connections between the various buildings,
b. Suggest the most suitable building to house the network server.
c. Suggest the placement of the following devices:
(i) Switch/Hub
(ii) Repeater
d. Which of the following transmission mediums can ensure fast Internet connectivity
throughout the campus?
(i) Optical Fibre
(ii) Coaxial cable
(iii) Ethernet Cable
e. The school plans to host an online webinar with an expert in Mumbai for all its
teachers. Which network protocol will be used for the webinar?
[9]