14 - MS Xii Ip 01
14 - MS Xii Ip 01
MARKING SCHEME
1 False 1
(1 mark for correct answer)
2 c. DF.iloc[6:10, 3:6] 1
(1 mark for correct answer)
3 d. DF = pandas.read_csv(“cfile.txt”) 1
(1 mark for correct answer)
4 d. tail() 1
(1 mark for correct answer)
5 b. S = pd.Series(Monument) 1
(1 mark for correct answer)
6 b. Boolean Indexing 1
(1 mark for correct answer)
7 c. Line plot 1
(1 mark for correct answer)
8 a. 1 1
(1 mark for correct answer)
9 a. WHERE 1
(1 mark for correct answer)
10 b. SELECT COUNT(*) FROM ORDERS; 1
(1 mark for correct answer)
11 c. Similar to WHERE clause but is used for groups rather than rows. 1
(1 mark for correct answer)
12 c. HAVING 1
(1 mark for correct answer)
13 b. P-3, Q-4, R-1, S-2 1
(1 mark for correct answer)
14 b. Linux 1
(1 mark for correct answer)
15 a. VoIP 1
(1 mark for correct answer)
16 a. PAN 1
(1 mark for correct answer)
17 d. IT act 1
(1 mark for correct answer)
18 d. Intellectual Property Right 1
(1 mark for correct answer)
19 d. Sound Pollution 1
(1 mark for correct answer)
20 c. Assertion (A) is True, but Reason (R) is False 1
(1 mark for correct answer)
21 d. Assertion (A) is False, but Reason (R) is True 1
(1 mark for correct answer)
22 A Series is a one-dimensional array containing a sequence of values of any data type (int, 2
float, list, string, etc) which by default have numeric data labels starting from zero. We can
imagine a Pandas Series as a column in a spreadsheet. An example of a series containing the
names of students is given below:
Index Value
0 Arnab
1 Samridhi
2 Ramit
3 Divyam
(1 mark for correct definition)
(1 mark for correct example)
-- OR --
Library: A collection of modules providing functionalities for specific tasks.
Pandas: Used for data analysis
Matplotlib: Used for creating plots
(1 mark for correct definition)
(1/2 mark each for correct use of each library)Pandas
23 deepika 24 2
era 35
(1 marks for each correct output line)
24 In MySQL, an alternate key is a candidate key that is not the primary key of a table. Alternate 2
keys are also known as secondary keys. For example in Student table, Class+Section+Rollno,
Name+MobileNo etc.
A key attribute or combination of non-key attributes that can be responsible for unique
identification of each tuple in a relation is known as Primary Key. For example in Student
table, AdmNO.
( 1 marks for each correct difference or 1 marks for each correct definition)
25 a. SELECT DAY("2024-11-01") 2
b. SELECT DAYNAME("2024-11-01")
( 1 marks for each correct )
26 The Internet is a vast network of interconnected computer networks facilitating global 2
communication and data exchange. The World Wide Web (WWW), on the other hand, is a
system of interlinked hypertext documents accessed via the Internet.
(1 mark for correct definition)
(1 mark for correct difference)
-- OR --
Web server: A web server is used to store and deliver the contents of a website to clients such
as a browser that request it. A web server can be software or hardware.
Web hosting: It is a service that allows to put a website or a web page onto the Internet, and
make it a part of the World Wide Web.
(1 mark each for each correct explanation)
27 Column A Column B 2
Plagiarism Copy and paste information from the Internet into your report and
then organize it
Hacking Breaking into computers to read private emails and other files
Credit card fraud Fakers, by offering special rewards or money prize asked for personal
information, such as bank account information
Digital Foot Print The trail that is created when a person uses the Internet.
( ½ marks each for correct matching )
28 Two health concerns due to excessive use of Digital Devices: 2
• Eye strain and vision problems.
• Musculoskeletal issues like neck and back pain.
• Poor memory
• Lack of sleep
• Back pain and neck pain
(1 mark each for any two correct health concern)
29 import pandas as pd 3
data = [ {‘Name’:‘Sanya’, ‘Marks’:95, ‘Trials’:2, ‘Passed’:‘Yes’},
{ ‘Name’:‘Krish’, ‘Marks’:70, ‘Trials’:3, ‘Passed’:‘No’},
{ ‘Name’:‘Rishav’, ‘Marks’:96.5, ‘Trials’:1, ‘Passed’:‘Yes’},
{ ‘Name’:‘Kriti’, ‘Marks’:92, ‘Trials’:1, ‘Passed’:‘Yes’} ]
df = pf.DataFrame(data)
(1 mark for importing pandas)
(1 mark for creating dictionary)
(1 mark for creating dataframe from dictionary)
-- OR --
import pandas as pd
data = {‘India’:‘Delhi’, ‘Russia’:‘Moscow’, ‘Australia’:‘Canberra’,
‘Canada’:’Ottawa’}
S = pd.Series(data)
(1 mark for importing pandas)
(1 mark for creating dictionary)
(1 mark for creating series from dictionary)
30 a. SELECT SUM(SALARY) FROM EMPSALARY 3
GROUP BY DESIGNATION;
b. SELECT UPPER(FIRSTNAME), UPPER(LASTNAME) FROM EMPLOYEE
WHERE CITY = ‘GHAZIABAD’;
c. SELECT FIRSTNAME, GRADE FROM EMPLOYEE E, EMPSALARY S
WHERE E.EMPID = S.EMPID;
(1 mark for each correct query)
-- OR --
Write appropriate SQL queries for the following:.
a. SELECT AVG(SALARY) FROM EMPSALARY
GROUP BY DESIGNATION;
b. SELECT DESIGNATION FROM EMPSALARY
ORDER BY DESIGNATION DESC
c. SELECT FIRSTNAME, LASTNAME, DESIGNATION
FROM EMPLOYEE E, EMPSALARY S
WHERE E.EMPID = S.EMPID.
(1 mark for each correct query)
31 a. CRAETE TABLE STOCK 2
( ITEMNO INT(4) PRIMARY KEY, +
ITEMNAME VARCHAR(20) NOT NULL,
1
RECORDDATE DATE,
=
QTYINHAND INTEGER );
3
(½ mark for CREATE TABLE stock
½ mark for correctly specifying columns
½ mark each for correctly specifying constraints primary key, not null)
a.
df['Release_Year']= [1930,1927,2010,2002]
b.
df1= pd.DataFrame([‘The Secret',800,6,2006], columns=[‘Name’,
‘Price’, ‘Ratings’, ‘Release_Year’])
df.append(df1)
c.
del df['Price']
or
df.pop('Price')
d.
df.loc[:,"Name"]
or
df.iloc[: 0]
or
df[‘Name’]
e.
Rename the column name 'Name' to ‘Movie_Name’.
df.rename(columns={"Name": "Movie_Name"})
( 1 mark for each correct command )
36 a. SELECT INSTR(‘MALAYALAM’, ‘LA’); 5
b. SELECT ROUND(28.2781, 2);
c. SELECT MONTHNAME(hiredate) FROM employee;
d. SELECT TRIM(title) FROM Books;
e. SELECT COUNT(*) FROM Suppliers;
( 1 mark for each correct command )
-- OR --
a. SELECT ROUND(2.718281828459045, 4);
b. SELECT MOD(100, 19);
c. SELECT UCASE('NewDelhi');
d. SELECT RIGHT('Info Pract', 5);
e. SELECT MID(‘Kendriya Vidyalaya’, 10, 5);
( 1 mark for each correct command )
37 a. The most appropriate location of the server inside the MUMBAI campus is ADMIN block 5
as it hosts maximum number of computers
( ½ mark for the server location and ½ mark for justification)
b. Switch / hub can be used to connect all the computers within each building.
( 1 mark for the correct device.)
c.
Twisted Pair cable is suggested for the most efficient data transfer over the network.
( ½ mark for the layout and ½ mark for cable suggestion)
d. No. Because the distance between the blocks are less than 100 meters.
( ½ mark for the requirement of Repeater and ½ mark for reason of requirement)
e. LAN – Local Area Network will be set up among the computers connected in the
MUMBAI campus.
( 1 mark for identification of correct network)