CHINMAYA VIDYALAYA, CMECT – GC
FIRST MODEL EXAMINATION, 2024 - 25
INFORMATICS PRACTICES (065)
Class : XII MARKING SCHEME Marks : 70
Time: 3 Hrs
Section -A (21 X 1 = 21 Marks )
1. False
2. (d) 2400
3. (b)SMTP
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
Web Page Web Site
Single page A collection of related webpages linked
together under same domain
Development requires minimum Development takes a long time
amount of time
Webpage has content about a single Has content about several entities
entity
Address of the URL of webpage URL of website does not depends upon
depends on website webpage
It is the content that is to be displayed Website is a place used to display the
on a website content
Web page URL has an extension No extension used in URL of a website.
Ex. cbseacademic.nic.in
Like cbseacademic.nic.in/index.html
26. (2)
Where Clause Having Clause
WHERE Clause is used to HAVING Clause is used to
filter the records from the table filter record from the groups
based on the specified based on the specified
condition. condition.
WHERE Clause can be used HAVING Clause cannot be
without GROUP BY Clause used without GROUP BY
Clause
Syntax:- Select * from table_name
Select * from table_name Group by col_name
Where condition Having condition;
Group by col_name;
27. Four health concerns associated with digital device addiction include: (2)
1.Eye Strain and Vision Issues
2. Sleep Disorders
3.Mental Health Issues
4. Physical Health Problems
increasing the risk of obesity, cardiovascular issues, and metabolic disorders.
Poor Posture and Musculoskeletal pain in hands and wrists.
28. (2)
a NaN
aa NaN
b 22.0
c 33.0
OR
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) );
INSERT INTO Employee (EmpID,Name,Salary, DateOfBirth, commision) VALUES
(1101, ‘Thomas’,60000, ’ 2002-08-28’ , 750.50);
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)
import pandas as plt
Type = ['Gold', 'Silver', 'Bronze']
Tally = [0, 2.5, 5 ,7.5 ,10 ,12.5 ,15 ,17.5 ,20]
plt.bar ( Type, Tally)
plt.xlabel('Medal_Type')
plt.ylabel('Medal')
plt.savefig(“A.png”)
plt.title('Indian Medal Tally in Olympics')
plt.show()
34 (4)
(a) SELECT Subject, MAX(Exp) FROM TEACHER GROUP BY Subject;
(b) SELECT Category, MIN(Exp) FROM TEACHER GROUP BY
Category;
(c) SELECT Category, COUNT(*) FROM TEACHER WHERE Category IN
('PGT', 'TGT') GROUP BY Category;
(d) SELECT LEFT(Name, 3) FROM TEACHER WHERE Subject =
'Physics';
OR
a)
count(*)
6
b)
SUM(Fee)
46000
c)
LEFT(Activity, 2)
Sw
Da
d)
AVG(Fee)
9200
Section E (3 X 5 = 15 Marks)
35 (5)
a)Star Topology with C in the middle
b)Block C
c)Repeater is needed between B and C since the distance is more than 100m
Hub and Switch is needed in all the blocks
d)Radio Waves
e) MAN . MAN is used when the area to be covered is within a city.
36 (5)
a)
import pandas as pd
data = { 'L&T': [80, 98, 77, 65], 'TCS': [88, 67, 93, 50],
'WIPRO': [66, 75, 89, 40], 'INFOSIS': [74, 98, 92, 80] }
company = pd.DataFrame(data, index=['QTR1', 'QTR2', 'QTR3', 'QTR4'])
infosys_profit_rate = company['INFOSIS']
print(infosys_profit_rate)
b)
qtr3_profit_rate = company.loc['QTR3']
print(qtr3_profit_rate)
c)
WIPRO INFOSIS
QTR3 89 92
QTR4 40 80
d) print(company.loc["QTR1":"QTR2"],:)
OR
print(company.loc["QTR1":"QTR2"])
e)
company.rename(columns={'INFOSIS': 'COGNIZANT'}, inplace=True)
print(company)
37 (5)
a) Select sysdate();
b) Select instr(“CORPORATE LAWYER”,”OR”) ;
c) Select pow(4,3);
d) Select substr(“CORPORATE”,2,4);
e) Select left(“MODEL EXAMINATION”,5);
OR
(a) Select salesman.name , customer.cust_name, customer.city
from salesman,customer where salesman.city=customer.city;
(b) Select salesman.salesman_id, commission, cust_name from salesman, customer
where salesman.salesman_id=customer.salesman_id and grade between 200
and 300
(c) Select salesman.city,name, cust_name from salesman, customer where
salesman.salesman_id=customer.salesman_id ;
(d) Select city,avg(grade) from customer group by city;
(e) select distinct city from Salesman;