XII IP Model 1 Ans
XII IP Model 1 Ans
4. (b) INSTR( )
5. (a)Ergonomics
6. (a) size
7. (d) line( )
8. False
9. (c) pd.Series()
10. (a) Phishing
11. (a) pow()
12. (b)label
13. (c)pd.read_csv('A.csv’)
14. (b) copyright
15. (c) NaN
16. (b) Select ucase(“Large”);
17. (b) S. tail(3)
18. (d) 20 years
19. (c)Sending an email to a friend
20. (d)A is false but R is True
21. (a)Both A and R are true and R is the correct explanation for A
Section B (7 X 2 = 14 Marks)
22. import pandas as pd (2)
d ={“Arun”: 40,”Beena”:50,”Tom”:21}
friend=pd.Series(d)
OR
Pandas DataFrame is two-dimensional size-mutable, potentially heterogeneous
tabular data structure with labelled axes (rows and columns).
Example:
import pandas as pd
df=[{store1:[300,230,450,230]},{store2:[350,340,403,210],
{store3:[250,180,145,160]}]
df=pd.DataFrame(df, columns=["QTR1”,”QTR2", “QTR3”])
print(df)
23. 1. Use coarse language · (2)
2. Send spam ·
3. Overuse abbreviations ·
4. Speak negatively of others.
24. SELECT Stream, Max(Agg) FROM Student group by stream ; (2)
SELECT Stream, count(*) FROM Student group by stream ;
25. STATIC WEBPAGE DYNAMIC WEBPAGE (2)
1. Pages will remain same Content of pages are different for different
until someone changes it visitors.
manually.
2. Static webpages are written Dynamic webpages are written in
in languages such as: languages such as: CGI, AJAX, ASP,
HTML, JavaScript, CSS ASP.NET, etc.
3. Less complexity. Complicated .
4. Information change rarely. Information change frequently.
5. Less time for loading More time for loading.
6. Database is not used. Database is used.
OR
26. (2)
a) df.shape
b) df.columns
Section C (4 X 3 = 12 Marks)
29. (3)
• Use Certified E-Waste Recycling Centers
• Donate or Sell Old Devices:
• Participate in Manufacturer Take-Back Programs
30 (3)
import pandas as pd
d1 = {'HOUSE': 'Vindhya', 'POINTS': 10}
d2 = {' HOUSE ': 'Satpura', ' POINTS ': 15}
d3 = {' HOUSE ': 'Shivalik', ' POINTS ': 12}
d4 = {' HOUSE ': 'Aravali', ' POINTS ': 30}
data = [d1, d2, d3, d4]
p_h = pd.DataFrame(data)
print(p_h)
OR
import pandas as pd
data = {'Kerala':'Palakkad',' Tamilnadu ':' Coimbatore ',' Karnataka ':' Bangalore '}
s = pd.Series(data)
print(s)
31 (3)
CREATE TABLE Employee (
EmpID NUMERIC PRIMARY KEY,
Name VARCHAR(20),
Salary Integer,
DateOfBirth DATE,
Commision FLOAT(10,2) );
32 (3)
a)
SUM(QTY) COMPANY
40 MARUTI
43 MAHINDRA
b)
ROUND(QTY/2)
13
13
9
8
c)
COMPANY
MARUTI
MAHINDRA
OR
SELECT * FROM Customer WHERE YEAR(Orderdate) = 2023;
SELECT COUNT(*) FROM Customer WHERE Country = 'India';
SELECT RIGHT(Emailid, 9) FROM Customer WHERE Country = 'Denmark';
Section D (2 X 4 = 8 Marks)
33 (4)