Ms. Anjali, a data analyst, has been assigned the task of creating a histogram to display the age distribution of ten participants in a workshop. She has been provided with the following list of their ages:
Ages = [22, 25, 24, 28, 30, 24, 29, 27, 21, 23]She has started writing a Python program for it. However, the code is incomplete. Help her complete the program by filling in the missing parts, so that the histogram as shown below is displayed.
import matplotlib.pyplot as plt
Ages = [22, 25, 24, 28, 30, 24, 29, 27, 21, 23]
binsize=[20,22,24,26,28,30]
plt.________(Ages, bins=binsize, edgecolor = 'black', label = 'Participants') # Statement-1
______.xlabel('Age') # Statement-2
plt.ylabel('Number of Participants')
plt.title("Age Distribution")
plt.________ # Statement-3
___________ # Statement-4I. Write the suitable code for the blank space in the line marked as Statement-1 which plots the histogram.
II. Fill in the blank in Statement-2 to use the correct alias of the required module to set the label on x axis.
III. Fill in the blank in Statement-3 with the correct Python code to display the legend on the graph.
IV. Fill in the blank in Statetment-4 with the appropriate Python code to display the graph.
plt.hist(Ages, bins=binsize, edgecolor='black', label='Participants') plt.legend() plt.show() (a) What is data protection?
(b) Mention any two precautionary measures one can take to avoid the risk of cybercrime.
Consider the DataFrame Scholarship shown below:
| Name | Course | Amount | |
|---|---|---|---|
| 0 | Ananya | B.Sc. | 62000 |
| 1 | Karan | B.Tech | 67000 |
| 2 | Simran | MCA | 64000 |
| 3 | Rahul | BCA | 70000 |
| 4 | Priya | BA | 69000 |
Answer the following questions:
Write suitable SQL query for the following:
I. To display only the date part from the date/time expression '2026-01-01 10:10:10'
II. To convert all customer names from the Cust_Name column to lowercase in the Customer table.
III. To extract the first 4 characters from the City_Name column in Location table.
IV. To display the name of the city from the CITY column in EVENT table, after removing leading spaces.
V. To find the average salary from Salary column in Employees table.
Write suitable SQL query for the following:
I. To display the value of 172.
II. To display the day part of the dates in the Hire_Date column of the Employee table.
III. To display the maximum value of the Bill_Amount column in the Bill table.
IV. To remove leading and trailing spaces from the Location column in the Branch table.
V. To display total salary from tot_sal column in Employees table.
Consider the table LIBRARY as given below.
| BookId | Title | Genre | Price |
|---|---|---|---|
| 101 | Python Basics | Technology | 278 |
| 201 | The Silent Patient | Fiction | 340 |
| 301 | Data Science | Technology | 291 |
| 401 | Oceans | Marine Life | NULL |
(I) Which attribute(s) can be considered as the Candidate keys(s)? Justify your answer.
(II) Write an SQL query to insert a new record with the following values: BookId: 501, Title: AI for ALL, Genre: Technology, Price: 589
(III) Write an SQL query to add a new column Author that is a character data type of size 20.
(a) What is data protection?
(b) Mention any two precautionary measures one can take to avoid the risk of cybercrime.

The electric potential for various points in $x$-$y$ plane is given by $V = 1.0 x^2 - 2.0 y^2$, where $V$ is in volts and $x$, $y$ are in metres. The angle that the electric field at point $(2.0$ m$, 1.0$ m$)$ makes with the positive $x$-axis is: