XII IP Set-4 MS by KVS RO C11hennai

You might also like

Download as pdf or txt
Download as pdf or txt
You are on page 1of 6

PART A

S.No Section - I Marks


. Attempt any 15 questions from questions 1 to 21
1 Insurance 1
2 ‘line’ for line plot 1
3 4 1
1 mark for correct answer
4 1

1 mark for correct answer.


5 1

6 matplotlib.pyplot 1
7 Add-on 1
8 Index 1
9 Static 1
10 Tree/Star 1
11 5 1
12 Surfing website / online ticket booking or any two correct activities that can leave 1
digital footprint.
13 1 1
14 Router 1
15 (a) Hyper Text Transfer Protocol (b) Uniform Resource Locator 1
16 Any two examples of e-waste. 1
17 Spam 1
18 Any two health hazards
19 Delete from activity; 1
20 Switch 1
21 Any one disadvantage 1
22 (i) print(happy_df.iloc[0 : 5 ] 1
(ii) print(df.shape) 1
(iii) (a) print(happy_df.Region) and (d) print(happy_df.iloc[:,1]) 1
(iv) 4 Canada 1
5 Finland
6 Netherlands
Name: Country, dtype: object
(v) (b) print(happy_df.max()) 1
23 (i) (a) SELECT MAX(ODate) FROM cityair; 1
(ii) (b) SELECT MONTHNAME(ODate) FROM cityair; 1
(iii) 114.6 1
(iv) 7 1
(v) DELETE FROM cityair WHERE Odate = “2019-03-01”; 1
24 import pandas as pd 2
import numpy as np
arr= np.random.randint(10,20,(10,))
s = pd.Series(arr)
½ mark for correct imports.
1 mark for correct numpy array creation.
½ mark for correct creation of Series.
25 Primary Key : A column of collection of columns to identify a tuple in a relation. It is 2
used to search / locate row in a relation. There can be only one primary key in a table.
1 mark for correct definition with proper significance.
1 mark for stating only one primary key in a table.

OR

TRIM () function is used to remove leading and trailing spaces from a string a table. It
can be used as
TRIM(String)
For example;
SELECT TRIM(' bar ');

-> 'bar'
1 mark for stating purpose of the functions
1 mark for correct example.

26 (i) Gender column datatype char(1) as all the possible values can be accommodated and 2
it will be space efficient.
(ii) INSERT INTO Student (Rollno, Sname, Subject, Marks) VALUES (“003”,
”SUMAN”, “IP”, 75);

1 mark for each correct answer


27 (i) s1 = s + 1 2
print(s1)
(ii) s.add(1,fill_value=0)
print(s)
1 mark each for correct answer.
28 The ORDER BY keyword is used to sort the result-set in ascending or descending 2
order.
The ORDER BY keyword sorts the records in ascending order by default. To sort the
records in descending order, use the DESC keyword.
1 mark for correct explanation.
1 mark for appropriate example.
29 (i) select mid(“AS YOU know MORE”,8,4); 2
(ii) select length(“AS YOU know MORE”);

OR

(i) YOU GROW MORE


(ii) Grow

1 mark for each correct answer


30 (i) print(sales_df.sum().loc[‘July’]) 2
(ii) sales_df.insert(4,column="August",value=[70,94,80,93] )
1 mark each for above or any other correct line(s) of code
31 1 mark each for any two correct advantages 2
32 ½ mark each for any four correct nettiquettes
33 Cyberbullying is bullying with the use of digital technologies. It can take place on 2
social media, messaging platforms, gaming platforms and mobile phones. It is repeated
behaviour, aimed at scaring, angering or shaming those who are targeted.

1 mark for correct definition of the term


½ mark each for any two steps to be taken in case you are victim of cyber bullying.
Section -II
34 one a 3
two b
three c
dtype: object
3
1 mark for correct index labeling
½ mark for correct elements
½ mark for correct dtype
1 mark for correct size value
35 Phishing is a method of trying to gather personal information using deceptive e-mails 3
and websites.
1 mark for correct definition of the term
½ mark each for any two steps to be taken to avoid being victim of phishing.
36 x = emp_df['Name'] 3
y = emp_df['Age']
pl.plot(x,y)
pl.xlabel("Name")
pl.ylabel("Age")
pl.title("Name vs Age")
pl.show()
½ mark for getting correct values of x and y axis
1 mark for correct plot function with minimum necessary parameters
½ mark for giving correct axis labels
½ mark for correct title
½ mark for show() functioning
OR

x = emp_df['Name']
y = emp_df['Salary']

pl.bar(x,y)

pl.xlabel("Name")
pl.ylabel("Salary")
pl.title("Name vs Salary")
pl.show()

½ mark for getting correct values of x and y axis


1 mark for correct plot function with minimum necessary parameters
½ mark for giving correct axis labels
½ mark for correct title
½ mark for show() functioning
37 (i) SELECT MAX(PROD_QTY) FROM product; 3
(ii) SELECT PROD_PRICE*PROD_QTY AS ‘Value’ FROM product;
(iii) SELECT AVG(PROD_PRICE) FROM product;

1 mark for each correct query


38 import pandas as pd # ½ mark 5
housing_df = pd.read_csv("housing.csv") # 1 Mark
print(housing_df) # ½ mark

print(housing_df[housing_df.loc[:,'bath']==2]) # 1Mark

print(housing_df.loc[:,'price']*100000) # 1 Mark

print(housing_df.head(3)) # 1 Mark

Give marks for any alternate method or the task done in multiple steps.
39 (i) SELECT LEFT(DESCRIPTION,3) FROM CLOTH; 5
(ii) SELECT LTRIM(DESCRIPTION) FROM CLOTH;
(iii) SELECT LEN(DESCRIPTION) FROM CLOTH;
(iv) SELECT COUNT(DISTINCT MCODE) FROM CLOTH;
(v) SELECT DAYNAME(LAUNCHDATE) FROM CLOTH;

OR
(i) SELECT SUM(PRICE) FROM CLOTH WHERE YEAR(LAUNCHDATE) = 2008;
(ii) SELECT MIN(PRICE) FROM CLOTH GROUP BY MCODE;
(iii) SELECT MAX(LAUNCHDATE) FROM CLOTH;
(iv) SELECT LOWER(DESCRIPTION) FROM CLOTH;
(v) SELECT MOD(PRICE,10) FROM CLOTH;

1 mark each for correct query. Any alternate method also should be given due credit.
40 (i) Block C would be the most suitable place to house server as it has maximum 5
number of computers.
(ii) The most suitable layout would be

A B

C D

Topology : Star/Tree
(iii) Modem should be placed where the server is therefore it should be placed at Block
C.
(iv) Dynamic website as the dynamic website can alter based on customer’s choice.
(v) WAN as the distance between the two locations would be more than 100KM

1 mark for correct answer.

You might also like