0% found this document useful (0 votes)
7 views

KEY SET A

The document provides the answer key for a set of Informatics Practices questions for Class XII at Shree Swaminarayan Gurukul International School. It includes answers for multiple-choice questions, explanations of key concepts in Python and data handling, and SQL queries related to database management. Additionally, it addresses topics such as intellectual property rights, health concerns from digital device usage, and environmental issues related to e-waste disposal.

Uploaded by

orthadoxist
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
7 views

KEY SET A

The document provides the answer key for a set of Informatics Practices questions for Class XII at Shree Swaminarayan Gurukul International School. It includes answers for multiple-choice questions, explanations of key concepts in Python and data handling, and SQL queries related to database management. Additionally, it addresses topics such as intellectual property rights, health concerns from digital device usage, and environmental issues related to e-waste disposal.

Uploaded by

orthadoxist
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 4

Shree Swaminarayan Gurukul International School

PHASE-III_XII_INFORMATICS PRACTICES

ANSWERS KEY SET-A


SECTION-A

1 B 2 C 3 C 4 D 5 C
6 C 7 C 8 C 9 B 10 D
11 B 12 D 13 D 14 C 15 C
16 C 17 D 18 C 19 C 20 A
21 D

SECTION-B

22. (A) Series in Pandas is a


one-dimensional labele
strings, floats, etc.). It is similar to a column in array that can hold data of any type (integen spreadsheet
or a single-column DataFrame.
Example:
import pandas as pd
data = pd.Series ([10, 20, 30, 40]) print(data)
Or

(B) In Python, a library is a collection of pre-written code that you can use to perform common tasks
without writing them from scratch.
Use of Libraries:
Pandas Used for data manipulation and analysis such as handling DataFrames.
Matplotlib Used for data visualization, like creating plots and charts.
23. Intellectual Property Rights (IPR) These are legal rights that protect the creations of the human
intellect. The nature of these works can be artistic, literary or technical etc.
Importance in the digital world These rights help prevent the unauthorized use or reproduction of digital
content and ensure that creators are fairly compensated and incentivized for their original work.
24. I. SELECT SUBSTRING('Database Management System. 10, 6);
II. SELECT INSTR('Database Management System. 'base');
25. (A) The Internet is a global network of interconnected computers that enables communication and
data sharing between devices. The World Wide Web (WWW) is a system of interlinked web pages
accessible over the Internet.
The Internet provides the infrastructure, while the WWW is one of the services that run on it.
Or
(B) Browser cookies are small text files stored on a user's device by websites to remember user
preferences, login details, or track browsing activity.
Advantage Cookies help improve user experience by remembering login details, allowing automatic sign-
ins without re-entering credentials each time.
26. A Primary Key is a unique identifier for a record in a database table. It ensures that no two rows have
the same value.
The difference between a Candidate Key and a Primary Key is that a table can have multiple Candidate
Keys (potential unique identifiers), but only one Primary Key is chosen from them.
27. Two health concerns associated with excessive use of digital devices are:
(i) Eye strain or Computer Vision Syndrome (CVS) due to prolonged screen time.
(ii) Musculoskeletal problems like neck and back pain from poor posture.
28. (A) import pandas as pd
D1
{'Name': 'Rakshit'. 'Age': 25}
D2 {'Name': 'Paul', 'Age': 30} D3 = {'Name': 'Ayesha'. 'Age: 28) data= [D1, D2, D3]
df = pd.DataFrame(data) print(df)
Or
(B) import pandas as pd
data = ['Chennai'. 'Lucknow'. 'Imphal']
indx = ['Tamil Nadu'. 'Uttar
s = pd.Series (data, indx)
print(s)
Pradesh'. 'Manipur']
29. I. Environmental hazard Improper disposal of
e-waste can release toxic chemicals like lead and mercury into the soil and water, harming plants,
animals, and human health.
II. Responsible disposal Ayesha's family can take the old computer to a certified e-waste recycling center
to ensure safe and eco-friendly disposal. III. Importance of recycling Recycling helps recover valuable
materials from e-waste, reduces the need for new resources, and minimizes the environmental impact of
waste in landfills.
30. (A) import pandas as pd
data = [
{"Product": "Laptop", "Price": 60000},
{"Product": "Desktop". "Price": 45000},
{"Product": "Monitor", "Price": 15000},
{"Product": "Tablet", "Price: 30000}
]
df pd.DataFrame(data)
print(df)
Or
(B) import pandas as pd
data{"Russia": "Moscow", "Hungary": "Budapest", "Switzerland": "Bern"}
series pd. Series(data)
print(series)
31. 1. CREATE TABLE STUDENTS (
Student ID NUMERIC PRIMARY KEY.
FirstName VARCHAR(20).
LastName VARCHAR(10).
DateOfBirth DATE.
Percentage FLOAT(10.2)
):
II. INSERT INTO STUDENTS (StudentID, FirstName, LastName, DateOfBirth. Percentage)
VALUES (1.
75.5):
Supriya', 'Singh', '2010-08-18",
32. (A) I. SELECT DEPARTMENT, AVG(SALARY) AS AVG SALARY FROM PAYROLL GROUP BY DEPARTMENT:
II. SELECT DESIGNATION FROM PAYROLL ORDER BY SALARY DESC:
III. SELECT EMPLOYEE. EMP_NAME, PAYROLL.DEPARTMENT FROM EMPLOYEE JOIN PAYROLL ON
EMPLOYEE.EMP_ID = PAYROLL.EMP_ID:
Or
(B) I SELECT Sport. SUM(Medals) AS Total Medals FROM MEDALS GROUP BY Sport:
II. SELECT UPPER (Name) FROM ATHLETE WHERE Country = 'INDIA':
III. SELECT A.Name. M. Sport FROM ATHLETE A JOIN MEDALS M ON A.AthleteID M.AthleteID:
33. I. matplotlib.pyplot
II. books_read
III. ylabel
IV. Number of Books Read by Students
34. (A) I. SELECT LOWER(TITLE) AS title lowercase FROM BOOK;
II. SELECT MAX(PRICE) AS highest price FROM BOOK;
III. SELECT TITLE, LENGTH(TITLE) AS title_length FROM BOOK;
IV. SELECT BCODE, PRICE FROM BOOK ORDER BY PRICE DESC;
Or
(B) I. Select LENGTH(MED_NAME) from MEDICINE where STOCK > 100;
LENGTH(MED_NAME)
11
11
7
II. Select
from MED NAME MEDICINE where month (DEL DATE) – 4;
MED_NAME
IBUPROFEN
III. Select MED NAME from MEDICINE where STOCK between 120 and 200;
MED_NAME
PARACETAMOL
COUGH SYRUP
INSULIN
IV. Select max(DEL DATE) from MEDICINE;
max(DEL_DATE)
2023-06-15

35. I. HR is the most suitable department because it has maximum number of computers.
II. HR FINANCE

TECHNICAL SUPPORT
III. Switch/Hub
IV. WAN
Reason The distance between the Bengaluru Head Office and Lucknow Regional Office is 1900 km, which
is too large for a LAN (Local Area Network) or MAN (Metropolitan Area Network)
A WAN is designed to cover extensive geographic areas and is suitable for connecting remote office
over such long distances.
V. A dynamic website is recommended because: Personalization It allows for interactive features and
personalized content based on user login information, such as performance metrics and personalized
dashboards.
Real-Time Data It can display real-time data updates, which is crucial for monitoring employee
performance and other metrics.
36. I. print(df.head(2))
II. print(df['Title'])
III. df = df.drop(columns=['Rating']) IV. print(df.loc[2:4. 'Title'])
V. df = df.rename(columns={'Title': 'Name'})
36. (A) I. SELECT AVG(test_results) AS average_scoreFROM Exams;
II. SELECT RIGHT(registration_number, 3) AS last_three_characters FROM Vehicles;
III. SELECT TRIM(username) AS trimmed_username FROM Users;
IV. SELECT MAX(salary) AS max_salary FROM Employees;
V. SELECT COUNT(*) AS row_count
FROM
Suppliers;
Or
(B) I. SELECT ROUND(3.14159, 2);
II. SELECT MOD(125,8);
III. SELECT LENGTH('NewDelhi');
IV. SELECT SUBSTRING("Informatics Practices'. 1, 5);
V. SELECT TRIM(email) FROM Students,

You might also like