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

CBSE AISSCE 2023 Marking Scheme for Informatics Practices

Series ⅀HEFG (Sub Code: 065 Paper Code 90) SET-4

Marking Scheme
Strictly Confidential
(For Internal and Restricted use only)
Senior School Certificate Examination, 2023
SUBJECT NAME INFORMATICS PRACTICES (SUBJECT CODE 65) (PAPER CODE 90) (Series: ⅀HEFG)

General Instructions: -
1 You are aware that evaluation is the most important process in the actual and correct
assessment of the candidates. A small mistake in evaluation may lead to serious problems which
may affect the future of the candidates, education system and teaching profession. To avoid
mistakes, it is requested that before starting evaluation, you must read and understand the spot
evaluation guidelines carefully.
2 “Evaluation policy is a confidential policy as it is related to the confidentiality of the
examinations conducted, Evaluation done and several other aspects. Its’ leakage to the
public in any manner could lead to derailment of the examination system and affect the life
and future of millions of candidates. Sharing this policy/document to anyone, publishing in
any magazine and printing in News Paper/Website etc may invite action under various rules
of the Board and IPC.”
3 Evaluation is to be done as per instructions provided in the Marking Scheme. It should not be
done according to one’s own interpretation or any other consideration. Marking Scheme should
be strictly adhered to and religiously followed. However, while evaluating answers which are
based on latest information or knowledge and/or are innovative, they may be assessed for
their correctness otherwise and due marks be awarded to them. In class-XII, while
evaluating two competency-based questions, please try to understand the given answer and
even if the reply is not from the marking scheme but correct competency is enumerated by
the candidate, due marks should be awarded.
4 The Marking scheme carries only suggested value points for the answers
These are in the nature of Guidelines only and do not constitute the complete answer. The
students can have their own expression and if the expression is correct, the due marks should be
awarded accordingly.
5 The Head-Examiner must go through the first five answer books evaluated by each evaluator on
the first day, to ensure that evaluation has been carried out as per the instructions given in the
Marking Scheme. If there is any variation, the same should be zero after deliberation and
discussion. The remaining answer books meant for evaluation shall be given only after ensuring
that there is no significant variation in the marking of individual evaluators.
6 Evaluators will mark( ✓ ) wherever the answer is correct. For wrong answer CROSS ‘X” be
marked. Evaluators will not put right (✓)while evaluating which gives an impression that the
answer is correct and no marks are awarded. This is the most common mistake which
evaluators are committing.
7 If a question has parts, please award marks on the right-hand side for each part. Marks awarded
for different parts of the question should then be totaled up and written in the left-hand margin
and encircled. This may be followed strictly.
8 If a question does not have any parts, marks must be awarded in the left-hand margin and
encircled. This may also be followed strictly.
9 If a student has attempted an extra question, the answer of the question deserving more marks
should be retained and the other answer scored out with a note “Extra Question”.
10 No marks to be deducted for the cumulative effect of an error. It should be penalized only once.
11 A full scale of marks 0 to 70 has to be used. Please do not hesitate to award full marks if the
answer deserves it.

- 1 of 20-
CBSE AISSCE 2023 Marking Scheme for Informatics Practices
Series ⅀HEFG (Sub Code: 065 Paper Code 90) SET-4

12 Every examiner has to necessarily do evaluation work for full working hours i.e., 8 hours every
day and evaluate 20 answer books per day in main subjects and 25 answer books per day in
other subjects (Details are given in Spot Guidelines).
13 Ensure that you do not make the following common types of errors committed by the Examiner
in the past:-
● Leaving the answer or part thereof unassessed in an answer book.
● Giving more marks for an answer than assigned to it.
● Wrong totaling of marks awarded on an answer.
● Wrong transfer of marks from the inside pages of the answer book to the title page.
● Wrong question wise totaling on the title page.
● Wrong totaling of marks of the two columns on the title page.
● Wrong grand total.
● Marks in words and figures not tallying/not same.
● Wrong transfer of marks from the answer book to online award list.
● Answers marked as correct, but marks not awarded. (Ensure that the right tick mark is
correctly and clearly indicated. It should merely be a line. Same is with the X for incorrect
answers.)
● Half or a part of the answer marked correct and the rest as wrong, but no marks awarded.
14 While evaluating the answer books, if the answer is found to be totally incorrect, it should be
marked as cross (X) and awarded zero (0)Marks.
15 Any un-assessed portion, non-carrying over of marks to the title page, or totaling error detected
by the candidate shall damage the prestige of all the personnel engaged in the evaluation work
as also of the Board. Hence, in order to uphold the prestige of all concerned, it is again
reiterated that the instructions be followed meticulously and judiciously.
16 The Examiners should acquaint themselves with the guidelines given in the “Guidelines for spot
Evaluation” before starting the actual evaluation.
17 Every Examiner shall also ensure that all the answers are evaluated, marks carried over to the
title page, correctly totaled and written in figures and words.
18 The candidates are entitled to obtain a photocopy of the Answer Book on request on payment of
the prescribed processing fee. All Examiners/Additional Head Examiners/Head Examiners are
once again reminded that they must ensure that evaluation is carried out strictly as per value
points for each answer as given in the Marking Scheme.

SPECIFIC INSTRUCTIONS FOR INFORMATICS PRACTICES ONLY

1 In Python, string content is accepted within a pair of single quotes ' ' or within a pair of
double quotes " ".

2 In MySQL, CHAR/VARCHAR/DATE type content is accepted within a pair of single quotes ' ' or
within a pair of double quotes " ".

3 In MySQL commands, lowercase/UPPERCASE both are correct.

4 In MySQL output questions, column headings to be ignored.

5 In MySQL output questions, alignment (left/right) of content to be ignored.

6 All answers/codes are suggestive, any other alternative correct answers to be accepted.

- 2 of 20-
CBSE AISSCE 2023 Marking Scheme for Informatics Practices
Series ⅀HEFG (Sub Code: 065 Paper Code 90) SET-4

General Instructions:
(i) This question paper contains five Parts, Part A to E.
(ii) All questions are compulsory.
(iii) Part A has 18 questions carrying 1 mark each.
(iv) Part B has 7 Very Short Answer type questions carrying 2 marks each.
(v) Part C has 5 Short Answer type questions carrying 3 marks each.
(vi) Part D has 3 Long Answer type questions carrying 5 marks each.
(vii) Part E has 2 questions carrying 4 marks each. One internal choice is given in Q. 35 against
Part E only.
(viii) All programming questions are to be answered using python language only.

Part - A
1 Which of the following topologies is very efficient and all nodes are connected to a 1
central hub?
(i) Star (ii) Tree
(iii) Bus (iv) Ring

Ans (i) Star


(1 Mark for correct answer)
2 Ramandeep is a young woman with great aspirations and has a good team of 1
like-minded people. She along with her team members started a company to sell
handicrafts online and also designed a logo for their company. What type of
intellectual property does this logo represent?
(i) Patents (ii) Copyright
(iii) Design (iv) Trademark

Ans (ii) Copyright


OR
(iv) Trademark
(1 Mark for correct answer)

3 Which of the following is a type of cybercrime where objectionable and demeaning 1


comments are posted on social media platform about a person, such that he/she is
mentally harassed ?
(i) Phishing (ii) Hacking
(iii) Cyber bullying (iv) Identity Theft

Ans (iii) Cyber bullying


(1 Mark for correct answer)
4 Which of the following is the correct output of the following SQL command? 1
SELECT ROUND (7876.4568, 2) ;
(i) 7876.46 (ii) 7876.45
(iii) 7900 (iv) 7900.4568

Ans (i) 7876.46

(1 Mark for correct answer)

- 3 of 20-
CBSE AISSCE 2023 Marking Scheme for Informatics Practices
Series ⅀HEFG (Sub Code: 065 Paper Code 90) SET-4

5 Aggregate functions are also known as: 1


(i) Scalar Functions (ii) Single Row Functions
(iii) Multiple Row Functions (iv) Hybrid Functions

Ans (iii) Multiple Row Functions


(1 Mark for correct answer)
6 Primary law in India for matters related to e-commerce and cyber crime is : 1
(i) IT Act 1995 (ii) IT Act 2000
(iii) IT Act 1998 (iv) IT Act 2010

Ans (ii) IT Act 2000

(1 Mark for correct answer)

7. Ravisha has stored the records of all students of her class in a MYSQL table. Suggest a 1
suitable SQL clause that she should use to display the names of students in
alphabetical order.
(i) SORT BY (ii) ALIGN BY
(iii) GROUP BY (iv) ORDER BY

Ans (iv) ORDER BY


(1 Mark for correct answer)
8 To remove the leading and trailing space from data values in a column of 1
MySql Table, we use
(i) Left( ) (ii) Right( )
(iii) Trim( ) (iv) Ltrim( )

Ans (iii) Trim ( )


(1 Mark for correct answer)
9 If the substring is not present in a string, the INSTR() returns: 1

(i) – 1 (ii) 1
(iii) NULL (iv) 0

Ans (iv) 0
(1 Mark for correct answer)
10 What will be the output of the following code ? 1
import pandas as pd
myser = pd.Series([0, 0,0])
print(myser)

(i) 0 0 (ii) 0 1
0 0 0 1
0 0 0 2
(iii) 0 0 (iv) 0 0
1 0 1 1
2 0 2 2

- 4 of 20-
CBSE AISSCE 2023 Marking Scheme for Informatics Practices
Series ⅀HEFG (Sub Code: 065 Paper Code 90) SET-4

Ans (iii) 0 0
1 0
2 0

(1 Mark for correct answer)


11 Which of the following is a two-dimensional labelled data structure of Python ? 1
(i) Relation (ii) Dataframe
(iii) Series (iv) Square

Ans (ii) Dataframe


(1 Mark for correct answer)
12 To compare data values of commission earned by salesmen over a year, which of the 1
following type of graph should preferably be used ?

(i) line (ii) area


(iii) bar (iv) scatter

Ans (i) line


OR
(iii) bar
OR
(iv) scatter
(1 Mark for correct answer)
13 Which of the following is not a web browser ? 1

(i) Opera (ii) Google Chrome


(iii) Linux (iv) Mozilla Firefox

Ans (iii) Linux


(1 Mark for correct answer)
14 Which of the following is not a valid aggregate function in MYSQL ? 1

(i) COUNT( ) (ii) SUM( )


(iii) MAX( ) (iv) LEN( )

Ans (iv) LEN ( )


(1 Mark for correct answer)
15 The digital footprint that we leave online unintentionally is called 1

(i) Active digital footprint (ii) Passive digital footprint


(iii) True digital footprint (iv) False digital footprint

Ans (ii) Passive digital footprint


(1 Mark for correct answer)

- 5 of 20-
CBSE AISSCE 2023 Marking Scheme for Informatics Practices
Series ⅀HEFG (Sub Code: 065 Paper Code 90) SET-4

16 E-waste is responsible for the degradation of our environment if not properly treated 1
or disposed of. Some of the feasible methods of e-waste management are
reduce,___and recycle.

(i) reuse (ii) recheck


(iii) resubmit (iv) regular

Ans (i) reuse


(1 Mark for correct answer)
Q. 17 and 18 are ASSERTION (A) and REASONING (R) based questions.
Mark the correct choice as
(i) Both (A) and (R) are true and (R) is the correct explanation for (A).
(ii) Both (A) and (R) are true and (R) is not the correct explanation for (A).
(iii) (A) is true and (R) is false.
(iv) (A) is false but (R) is true.
17 Assertion (A) : A static webpage does not change for each person visiting the web 1
page.
Reason (R) : When a web server receives a request for a dynamic web page, it locates
and updates the page and sends it to the browser of the client.
Ans (ii) Both (A) and (R) are true but (R) is not the correct explanation for (A).
(1 Mark for correct answer)
18 Assertion (A) : The output of addition of two series will be NaN, if one of the elements
or both the elements have no value(s).
Reason (R) : While performing mathematical operations on a series, by default all
missing values are filled in with 0.
Ans (iii) (A) is true but (R) is false.
(1 Mark for correct answer)
PART - B
19 What is a web server ? How is it different from web browser ? 2
Ans A web server is used to store and deliver the contents to clients that request it.
Web Browser Web Server

A web browser sends requests to the Web server receives requests from
server for content. the web browser and sends the
requested content in response.

OR
Any other equivalent correct difference
(1 Mark for writing correct definition of web server)
(1 Mark for writing correct difference)
NOTE : Full 2 marks to be awarded if definition of web server is not written
separately BUT is reflected in the difference.

OR 2
What do you understand by the term cookies ? Give any two benefits of cookies.

- 6 of 20-
CBSE AISSCE 2023 Marking Scheme for Informatics Practices
Series ⅀HEFG (Sub Code: 065 Paper Code 90) SET-4

Ans A cookie is a small piece of data that is transferred to the user’s computer
along with the content requested by the user.
Benefits (Any two)
A. To analyze how the user is using the website
B. To enhance the website’s usability.
C. To help the website recognize the user’s computer activity (website’s
login ids, shopping carts, surfing activity)
D. To customize the website’s experience for a user
(1 Mark for writing correct definition of cookie)
(½ Mark for each correct benefit)

NOTE: Full 2 marks to be awarded if definition and benefits are explained with
the help of an example.

20 Keshav has written the following query to find out the sum of bonus earned by the 2
employees of WEST zone :
SELECT zone, TOTAL (bonus) FROM employee HAVING zone = 'WEST';

But he got an error. Identify the errors and rewrite the query by underlining the
correction(s) done.
Ans SELECT zone, SUM(bonus) FROM employee WHERE Zone = 'WEST';

OR

SELECT SUM(bonus) FROM employee WHERE Zone = 'WEST';

OR

SELECT zone, SUM(bonus) FROM employee


GROUP BY zone HAVING Zone = 'WEST' ;
(1 Mark each for both the corrections)

Note: No marks to be deducted if correct query is written but underlining is not


done
21 Differentiate between COUNT( ) and COUNT(*) functions in MYSQL. Give suitable 2
examples to support your answer.
Ans
COUNT(Column_Name) COUNT(*)

It returns the number of non-null values It returns the number of rows in the
in the column used in COUNT() table

Example:
SALES
SCode SName Commission
S001 Amit 2500
S002 Jones
S003 Ahmed 2600

- 7 of 20-
CBSE AISSCE 2023 Marking Scheme for Informatics Practices
Series ⅀HEFG (Sub Code: 065 Paper Code 90) SET-4

SELECT COUNT(Commission) FROM Sales;


will return 2

SELECT COUNT(*) FROM Sales;


will return 3
(1 Mark for stating correct difference)
(1 Mark for writing any one example explaining the difference)

NOTE:
● Full 2 marks to be awarded if the difference is explained with the help of an
example.
● 1 mark to be awarded if COUNT() is mentioned as an error.
22 Write a Python program to create a series object, country using a list that stores the 2
capital of each country.
Note: Assume four countries to be used as index of the series object are India, UK,
Denmark, and Thailand having their capitals as New Delhi, London, Copenhagen, and
Bangkok respectively.
Ans capital = ['New Delhi', 'London','Copenhagen', 'Bangkok']
country = pd.Series(capital, index = ['India', 'UK', 'Denmark',
'Thailand'])
OR
import pandas as pd
capital = ['New Delhi', 'London','Copenhagen', 'Bangkok']
c = ['India', 'UK', 'Denmark', 'Thailand']
country = pd.Series(capital, index = c)

(½ Mark for defining list of capitals)


(½ Mark for pd.Series)
(1 Mark for assigning the index values)

NOTE:
import pandas as pd and print(country)
to be ignored as part of answer
23 Explain plagiarism with an example. 2
Ans Plagiarism refers to using someone else’s work/ideas without giving them credit.
Example : A student copies a poem written by his friend and submits it as his own for
the School magazine.
(1 Mark for definition)
(1 Mark for any valid example)
OR
(Full 2 Marks for explanation through any valid example)
OR
Nowadays all of us frequently use social media to connect with our friends. Give any
two netiquettes that we should follow while communicating on social media.
Ans We should
● not post embarrassing or incriminating contents(photos/videos) on social-media
sites.
● not bully anyone online.
● not post either our’s or someone else’s private information online.
● verify the source as credible before forwarding or posting something.

- 8 of 20-
CBSE AISSCE 2023 Marking Scheme for Informatics Practices
Series ⅀HEFG (Sub Code: 065 Paper Code 90) SET-4

● Use proper language and avoid casual abbreviations (lol, ttyl, brb) that could be
misunderstood or misinterpreted.
(1 Mark each for ANY two valid netiquettes)

24 What will be the output of the following code: 2

import pandas as pd
s1=pd.Series(data=2*(3,10))
print(s1)
Ans 0 3
1 10
2 3
3 10

NOTE:
● Full 2 marks to be awarded for attempting the question/mentioning error in
question/out of curriculum
25 Carefully observe the following code: 2

import pandas as pd
dic={'pid': [101, 102, 103, 104, 105],
'pname': ['Shyam', 'Roushan', 'Archit', 'Medha', 'Lalit'],
'sports': ['Cricket', 'Tennis', 'Football', 'Cricket',
'Cricket'],
'points': [45000,20000, 15000, 53000, 60000]}
player=pd.DataFrame (dic)
print (player)

Write Python statements for the following:


(i) In the dataframe player created above, set the row labels as
'Player1', 'Player2', 'Player3', 'Player4', 'Player5'.
Ans player=pd.DataFrame
(dic,index=['Player1','Player2','Player3','Player4','Player5'])
OR
I=['Player1','Player2','Player3','Player4','Player5']
player=pd.DataFrame (dic,index=I)
(½ Mark for creating DataFrame)
(½ Mark for index)
(ii) Rename the column 'points' to 'netpoint' in the DataFrame player.
Ans player=player.rename({'points':'netpoints'},axis='columns')

OR
player.rename({'points':'netpoints'},axis='columns',inplace=True)

OR
player=player.rename({'points':'netpoints'},axis=1)

OR
player=player.rename(columns={'points':'netpoints'})

OR
player.rename({'points':'netpoints'},axis=1,inplace=True)
- 9 of 20-
CBSE AISSCE 2023 Marking Scheme for Informatics Practices
Series ⅀HEFG (Sub Code: 065 Paper Code 90) SET-4

OR
player.rename(columns={'points':'netpoints'},inplace=True)
(1 Mark for any correct Python statement)
SECTION - C
26 Consider the table Patient given below and write SQL commands. 3
Table: Patient
Patientid Name City Phone Dateofadm Department

1000001 Ritvik Garg Delhi 68476213 2021-12-10 Surgery

1000002 Rahil Arora Mumbai 36546321 2022-01-08 Medicine

1000003 Mehak Bhatt Delhi 68421879 2022-02-02 Cardiology

1000004 Soumik Rao Delhi 26543266 2022-01-11 Medicine

1000005 Suresh Sood Bangalore 65432442 2021-03-09 Surgery

(i) Display the details of all patients who were admitted in January.
Ans SELECT * FROM Patient WHERE MONTHNAME(Dateofadm)="January";
(½ Mark for correctly using SELECT … FROM)
(½ Mark for correctly using WHERE … clause)
(ii) Count the total number of patients from Delhi.
Ans SELECT city, count(city) FROM Patient WHERE City='Delhi';
OR
SELECT count(city) FROM Patient WHERE City='Delhi';
OR
SELECT count(*) FROM Patient WHERE City='Delhi';
OR
SELECT count(3) FROM Patient WHERE City='Delhi';
OR
Any other which gives the same result.
(½ Mark for correctly using SELECT … FROM)
(½ Mark for correctly using WHERE … clause)
(iii) Display the last 2 digits of the Patientid of all patients from Surgery Department.
Ans SELECT RIGHT(Patientid,2) FROM Patient;
OR
SELECT SUBSTR(Patientid,length(Patientid)-1,2) FROM Patient;
(½ Mark for correctly using SELECT … FROM)
(½ Mark for correctly extracting 2 digits of Patientid)
27 Kavyanjali, a chemical analyst, needs to arrange data of few elements in the form of 3
two series containing symbols and their atomic numbers respectively. Thereafter, the
data of these two series has to be arranged and displayed in the form of Data Frame as
shown below
Symbol Atomic Number
Hydrogen H 1
Helium He 2
Lithium Li 3
Beryllium Be 4

Help her in writing suitable Python code to complete the task.


- 10 of 20-
CBSE AISSCE 2023 Marking Scheme for Informatics Practices
Series ⅀HEFG (Sub Code: 065 Paper Code 90) SET-4

Ans import pandas as pd


I=['Hydrogen','Helium','Lithium','Beryllium']
D1=['H','He','Li','Be']
D2=[1,2,3,4]
S1=pd.Series(D1,I)
print("First Series: ")
print(S1)
S2=pd.Series(D2,I)
print("Second Series: ")
print(S2)
D = {'Symbol': S1,'Atomic Number': S2}
DF=pd.DataFrame(D)
print("DataFrame:")
print(DF)

OR

import pandas as pd
D={'Symbol':['H','He','Li','Be'],'Atomic Number':[1,2,3,4]}
DF=pd.DataFrame(d,index=['Hydrogen','Helium','Lithium','Berillium
'])
print(DF)
(½ Mark for correctly interpreting
'Hydrogen','Helium','Lithium','Beryllium')
(½ Mark for correctly interpreting ['H','He','Li','Be'] & [1,2,3,4])
(½ Mark for correctly interpreting Symbols as implicit/explicit series)
(½ Mark for correctly interpreting Atomic Numbers as implicit/explicit series)
(½ Mark for correctly creating DataFrame)
(½ Mark for displaying all/some content using print)
28 Consider the given DataFrame 'health'. 3
Diseasename Agent
0 Common cold Virus
1 Chickenpox Virus
2 Cholera Bacteria
3 Tuberculosis Bacteria
Write suitable Python statements for the following:
(i) Remove the row containing details of disease named Tuberculosis.
Ans I = DF[ DF['Diseasename'] == 'Tuberculosis' ].index
DF.drop(I, inplace = True)
OR
DF.drop('Tuberculosis',axis=0)
OR
DF=DF[(DF.diseasename!='Tuberculosis')]
(1 Mark for mentioning DF.drop() OR DF.drop(3))

Note: Conditional deletion is not in curriculum


(ii) Add a new disease named 'Malaria' caused by 'Protozoa'
Ans DF.loc[4]=['Malaria','Protozoa']
OR
DF.loc[4,:] = ['Malaria','Protozoa']
OR
DF = DF.append({'Diseasename':'Malaria','Agent':'Protozoa'},
ignore_index=True)
- 11 of 20-
CBSE AISSCE 2023 Marking Scheme for Informatics Practices
Series ⅀HEFG (Sub Code: 065 Paper Code 90) SET-4

(½ Mark for mentioning/identifying proper location )


(½ Mark for mentioning 'Malaria','Protozoa' correctly)
OR
(1 Mark for the last option of the answer)
(iii) Display the last 2 rows.
Ans print(DF.iloc[3:5])
OR
print(DF.tail(2))
OR
print(DF.iloc[-2::])
(½ Mark for using iloc/tail)
(½ Mark for correct index)
29 Manohar received an email from a company, named Makemoney Pvt. Ltd., claiming 3
that Manohar has won ₹ 20 lakhs in a survey done online. In order to claim the prize
money, he was required to answer few security questions such as his Name, Account
number, PAN card details, Phone number and OTP for verification purposes. For this, he
had to click on the link provided in the email.
Answer the following questions:
(i) Should Manohar give the required details to the company?
Ans No
(1 Mark for correct answer)
(ii) What is the activity depicted above?
Ans Phishing
(1 Mark for correct answer)

Note:
● Cyber Crime should also be accepted as the correct answer.
(iii) What should he do with this email?
Ans Delete
OR
Ignore It
OR
Block
OR
Report
OR
Any other appropriate action
(1 Mark for any of the above answer)
OR
What do you understand by the term Hacking? Write any two measures that one should 3
take to avoid being the victim of hacking.
Ans It is the unauthorized access to a computer/computer network.
OR
Any other equivalent correct definition
—---------------------------------------------------------------------------------------------------
● Logging out from account after finishing work
● Using incognito/private window while using public computer
● Not sharing password with anyone
OR
- 12 of 20-
CBSE AISSCE 2023 Marking Scheme for Informatics Practices
Series ⅀HEFG (Sub Code: 065 Paper Code 90) SET-4

Any other appropriate measure


(1 Mark for correctly defining Hacking)
(1 Mark for correctly mentioning each measure)
30 Write the output (i-iii) for the following SQL commands. 3
Table: FASHION
ID Product Price Qty
F01 Kajal 970 10
F02 Foundation 2100 15
F03 Night Cream 1700 20
F04 Day Cream 1400 10
F05 Shampoo 1200 25
F06 Lipstick 850 32

(i) SELECT COUNT(Product) FROM FASHION;


Ans 6
(1 Mark for correct answer)
(ii) SELECT SUM (Price*Qty) FROM FASHION WHERE Product="Night Cream";
Ans 34000
(1 Mark for correct answer)
(iii) SELECT LEFT (Product, 4) FROM FASHION WHERE Price>1500;
Ans Foun
Nigh
(½ Mark for first line of correct answer)
(½ Mark for second line of correct answer)
OR
Find the output of the following SQL queries :
(i) SELECT SUBSTR("CLIMATE CHANGE",4,4);
Ans MATE
(1 Mark for correct answer)
(ii) SELECT UCASE(RIGHT("Pollution",3));
Ans ION
(1 Mark for correct answer)
(iii) SELECT LENGTH("HAPPY")+3;
Ans 8
(1 Mark for correct answer)
SECTION - D
31 Write the SQL queries which will perform the following operations: 5
(i) To display the year from your Date of Admission which is '2023-05-15'.
Ans SELECT YEAR('2023-05-15');
OR
SELECT YEAR(DOA) FROM XYZ;
(Any column name for Date of admission and any table name to be accepted)
(½ Mark for SELECT)
(½ Mark for correct use of YEAR)
(ii) To convert your email id 'ABC@XYZ.com' to lowercase.
- 13 of 20-
CBSE AISSCE 2023 Marking Scheme for Informatics Practices
Series ⅀HEFG (Sub Code: 065 Paper Code 90) SET-4

Ans SELECT LOWER('ABC@XYZ.com');


OR
SELECT LCASE('ABC@XYZ.com');
(½ Mark for SELECT)
(½ Mark for correct use of LOWER/LCASE)
(iii) To remove leading spaces from a string ‘ my country’.
Ans SELECT LTRIM(' my country');
OR
SELECT TRIM(' my country');
(½ Mark for SELECT)
(½ Mark for correct use of LTRIM/TRIM)
(iv) To display current date.
Ans SELECT CURDATE(); OR
OR SELECT NOW();
SELECT SYSDATE(); OR
OR SELECT DATE(NOW());
SELECT CURRENT_DATE(); OR
OR SELECT LOCALTIME();
SELECT CURRENT_TIMESTAMP() OR
SELECT LOCALTIMESTAMP();
(½ Mark for SELECT)
(½ Mark for correct use of any of the above mentioned DATE functions)
(v) To display the value of 106
Ans SELECT POWER(10,6);
OR
SELECT POW(10,6)
(½ Mark for SELECT)
(½ Mark for correct use of POWER/POW function)
OR
Consider a table PRODUCT with the following data: 5
Table: PRODUCT
SNO Itemname Company Stockdate Price Discount
1 Monitor HP 2021-12-20 15499.739 15
2 Webcam Logitech 2020-02-03 4890.90 5
3 Keyboard Logitech 2022-08-19 1878.985 30
4 Mouse HCL 2021-05-16 1200.00 7
5 Speakers iBall 2021-10-19 NULL 25

Write SQL queries using SQL functions to perform the following operations :
(i) Display the first 3 characters of all Itemnames.
Ans SELECT LEFT(ITEMNAME,3) FROM PRODUCT;
OR
SELECT MID(ITEMNAME,1,3) FROM PRODUCT;
OR
SELECT SUBSTR(ITEMNAME,1,3) FROM PRODUCT;
OR
SELECT SUBSTRING(ITEMNAME,1,3) FROM PRODUCT;

- 14 of 20-
CBSE AISSCE 2023 Marking Scheme for Informatics Practices
Series ⅀HEFG (Sub Code: 065 Paper Code 90) SET-4

(½ Mark for SELECT .. FROM PRODUCT)


(½ Mark for correct use of LEFT/MID/SUBSTR/SUBSTRING function)
(ii) Display the names of all items whose Stockday is "Monday"
Ans SELECT ITEMNAME FROM PRODUCT WHERE DAYNAME(STOCKDATE)='MONDAY';
OR
SELECT ITEMNAME FROM PRODUCT WHERE DAYOFWEEK(STOCKDATE)=2;
(½ Mark for SELECT ITEMNAME FROM PRODUCT)
(½ Mark for correct use of WHERE condition)

Note:
1. Full 1 Mark to be awarded, if “Stockday” is considered as a column name.
SELECT ITEMNAME FROM PRODUCT WHERE STOCKDAY='MONDAY';
2. Full 1 Mark to be awarded, if "No column with the name Stockday" is
mentioned.

(iii) Display the total price of all the products.


Ans SELECT SUM(PRICE) FROM PRODUCT;
(½ Mark for SELECT .. FROM PRODUCT)
(½ Mark for correct use of SUM function)
(iv) Display the maximum Price.
Ans SELECT MAX(PRICE) FROM PRODUCT;
(½ Mark for SELECT .. FROM PRODUCT)
(½ Mark for correct use of MAX function)
(v) Display the average Price of all the products by the company named 'Logitech'
Ans SELECT AVG(PRICE) FROM PRODUCT
WHERE COMPANY='Logitech';
(½ Mark for SELECT AVG(PRICE)FROM PRODUCT)
(½ Mark for correct use of WHERE with appropriate condition)
32 XEED Private Ltd., Delhi is a company that deals with educational toys. They have 5
different divisions HR(A1), Sales(A2), Production(A3) and Marketing(A4).
The layout of the Delhi branch is:

XEED Private Ltd.


Delhi Branch

The company also has a branch in Bangalore. The management wants to connect all
the divisions as well as all the computers of each division (A1,A2, A3, A4).
Distance between the wings are as follows:

A3 to A1 25 m

- 15 of 20-
CBSE AISSCE 2023 Marking Scheme for Informatics Practices
Series ⅀HEFG (Sub Code: 065 Paper Code 90) SET-4

A1 to A2 40 m
A2 to A4 25 m
A4 to A3 20 m
A3 to A2 30 m
A1 to A4 170 m
Delhi Head Office to Bangalore Office 2154 km

Number of computers in each of the wing:


A1 50
A2 40
A3 110
A4 60
Based on the above specifications, answer the following questions:
(i) Suggest the topology and draw the most suitable cable layout for connecting all the
divisions of Delhi branch.
Ans Star topology (Connecting from the building with max. number of computers)

Bus Topology (considering minimum building to building distance)

(½ mark for correct topology)


(½ mark for correct layout)
(ii) Suggest the kind of network required (out of LAN, MAN, WAN) for connecting
Production (A3) with the Bangalore branch.
Ans WAN
(1 mark for correct answer)
(iii) Which device can be used to connect the network of Delhi branch to the internet? This
device should be able to receive data, analyse it and then transmit it to the network.
Ans Router
- 16 of 20-
CBSE AISSCE 2023 Marking Scheme for Informatics Practices
Series ⅀HEFG (Sub Code: 065 Paper Code 90) SET-4

(1 mark for correct answer)

Note:
● ½ Mark to be awarded for writing Modem as answer
(iv) Suggest the placement of Switch/Hub with justification.
● Switch/Hub should be placed in all the buildings
● To interconnect nodes in each building
(½ mark for correct placement)
(½ mark for correct justification)
(v) Many employees were finding it difficult to cope up with work pressure and hence
were showing stress related symptoms. In order to improve the mental health of its
employees, HR planned to conduct an online session with a mental health expert from
Mumbai. Out of the options given below, suggest the protocol that will help to send the
voice signals over Internet to conduct the session successfully.
(a) FTP (b) SMTP (c) VOIP (d) POP
Ans (c) VOIP
(1 mark for correct answer)
33 Consider the following graph. Write the Python code to plot it. Also add the Title, label 5
for X and Y axis.
Use the following data for plotting the graph
smarks=[10,40,30,60,55]
sname=["Sahil","Deepak","Anil","Ravi","Riti"]

Ans import matplotlib.pyplot as plt


smarks=[10,40,30,60,55]
sname=["Sahil","Deepak","Anil","Ravi","Riti"]
plt.plot(sname,smarks)
plt.title("Marks secured by students in Term - 1")
plt.xlabel('Student Name')
plt.ylabel('Marks Scored')
plt.show()
- 17 of 20-
CBSE AISSCE 2023 Marking Scheme for Informatics Practices
Series ⅀HEFG (Sub Code: 065 Paper Code 90) SET-4

(1 Mark for import statement)


(1 Mark for plot())
(1 Mark for title)
(1 Mark for labels)
(1 Mark to display)
OR
33. Write Python code to draw the following bar graph representing the total sales 5
in each quarter. Add the Title, Label for X-axis and Y-axis.
Use the following data for plotting the graph:
sales=[450,300,500,650]
qtr=["QTR1","QTR2","QTR3","QTR4"]

Ans import matplotlib.pyplot as plt


#----------------------------#
sales=[450,300,500,650] # ignore as part
qtr=["QTR1","QTR2","QTR3","QTR4"]
#----------------------------#
plt.bar(qtr,sales)
plt.title("Sales each quarter")
plt.xlabel("Quarter")
plt.ylabel("Sales")
plt.show()
(1 mark for import statement)
(1 mark for bar())
(1 mark for title)
(1 mark for labels)
- 18 of 20-
CBSE AISSCE 2023 Marking Scheme for Informatics Practices
Series ⅀HEFG (Sub Code: 065 Paper Code 90) SET-4

(1 mark to display)
SECTION - E
34 Consider the following table Schooldata : 1+1+
Table: Schooldata 2
Admno Name Grade Club Marks Gender
20150001 Sargam Singh 12 STEM 86 Male
20140212 Alok Kumar 10 SPACE 75 Male
20090234 Mohit Gaur 11 SPACE 84 Male
20130216 Romil Malik 10 READER 91 Male
20190227 Tanvi Batra 11 STEM 70 Female
20120200 Nomita Ranjan 12 STEM 64 Female
Write SQL queries for the following:
(i) Display the average Marks secured by each Gender.
Ans SELECT Gender, AVG(marks) FROM Schooldata GROUP BY Gender;
(½ mark for SELECT..FROM)
(½ mark for GROUP BY)
(ii) Display the minimum Marks secured by the students of Grade 10.
Ans SELECT MIN(Marks) FROM Schooldata WHERE Class=10;
OR
SELECT MIN(Marks) FROM Schooldata WHERE Class='10';
(½ mark for using SELECT MIN(MARKS) FROM Schooldata)
(½ mark for correct use of WHERE condition)
(iii) Display the total number of students in each Club where number of students are more
than 1.
Ans SELECT Club, COUNT(*) FROM Schooldata GROUP BY Club HAVING
COUNT(*)>1;
(½ mark for SELECT)
(½ mark for COUNT(*))
(½ mark for GROUP BY)
(½ mark for correct use of HAVING condition)
OR
(Option for Part (iii) only)
(iii) Display the maximum and minimum marks secured by each gender. 2
Ans SELECT MAX(Marks),MIN(Marks), Gender FROM Schooldata
GROUP BY Gender;
(½ mark for SELECT)
(½ mark for MAX())
(½ mark for MIN())
(½ mark for GROUP BY)
35 Consider the following DataFrame 'mdf. 1+1+
2
Rollno Name English Hindi Maths
0 1 Aditya 23 20 28

- 19 of 20-
CBSE AISSCE 2023 Marking Scheme for Informatics Practices
Series ⅀HEFG (Sub Code: 065 Paper Code 90) SET-4

1 2 Balwant 18 1 25
2 3 Chirag 27 23 30
3 4 Deepak 11 3 7
4 5 Eva 17 21 24

(A) Write Python statements for the DataFrame 'mdf’ :


(i) To display the records of the students having roll numbers 2 and 3.
Ans print(mdf[2:4])
OR
print(mdf.loc[1:2,:])
OR
print(mdf.iloc[1:3,:])
(½ mark for mdf)
(½ mark for mentioning correct range)
(ii) To increase the marks of subject Math by 4, for all students.
Ans mdf['Maths']=mdf['Maths']+4
(1 mark for attempting the question)
Note : Updation operation not in Curriculum
(B) Write Python statement to display the Rollno and Name of all students who secured
less than 10 marks in Maths.
Ans print(mdf[mdf['Maths'] <10][['Rollno','Name']])
(Full 2 Marks for attempting like mentioning print or dataframe name or writing
condition or mentioning appropriate column names)
Note: Condition based retrieval is not in Curriculum
OR
(Option for Part B only)
Write Python statement to display the total marks i.e., sum of marks secured in 2
English, Hindi and Maths for all students.
Ans print(mdf[['English','Hindi','Maths']].sum())
OR
print(mdf[['English','Hindi','Maths']].sum(axis=1))
OR
print(mdf[['English','Hindi','Maths']].sum(axis=0))
(1 mark for using mdf)
(½ mark for mentioning the columns)
(½ mark for sum())

- 20 of 20-
Series HEFG/C Set-4
Q.P. Code 90
Roll No.

INFORMATICS PRACTICES
Time allowed : 3 hours Maximum Marks : 70

Please check that this question paper contains 13 printed pages.


Q.P. Code given on the right hand side of the question paper should be
written on the title page of the answer-book by the candidate.
Please check that this question paper contains 35 questions.
Please write down the serial number of the question in the
answer-book before attempting it.
15 minute time has been allotted to read this question paper. The
question paper will be distributed at 10.15 a.m. From 10.15 a.m. to
10.30 a.m., the students will read the question paper only and will not
write any answer on the answer-book during this period.
*

General Instructions :
(i) This question paper contains five sections, Section A to E.
(ii) All questions are compulsory.
(iii) Section A has 18 questions carrying 1 mark each.
(iv) Section B has 7 Very Short Answer type questions carrying 2 marks each.
(v) Section C has 5 Short Answer type questions carrying 3 marks each.
(vi) Section D has 3 Long Answer type questions carrying 5 marks each.
(vii) Section E has 2 questions carrying 4 marks each. One internal choice is given
in Q. 35 against Part E only.
(viii) All programming question are to be answered using Python language only.

90 ^ Page 1 of 13 P.T.O.
Section A

1. A __________ is a network device that can receive the data, analyse it and
transmit it to other networks. 1
(a) Modem (b) Switch
(c) Repeater (d) Router

2. We need to exhibit proper manners and etiquettes while being online. Pick
up one such net etiquette from the following : 1
(a) Do not share the expertise
(b) Respect privacy and diversity
(c) Feed the troll
(d) Copyright violation

3. A patent protects an invention for __________ years, after which it can be


freely used. 1
(a) 40 (b) 30
(c) 20 (d) 10

4. Write the output of the following SQL query : 1


SELECT LCASE(SUBSTR("Project Management",9,6));
(a) Manag (b) Manage
(c) MANAGE (d) manage

5. Write the output of the following SQL command : 1


select pow(2,2*2);
(a) 16 (b) 2
(c) 4 (d) 8

6. E-waste contains __________ that causes respiratory disorders and brain


damage. 1
(a) Cadmium (b) Beryllium
(c) Lead (d) Mercury

90 Page 2 of 13
7. In SQL, ________ returns the month name from the specified date. 1
(a) MONTH( )
(b) DATE( )
(c) MONTHNAME( )
(d) NOW( )

8. Which of the following SQL function returns the number of values in the
specified column ignoring the NULL values ? 1
(a) COUNT(*)
(b) COUNT(columnname)
(c) LENGTH(*)
(d) LENGTH(columnname)

9. __________ helps to fetch a group of rows based on common values in a


column. 1
(a) ORDER BY (b) FILTER
(c) GROUP BY (d) SELECT BY

10. What will be the output of the Python program mentioned below ?
import pandas as pd
df=pd.DataFrame(['Apple','Banana','Orange','Grapes','Guava'])
print(df[2:4:2]) 1
(a) 0
2 Banana

(b) 0
2 Orange

(c) 0
2 Banana
4 Grapes
(d) Empty DataFrame
Columns:[0]
Index:[ ]

90 Page 3 of 13 P.T.O.
11. Which of the following is a one-dimensional array containing a sequence of
values in Python ? 1
(a) Relation (b) DataFrame
(c) Series (d) Square

12. In Python Pandas, head(n) method returns the first n members of the
series. What is the default value of n ? 1
(a) 2 (b) 3
(c) 4 (d) 5

13. _____________ is a service that allows to put a website or a web page on the
Internet. 1
(a) Web Server
(b) Web Browser
(c) Web Hosting
(d) Domain Name System

14. Find the output of the following SQL queries : 1


Select INSTR("Data Science","ie");
(a) 8 (b) 5
(c) True (d) False

15. Rupam created an assistive device for the blind. This device is very helpful
for the blind and people with low vision. Now, she wants that no one
should copy her innovation. What should she do ? 1
(a) Get the trademark for her invention
(b) Get the license for her invention
(c) Get the patent for her invention
(d) Get the copyright for her invention

16. : 1
(a) Phishing (b) Stacking
(c) Plagiarism (d) Bullying

90 Page 4 of 13
For Questions number 17 and 18, two statements are given one labelled
as Assertion (A) and the other labelled as Reason (R). Select the correct
answer to these questions from the codes (a), (b), (c) and (d) as given below.

(a) Both Assertion (A) and Reason (R) are true and Reason (R) is the
correct explanation of Assertion (A).

(b) Both Assertion (A) and Reason (R) are true, but Reason (R) is not the
correct explanation of Assertion (A).

(c) Assertion (A) is true, but Reason (R) is false.

(d) Assertion (A) is false, but Reason (R) is true.

17. Assertion (A) :

Reason (R) :
that converts the digital data into analogue signals and at
the receiver end acts as a modulator that converts
analogue signals into digital data. 1

18. Assertion (A) : In order to be able to use P


library, we need to import the pyplot module from matplot
library.

Reason (R) : The pyplot module houses a variety of functions required


to create and customize charts or graphs. 1

Section B

19. (a) Write any one main advantage and one main disadvantage of Star
Topology. 2
OR
(b) With reference to browsing the websites, briefly explain the term
cookie. Also mention any two points of significance of it. 2
90 Page 5 of 13 P.T.O.
20. Arpit wants to find the total commission earned by those departments
where the number of employees in the department is more than 2 and
writes the following query :
Select department, count(commission) from TECHNO having
count(*)>2 group by department;
But he got an error. Identify the error(s) and rewrite the query by
underlining the correction(s) done. 2

21. Ananya, a database executive, needs to display a


and time. Suggest to her a suitable SQL function name. Also write the
query for the same. 2

22. Shobit needs to create the following two series named Eng and Math .
Help him to
2
Eng Math
Aditi 25 Aditi 9
bhavuk 21 bhavuk 29
chirag 23 chirag 15
deepak 24 deepak 14
Gaurav 27 Gaurav 20
dtype: int64 dtype: int64

23. (a) What do you understand by Copyright Infringement ? What can be


done as a user to avoid Copyright Infringement ? 2
OR
(b) What is meant by Trademark Infringement ? What action can the
owner take against someone who infringes its registered
trademark ? 2

24. What will be the output of the following code ? 2


import pandas as pd
S1=pd.Series(data=[1,7])
S2=pd.Series(S1+S1)
print(S2)

90 Page 6 of 13
25. Carefully observe the following code : 2
import pandas as pd
product={'prodid':pd.Series([1,2,3,4,5]),
'pname':pd.Series(['pen', 'pencil', 'eraser',
'color', 'sharpener']),
'qty':pd.Series([2,10,10,30,10]),
'price':pd.Series([300,20,50,40,15])}
stock=pd.DataFrame(product)
print(stock)
Write Python statements for the following :
(i) Display the names of products.
(ii) .

Section C

26. Consider the table Customer given below and write SQL commands : 3
TABLE : Customer
CustID Name Country Emailid Orderdate
C1001 Rajat India rajat@gmail.com 2022-12-22
C1002 Michael Denmark mic@yahoo.com 2023-11-15
C1003 Riyo Thailand Ri@gmail.com 2022-05-06
C1004 Jennifer S. Korea Jen@gmail.com 2022-08-07
C1005 Sudha India Sud@abc.com 2023-01-01
C1006 Vivek Nepal viv@xyz.com 2023-04-14
(i) Display the details of all customers who have placed the order in
the year 2023.
(ii) Count the total number of customers from India.
(iii) Display the last 9 characters of the email id of all customers of
Denmark.

27. Wri
following Dictionary : 3
dic={
"Model":["Samurai","Accord","CR-V","Nexon"],
"Brand":["Suzuki","Honda","Honda","Tata"],
"Make":[1993,1997,1997,2021]}
90 Page 7 of 13 P.T.O.
28. Consider the given DataFrame :
Name Percentile
0 Rohit 95
1 Mohit 76
2 Raman 98
3 Aditya 47
Write the suitable Python statements for the following : 3
(i)
(ii) s 92 and
Grade A.
(iii) Display the top 3 rows.

29. (a) Riti received a message that she needs to update the KYC for her
Bank Account therefore she should upload her Aadhar Card, Bank
Account Number and the OTP on the link given in her message.
Answer the following questions : 3
(i) Should Riti upload the documents and give the OTP on the
link ?
(ii) Should Riti call her bank immediately to recheck the validity
of the message received ?
(iii) What is the act mentioned in the message known as ?
OR
(b) Briefly explain the term FOSS. Give examples of any 2 Operating
Systems that are FOSS. 3

30. (a) Write the output (i-iii) for the following SQL commands : 3
Table : CLUB
SNo Activity Fee Days
1 Swimming 10000 M, W
2 Singing 8000 Th, S
3 Dance 12000 M, W
4 Drawing 7000 T, Th
5 Craft 8000 F, S
6 Cooking 9000 T, F

90 Page 8 of 13
(i) SELECT COUNT(*) FROM CLUB;

(ii) SELECT SUM(Fee) FROM CLUB;

(iii) SELECT LEFT(Activity,2) FROM CLUB WHERE Days='M,W';

OR
(b) Find the output of the following SQL queries : 3

(i) SELECT MID("Exam",1,2);

(ii) SELECT MONTHNAME("2023-05-30");

(iii) SELECT MONTH("2023-03-05");

Section D

31. (a) Write the SQL queries which will perform the following operations : 5
(i) To display the day part from your date of admission, which is
-12-

(ii)
(iii)

(iv)
(v) To display your height 5.41 after rounding off to 1 decimal
place.
OR
(b) Explain the following SQL functions using suitable examples : 5
(i) LTRIM( )

(ii) RTRIM( )

(iii) INSTR( )
(iv) MOD( )

(v) TRIM( )

90 Page 9 of 13 P.T.O.
32. AWESOME Private Ltd, Dehradun is a company that deals with
hardware components. They have different divisions HR (A1), Sales (A2),
Production (A3) and Marketing (A4). The layout of the Dehradun branch
is :
DEHRADUN BRANCH
SALES
HR (A2)
(A1)
MUMBAI
BRANCH
MARKETING
PRODUCTION
(A4)
(A3)

The company also has a branch in Mumbai. The management wants to


connect all the divisions as well as the computers of each division
(A1, A2, A3, A4).
Distance between the wings are as follows :
A3 to A1 32m
A1 to A2 53m
A2 to A4 29m
A4 to A3 110m
A3 to A2 750m
A1 to A4 200m
Dehradun Head Office 1656 KM
to Mumbai Office
Number of computers in each wing :
A1 70
A2 140
A3 55
A4 70
Based on the above specifications, answer the following questions : 5
(a) Suggest the topology and draw the most efficient cable layout for
connecting all the divisions of the Dehradun branch.
(b) Suggest the kind of network required (out of LAN, MAN, WAN) for
connecting Production (A3) with Sales (A2).

90 Page 10 of 13
(c) Suggest the placement of the server. Explain the reasons for your
selection.
(d) Suggest the placement of the Switch/Hub device with justification.
(e) The company wants to do a collaborative project where the
employees of Dehradun and Mumbai would collaborate and do the
project. Therefore, the HR planned a series of webinars that
employees could attend from their devices being online. Suggest
the protocol that helped to send the voice signals over the Internet.
Also, give an example of a video conferencing software that helps
to connect all the employees.

33. (a) Consider the following graph. Write the Python code to plot it. Also
add the Title and Label for X and Y axis.
Use the following data to draw the graph. 5
Class Marks
7 83
8 75
9 81
10 72
11 88
12 86

OR
90 Page 11 of 13 P.T.O.
(b) Write a Python code to draw the following bar graph representing
the average marks secured by each student in Term-2 Exam. Add
the Title and Label for X-axis and Y-axis. Use the following data to
draw the graph : 5
Names Average Marks
Ruby 84
Yugesh 92
Vishesh 45
Rakesh 72

RESULT OF TERM-2 EXAM


100
AVERAGE MARKS SECURED

80

60

40

20

0
Ruby Yugesh Vishesh Rakesh
STUDENT NAMES

Section E

34. Consider the following table Student :


Table : STUDENT
Admn Name Class Optional Marks
1001 Tony 10 AI 90
1002 Ivana 11 IP 95
1003 Nick 10 IT 85
1004 Sandy 11 IP 80
1005 Kavya 11 IP 92

90 Page 12 of 13
Write SQL queries for the following :

(a) Display the Total Marks secured by students of each class. 1

(b) Display the Average Marks secured by the students of IP optional


subject. 1

(c) Display the total number of students in each Class where the number
of students are more than 2. 2
OR

(c) Display the maximum and minimum marks secured in each optional
subject. 2
35. Consider the follo
EID EName Department Salary
1 John IT 50000
2 Ria MKT 45000
3 Shobhit IT 55000
4 Aditya MKT 60000
5 Rashi ADMIN 52000

(a)

(i) 1

(ii) To remove the row having index 4. 1

(b)
file data.csv stored in D:drive of the computer. 2
OR

(b) Write a Python statement to display the new salary i.e., salary
increased by 5000 for all employees. 2

90 Page 13 of 13 P.T.O.
CBSE SSCE 2023 Marking Scheme for Informatics Practices
Series HEFG/C (Sub Code: 065 Paper Code 90) SET-4

Marking Scheme
Strictly Confidential
(For Internal and Restricted use only)
Senior School Certificate Examination, 2023 (Supplementary)
SUBJECT NAME INFORMATICS PRACTICES (SUBJECT CODE 65) (PAPER CODE 90)
(Series: Series HEFG/C)

General Instructions: -
1 You are aware that evaluation is the most important process in the actual and correct
assessment of the candidates. A small mistake in evaluation may lead to serious problems which
may affect the future of the candidates, education system and teaching profession. To avoid
mistakes, it is requested that before starting evaluation, you must read and understand the spot
evaluation guidelines carefully.
2 “Evaluation policy is a confidential policy as it is related to the confidentiality of the
examinations conducted, Evaluation done and several other aspects. Its’ leakage to the
public in any manner could lead to derailment of the examination system and affect the life
and future of millions of candidates. Sharing this policy/document to anyone, publishing in
any magazine and printing in News Paper/Website etc may invite action under various rules
of the Board and IPC.”
3 Evaluation is to be done as per instructions provided in the Marking Scheme. It should not be
done according to one’s own interpretation or any other consideration. Marking Scheme should
be strictly adhered to and religiously followed. However, while evaluating answers which are
based on latest information or knowledge and/or are innovative, they may be assessed for
their correctness otherwise and due marks be awarded to them. In class-XII, while
evaluating two competency-based questions, please try to understand the given answer and
even if the reply is not from the marking scheme but correct competency is enumerated by
the candidate, due marks should be awarded.
4 The Marking scheme carries only suggested value points for the answers
These are in the nature of Guidelines only and do not constitute the complete answer. The
students can have their own expression and if the expression is correct, the due marks should be
awarded accordingly.
5 The Head-Examiner must go through the first five answer books evaluated by each evaluator on
the first day, to ensure that evaluation has been carried out as per the instructions given in the
Marking Scheme. If there is any variation, the same should be zero after deliberation and
discussion. The remaining answer books meant for evaluation shall be given only after ensuring
that there is no significant variation in the marking of individual evaluators.
6 Evaluators will mark( ✓ ) wherever the answer is correct. For wrong answer CROSS ‘X” be
marked. Evaluators will not put right (✓)while evaluating which gives an impression that the
answer is correct and no marks are awarded. This is the most common mistake which
evaluators are committing.
7 If a question has parts, please award marks on the right-hand side for each part. Marks awarded
for different parts of the question should then be totaled up and written in the left-hand margin
and encircled. This may be followed strictly.
8 If a question does not have any parts, marks must be awarded in the left-hand margin and
encircled. This may also be followed strictly.
9 If a student has attempted an extra question, the answer of the question deserving more marks
should be retained and the other answer scored out with a note “Extra Question”.
10 No marks to be deducted for the cumulative effect of an error. It should be penalized only once.

- 1 of 23-
CBSE SSCE 2023 Marking Scheme for Informatics Practices
Series HEFG/C (Sub Code: 065 Paper Code 90) SET-4

11 A full scale of marks 0 to 70 has to be used. Please do not hesitate to award full marks if the
answer deserves it.
12 Every examiner has to necessarily do evaluation work for full working hours i.e., 8 hours every
day and evaluate 20 answer books per day in main subjects and 25 answer books per day in
other subjects (Details are given in Spot Guidelines).
13 Ensure that you do not make the following common types of errors committed by the Examiner
in the past:-
● Leaving the answer or part thereof unassessed in an answer book.
● Giving more marks for an answer than assigned to it.
● Wrong totaling of marks awarded on an answer.
● Wrong transfer of marks from the inside pages of the answer book to the title page.
● Wrong question wise totaling on the title page.
● Wrong totaling of marks of the two columns on the title page.
● Wrong grand total.
● Marks in words and figures not tallying/not same.
● Wrong transfer of marks from the answer book to online award list.
● Answers marked as correct, but marks not awarded. (Ensure that the right tick mark is
correctly and clearly indicated. It should merely be a line. Same is with the X for incorrect
answers.)
● Half or a part of the answer marked correct and the rest as wrong, but no marks awarded.
14 While evaluating the answer books, if the answer is found to be totally incorrect, it should be
marked as cross (X) and awarded zero (0)Marks.
15 Any un-assessed portion, non-carrying over of marks to the title page, or totaling error detected
by the candidate shall damage the prestige of all the personnel engaged in the evaluation work
as also of the Board. Hence, in order to uphold the prestige of all concerned, it is again
reiterated that the instructions be followed meticulously and judiciously.
16 The Examiners should acquaint themselves with the guidelines given in the “Guidelines for spot
Evaluation” before starting the actual evaluation.
17 Every Examiner shall also ensure that all the answers are evaluated, marks carried over to the
title page, correctly totaled and written in figures and words.
18 The candidates are entitled to obtain a photocopy of the Answer Book on request on payment of
the prescribed processing fee. All Examiners/Additional Head Examiners/Head Examiners are
once again reminded that they must ensure that evaluation is carried out strictly as per value
points for each answer as given in the Marking Scheme.

SPECIFIC INSTRUCTIONS FOR INFORMATICS PRACTICES ONLY

1 In Python, string content is accepted within a pair of single quotes ' ' or within a pair of
double quotes " ".

2 In MySQL, CHAR/VARCHAR/DATE type content is accepted within a pair of single quotes ' ' or
within a pair of double quotes " ".

3 In MySQL commands, lowercase/UPPERCASE both are correct.

4 In MySQL output questions, column headings to be ignored.

5 In MySQL output questions, alignment (left/right) of content to be ignored.

6 All answers/codes are suggestive, any other alternative correct answers to be accepted.

- 2 of 23-
CBSE SSCE 2023 Marking Scheme for Informatics Practices
Series HEFG/C (Sub Code: 065 Paper Code 90) SET-4

General Instructions:
(i) This question paper contains five sections, Section A to E.
(ii) All questions are compulsory.
(iii) Section A has 18 questions carrying 1 mark each.
(iv) Section B has 7 Very Short Answer type questions carrying 2 marks each.
(v) Section C has 5 Short Answer type questions carrying 3 marks each.
(vi) Section D has 3 Long Answer type questions carrying 5 marks each.
(vii) Section E has 2 questions carrying 4 marks each. One internal choice is given in Q. 35 against
Part E only.
(viii) All programming questions are to be answered using Python language only.

Section A

1. A is a network device that can receive the data, analyse it and transmit
it to other networks. 1
(a) Modem (b) Switch
(c) Repeater (d) Router

Ans 1. d) Router

(1 Mark for Correct Answer)

2. We need to exhibit proper manners and etiquettes while being online. Pick up 1
one such net etiquette from the following :
(a) Do not share the expertise
(b) Respect privacy and diversity
(c) Feed the troll
(d) Copyright violation

Ans 2. (b) Respect privacy and diversity

(1 Mark for Correct Answer)

3. A patent protects an invention for years, after which it 1


can be freely used.
(a) 40 (b) 30
(c) 20 (d) 10

Ans 3. (c) 20

(1 Mark for Correct Answer)


Note:
Full 1 mark to be awarded if question not/wrongly attempted, but
question 16 and/or question 23 (a) is/are correctly attempted.

4. Write the output of the following SQL query : 1


SELECT LCASE(SUBSTR("Project Management",9,6));
(a) Manag (b) Manage
(c) MANAGE (d) manage

- 3 of 23-
CBSE SSCE 2023 Marking Scheme for Informatics Practices
Series HEFG/C (Sub Code: 065 Paper Code 90) SET-4

Ans 4. (d) manage

(1 Mark for Correct Answer)

5. Write the output of the following SQL command : 1


select pow(2,2*2);
(a) 16 (b) 2
(c) 4 (d) 8

Ans 5. (a) 16

(1 Mark for Correct Answer)

6. E-waste contains that causes respiratory disorders and 1


brain damage.
(a) Cadmium (b) Beryllium
(c) Lead (d) Mercury

Ans 6. Any one/two/three or all of the given option(s) to be accepted as correct


answer.

(1 Mark for marking any one/two/three or all of the given option(s))

7. In SQL, returns the month name from the specified date. 1

(a) MONTH()
(b) DATE()
(c) MONTHNAME()
(d) NOW()

Ans 7. (c) MONTHNAME()

(1 Mark for Correct Answer)

8. Which of the following SQL function returns the number of values in the 1
specified column ignoring the NULL values ?
(a) COUNT(*)
(b) COUNT(columnname)
(c) LENGTH(*)
(d) LENGTH(columnname)

Ans 8. (b) COUNT(columnname)

(1 Mark for Correct Answer)

9. helps to fetch a group of rows based on common values in a column. 1

(a) ORDER BY (b) FILTER


(c) GROUP BY (d) SELECT BY

Ans 9. (c) GROUP BY

(1 Mark for Correct Answer)

- 4 of 23-
CBSE SSCE 2023 Marking Scheme for Informatics Practices
Series HEFG/C (Sub Code: 065 Paper Code 90) SET-4

10. What will be the output of the Python program mentioned below ? 1
import pandas as pd
df=pd.DataFrame(['Apple','Banana','Orange','Grapes','Guava'])
print(df[2:4:2])
(a) 0
2 Banana
(b) 0
2 Orange
(c) 0
2 Banana
4 Grapes
(d) Empty DataFrame
Columns:[0]
Index:[ ]

Ans 10. (b) 0


2 Orange

(1 Mark for Correct Answer)

11. Which of the following is a one-dimensional array containing a sequence of 1


values in Python ?
(a) Relation (b) DataFrame
(c) Series (d) Square

Ans 11. (c) Series

(1 Mark for Correct Answer)

12. In Python Pandas, head(n) method returns the first n members of the 1
series. What is the default value of n ?
(a) 2 (b) 3
(c) 4 (d) 5

Ans 12. (d) 5

(1 Mark for Correct Answer)

13. is a service that allows to put a website or a web page on the Internet. 1
(a) Web Server
(b) Web Browser
(c) Web Hosting
(d) Domain Name System

Ans 13. (c) Web Hosting

(1 Mark for Correct Answer)

- 5 of 23-
CBSE SSCE 2023 Marking Scheme for Informatics Practices
Series HEFG/C (Sub Code: 065 Paper Code 90) SET-4

14. Find the output of the following SQL queries : 1


Select INSTR("Data Science","ie");
(a) 8 (b) 5
(c) True (d) False

Ans 14. (a) 8

(1 Mark for Correct Answer)

15. Rupam created an assistive device for the blind. This device is very helpful for 1
the blind and people with low vision. Now, she wants that no one should copy
her innovation. What should she do ?
(a) Get the trademark for her invention
(b) Get the license for her invention
(c) Get the patent for her invention
(d) Get the copyright for her invention

Ans 15.
(c) Get the patent for her invention

(1 Mark for Correct Answer)


Note:
Any one/two/three or all of the given option(s) to be accepted as correct
answer.

Full 1 mark to be awarded if question not/wrongly attempted, but


question 16 and/or question 23 (a) is/are correctly attempted.

16. Presenting someone else’s idea or work as one’s own idea or work is called: 1
(a) Phishing (b) Stacking
(c) Plagiarism (d) Bullying

Ans 16. (c) Plagiarism

(1 Mark for Correct Answer)

For Questions number 17 and 18, two statements are given - one labelled
as Assertion(A) and the other labelled as Reason (R). Select the correct
answer to these questions from the code(a),(b), (c) and (d) as given below:

(a) Both Assertion (A) and Reason(R) are true and Reason (R) is the correct
explanation of Assertion (A).
(b) Both Assertion (A) and Reason(R) are true, but Reason (R) is not the
correct explanation of Assertion (A).
(c) Assertion (A) is true but Reason (R) is false.
(d) Assertion (A) is false but Reason (R) is true.

- 6 of 23-
CBSE SSCE 2023 Marking Scheme for Informatics Practices
Series HEFG/C (Sub Code: 065 Paper Code 90) SET-4

17. Assertion (A): Modem stands for ‘Modulator Demodulator’ 1


Reason (R): The modem at the sender’s end acts as a demodulator that
converts the digital data into analogue signals and at the receiver’s
end acts as a modulator that converts analogue signals into digital
data.

Ans 17. (c) Assertion(A) is true but Reason(R) is false.

(1 Mark for Correct Answer)

18. Assertion (A): In order to be able to use Python’s data visualization 1


library, we need to import the pyplot module from matplot
library.
Reason (R): The pyplot module houses a variety of functions required
to create and customize charts or graphs.

Ans 18. (a) Both Assertion (A) and Reason (R) are true and Reason (R) is the correct
explanation of Assertion (A).

(1 Mark for Correct Answer)

Section B

19. (a) Write any one main advantage and one main disadvantage of Star Topology. 2

Ans One main advantage of Star Topology:


19. (a) Centralized control and management makes it easy to monitor, troubleshoot,
and scale the network.

Other points to be accepted:


● reliable – if one cable or device fails then all the others will still work.
● high-performing as no data collisions can occur.
● Easier to install.
● Easy fault detection.
● No disruptions to the network when connecting or removing devices.
Or Any other valid point.

One main disadvantage of Star Topology :


Dependence on the central hub or switch. If the central hub fails, the entire
network becomes inaccessible.

Other points to be accepted:


● More Cable required
● More expensive.
Or Any other valid point

(1 Mark for Any one correct advantage)


(1 Mark for Any one correct disadvantage)

OR

- 7 of 23-
CBSE SSCE 2023 Marking Scheme for Informatics Practices
Series HEFG/C (Sub Code: 065 Paper Code 90) SET-4

(b) With reference to browsing the websites, briefly explain the term cookie. Also 2
mention any two points of significance of it.

Ans A cookie is a small piece of data that a website sends to a user's web browser.
(b) The browser stores this data and sends it back to the website each time the
user visits it again.

Any two points of significance of cookies from the following:


1. Helps in analyzing the user’s browsing pattern/interests.
2. Helps in recognizing the user’s computer activity(website’s loginids,
shopping carts)
3. Helps in customizing the website’s experience for a user.
Or Any other valid point

(1 Mark for explaining the term)


(½ Mark each for any two correct points of Significance)

20. Arpit wants to find the total commission earned by those departments where 2
the number of employees in the department is more than 2 and writes the
following query :

Select department, count(commission) from TECHNO having


count(*)>2 group by department;
But he got an error. Identify the error(s) and rewrite the query by underlining
the correction(s) done.

Ans 20. Error 1 : SUM(commission) in place of count(commission)


Error 2 : having should be after group by

Corrected Query:
SELECT department, SUM(commission) FROM TECHNO
GROUP BY department HAVING count(*)>2 ;

(½ Mark each for Identifying each of the two errors)


(½ Mark each for rewriting query after correcting each of the two errors)

Note: Full 2 Marks to be awarded if only corrected query is written.

21. Ananya, a database executive, needs to display a system’s current date and 2
time. Suggest to her a suitable SQL function name. Also write the query for the
same.

Ans 21. NOW()


SELECT NOW();

(1 Mark for writing NOW())


(1 Mark for correct query)
Note: Full 2 Marks to be awarded if only correct query is written.

- 8 of 23-
CBSE SSCE 2023 Marking Scheme for Informatics Practices
Series HEFG/C (Sub Code: 065 Paper Code 90) SET-4

22. Shobit needs to create the following two series named ‘Eng’ and ‘Math’. Help 2
him to create a DataFrame ‘mydata’ from the given series ‘Eng’ and ‘Math’.

Eng Math

Aditi 25 Aditi 9
bhavuk 21 bhavuk 29
chirag 23 chirag 15
deepak 24 deepak 14
Gaurav 27 Gaurav 20
dtype: int64 dtype: int64

Ans 22. import pandas as pd


eng_data = {'Aditi': 25, 'bhavuk': 21, 'chirag': 23,
'deepak': 24, 'Gaurav': 27}

Eng = pd.Series(eng_data, name='Eng')

math_data = {'Aditi': 9, 'bhavuk': 29, 'chirag': 15,


'deepak': 14, 'Gaurav': 20}

Math = pd.Series(math_data, name='Math')

mydata = pd.DataFrame({'Eng': Eng, 'Math': Math})

OR

import pandas as pd
Eng = pd.Series([25,21,23,24,27],
index=['Aditi','bhavuk','chirag','deepak','Gaurav'],name='E
ng')
Math = pd.Series([9,29,15,24,20],
index=['Aditi','bhavuk','chirag','deepak','Gaurav'],name='M
ath')
mydata = pd.concat([Eng, Math], axis=1)

(½ Mark each for creating two series)


(1 Mark for creating DataFrame from the two series)

23. What do you understand about Copyright Infringement ? What can be done as a 2
(a) user to avoid Copyright Infringement ?

Ans 23. Copyright infringement refers to the unauthorized use, reproduction, or


(a) distribution of copyrighted material without the permission of the copyright
holder.
To avoid copyright infringement, users should obtain permission, use licensed
content, create their own original works, or use open source content.
- 9 of 23-
CBSE SSCE 2023 Marking Scheme for Informatics Practices
Series HEFG/C (Sub Code: 065 Paper Code 90) SET-4

(1 Mark for correct definition or explanation of Copyright infringement


with/without the help of any example)

(1 Mark for Any one correct suggestion to avoid Copyright Infringement)

OR

(b) What is meant by Trademark Infringement ? What action can the owner take 2
against someone who infringes its registered trademark ?

Ans (b) Trademark infringement occurs when someone uses a registered trademark
without permission.

The owner can take legal action against the infringer, seeking actions like
injunctions, damages, orders to cease the infringing activities, to protect their
brand and enforce their exclusive rights.

(1 Mark for correct meaning)


(1 Mark for correct suggestive action)

Note:
Full 2 Marks to be awarded if infringement of any Intellectual property is
explained and action suggested

OR
Full 2 Marks to be awarded if question not/wrongly attempted, but
question 16 and/or question 23 (a) is/are correctly attempted.

24. What will be the output of the following code ? 2

import pandas as pd
S1=pd.Series(data=[1,7])
S2=pd.Series(S1+S1)
print(S2)

Ans 24. 0 2
1 14

(1 Mark for each correct line of output)


Note: No Marks to be deducted if indexes are not mentioned.

25. Carefully observe the following code : 2

import pandas as pd
product={'prodid':pd.Series([1,2,3,4,5]),
'pname':pd.Series(['pen', 'pencil', 'eraser',
'color', 'sharpener']),
'qty':pd.Series([2,10,10,30,10]),
'price':pd.Series([300,20,50,40,15])}
stock=pd.DataFrame(product)
print(stock)

- 10 of 23-
CBSE SSCE 2023 Marking Scheme for Informatics Practices
Series HEFG/C (Sub Code: 065 Paper Code 90) SET-4

Write Python statements for the following :


(i) Display the names of products.
(ii) Rename the column ‘price’ to ‘newprice’ in the DataFrame stock.

Ans 25. (i) print(stock['pname'])


(ii) stock.rename({'price':'newprice'},axis='columns',
inplace=True)
OR
(ii)stock.rename({'price':'newprice'},axis=1, inplace=True)
OR
(ii) stock.columns = ['prodid', 'pname', 'qty', 'newprice']

(1 Mark for writing each part correctly)

Section C

26. Consider the table Customer given below and write SQL commands : 3

TABLE : Customer

CustID Name Country Emailid Orderdate

C1001 Rajat India rajat@gmail.com 2022-12-22

C1002 Michael Denmark mic@yahoo.com 2023-11-15

C1003 Riyo Thailand Ri@gmail.com 2022-05-06

C1004 Jennifer S.Korea Jen@gmail.com 2022-08-07

C1005 Sudha India Sud@abc.com 2023-01-01

C1006 Vivek Nepal viv@xyz.com 2023-04-14

(i) Display the details of all customers who have placed the order in the year
2023.

Ans(i) SELECT * FROM Customer WHERE YEAR(Orderdate)=2023;


OR
SELECT * FROM Customer WHERE YEAR(Orderdate) IN ('2023');
OR
SELECT * FROM Customer WHERE YEAR(Orderdate) IN (2023);
OR
SELECT * FROM Customer WHERE YEAR(Orderdate) LIKE '2023';
OR
SELECT * FROM Customer WHERE YEAR(Orderdate) LIKE 2023;

(½ Mark for SELECT)


(½ Mark for WHERE clause)

- 11 of 23-
CBSE SSCE 2023 Marking Scheme for Informatics Practices
Series HEFG/C (Sub Code: 065 Paper Code 90) SET-4

(ii) Count the total number of customers from India.

Ans (ii) SELECT COUNT(*) FROM Customer WHERE Country= 'India';


OR
SELECT COUNT(Country) FROM Customer WHERE Country =
'India';

(½ Mark for COUNT())


(½ Mark for WHERE clause)
Note:
IN / LIKE operators to be accepted in place of = operator for condition
matching

(iii) Display the last 9 characters of the email id of all customers of Denmark.

Ans(iii) SELECT RIGHT(Emailid,9) FROM Customer WHERE Country=


'Denmark';
OR
SELECT RIGHT(Emailid,9) FROM Customer WHERE Country
IN('Denmark');
OR
SELECT RIGHT(Emailid,9) FROM Customer WHERE Country LIKE
'Denmark;

(½ Mark for RIGHT())


(½ Mark for WHERE clause)

27. Write a program in Python Pandas to create a series “car” from the following 3
Dictionary :
dic={
"Model":["Samurai","Accord","CR-V","Nexon"],
"Brand":["Suzuki","Honda","Honda","Tata"],
"Make":[1993,1997,1997,2021]}

Ans 27. import pandas as pd

dic = {
"Model": ["Samurai", "Accord", "CR-V", "Nexon"],
"Brand": ["Suzuki", "Honda", "Honda", "Tata"],
"Make": [1993, 1997, 1997, 2021]
}

car = pd.Series(dic)

(1 Mark for import statement)


(1 Mark for creating dictionary)
(1 Mark for creating Series from dictionary)

(Note: Marks Not to be deducted if instead of Series, DataFrame is


created)

- 12 of 23-
CBSE SSCE 2023 Marking Scheme for Informatics Practices
Series HEFG/C (Sub Code: 065 Paper Code 90) SET-4

28. Consider the given DataFrame 'result’: 3


Name Percentile
0 Rohit 95
1 Mohit 76
2 Raman 98
3 Aditya 47
Write the suitable Python statements for the following :

(i) Add a new column ‘Grade’ to the dataframe having values A,B,A,C

Ans(i) result['Grade']=['A','B','A','C']

(½ Mark for adding the Column Grade)


(½ Mark for putting the right values)

(ii) Add a new row where Name is ‘Arti’ with Percentile as 92 and Grade A.

Ans (ii) result.loc[4]=['Arti',92,'A']

(½ Mark for using loc)


(½ Mark for putting right values)

(iii) Display the top 3 rows.

Ans(iii) print(result.head(3))

(½ Mark for print)


(½ Mark for head())

29. (a) Riti received a message that she needs to update the KYC for her Bank Account 3
therefore she should upload her Aadhar Card, Bank Account Number and the
OTP on the link given in her message.
Answer the following questions :
(i) Should Riti upload the documents and give the OTP on the link ?

Ans(i) No, Riti should not upload the documents and give the OTP on the link

(1 Mark for correct answer)

(ii) Should Riti call her bank immediately to recheck the validity of the message
received ?

Ans (ii) Yes, Riti should call her bank immediately to recheck the validity of the
message received

(1 Mark for correct answer)

(iii) What is the act mentioned in the message known as ?

Ans (iii) Phishing


OR
Cyber Crime
(1 Mark for correct answer)
- 13 of 23-
CBSE SSCE 2023 Marking Scheme for Informatics Practices
Series HEFG/C (Sub Code: 065 Paper Code 90) SET-4

OR

(b) Briefly explain the term FOSS. Give examples of any 2 Operating Systems that 3
are FOSS.

Ans (b) FOSS (Free and Open-Source Software) refers to software that gives users
freedom to study, use, modify, and distribute the software.

Examples of FOSS operating systems include Linux (e.g., Ubuntu, Fedora) and
FreeBSD.

(2 Marks for correct explanation)


(½ Mark each for Any two valid examples)

30. (a) Write the output (i-iii) for the following SQL commands : 3

Table : CLUB
SNo Activity Fee Days
1 Swimming 10000 M, W
2 Singing 8000 Th, S
3 Dance 12000 M, W
4 Drawing 7000 T, Th
5 Craft 8000 F, S
6 Cooking 9000 T, F

(i) SELECT COUNT(*) FROM CLUB;

Ans(i) 6

(1 Mark for correct answer)

(ii) SELECT SUM(Fee) FROM CLUB;

Ans(ii) 54000

(1 Mark for correct answer)

(iii) SELECT LEFT(Activity,2) FROM CLUB WHERE Days='M,W';

Ans(iii) Sw
Da

(½ Mark for each correct line of output)

OR

(b) Find the output of the following SQL queries : 3

(i) SELECT MID("Exam",1,2);

Ans (i) Ex

(1 Mark for correct answer)


- 14 of 23-
CBSE SSCE 2023 Marking Scheme for Informatics Practices
Series HEFG/C (Sub Code: 065 Paper Code 90) SET-4

(ii) SELECT MONTHNAME("2023-05-30");

Ans(ii) May

(1 Mark for correct answer)

(iii) SELECT MONTH("2023-03-05");

Ans(iii) 3

(1 Mark for correct answer)


Note: 03 to be accepted

Section D
31. (a) Write the SQL queries which will perform the following operations : 5

(i) To display the day part from your date of admission, which is ‘2023-12-13’

Ans(i) SELECT DAY('2023-12-13');

(½ Mark for SELECT)


(½ Mark of DAY())

(ii) To convert your father’s email id ‘xyz@abc.com’ to uppercase.

Ans(ii) SELECT UCASE('xyz@abc.com');

OR
SELECT UPPER('xyz@abc.com');
(½ Mark for SELECT)
(½ Mark of UCASE()/UPPER())

(iii) To count the number of characters in the string ‘India’

Ans(iii) SELECT LENGTH('India');

(½ Mark for SELECT)


(½ Mark of LENGTH())

(iv) To display today’s day name i.e., Sunday or Monday …

Ans(iv) SELECT DAYNAME(NOW());


OR
SELECT DAYNAME(SYSDATE());
OR
SELECT DAYNAME(CURDATE());
(½ Mark for SELECT)
(½ Mark of dayname(now())
OR
(½ Mark of dayname(sysdate())
(½ Mark of dayname(curdate())

- 15 of 23-
CBSE SSCE 2023 Marking Scheme for Informatics Practices
Series HEFG/C (Sub Code: 065 Paper Code 90) SET-4

(v) To display your height 5.41 after rounding off to 1 decimal place.

Ans(v) SELECT ROUND(5.41,1);

(½ Mark for SELECT)


(½ Mark of ROUND())

OR

(b) Explain the following SQL functions using suitable examples : 5

(i) LTRIM()

Ans(i) LTRIM() function is used to remove any leading spaces (whitespace


characters) from a string.
Example:
SELECT LTRIM(' HELLO') ;
Output:
HELLO

(1 Mark for correctly explaining the function through example)


OR
(½ Mark for only explanation without any example)
Note:
No Marks to be deducted if only correct example is written

(ii) RTRIM( )

Ans(ii) RTRIM() function is used to remove any trailing spaces (whitespace


characters) from a string.

Example:
SELECT RTRIM('HELLO ') ;

Output:
HELLO

(1 Mark for correctly explaining the function through example)


OR
(½ Mark for only explanation without any example)
Note:
No Marks to be deducted if only correct example is written

(iii) INSTR( )

Ans(iii) The INSTR() function is used to find the starting position of a substring
within a larger string.
Example:
SELECT INSTR("SCIENCE","IE");
Output:
3
- 16 of 23-
CBSE SSCE 2023 Marking Scheme for Informatics Practices
Series HEFG/C (Sub Code: 065 Paper Code 90) SET-4

(1 Mark for correctly explaining the function through example)


OR
(½ Mark for only explanation without any example)
Note:
No Marks to be deducted if only correct example is written

(iv) MOD( )

Ans(iv) MOD() function is used to calculate the remainder of a division operation


between two numbers.
Example:

SELECT MOD(10,4) ;
Output:
2

(1 Mark for correctly explaining the function through example)


OR
(½ Mark for only explanation without any example)
Note:
No Marks to be deducted if only correct example is written

(v) TRIM( )

Ans(v) TRIM() function is used to remove leading and trailing spaces (whitespace
characters) from a string.
Example:
SELECT TRIM(' HELLO ') ;
Output:
HELLO

(1 Mark for correctly explaining the function through example)


OR
(½ Mark for only explanation without any example)
Note:
No Marks to be deducted if only correct example is written

32. AWESOME Private Ltd, Dehradun is a company that deals with hardware 5
components. They have different divisions HR (A1), Sales (A2), Production (A3)
and Marketing (A4). The layout of the Dehradun branch is :

The company also has a branch in Mumbai. The management wants to connect
all the divisions as well as the computers of each division (A1, A2, A3, A4).

- 17 of 23-
CBSE SSCE 2023 Marking Scheme for Informatics Practices
Series HEFG/C (Sub Code: 065 Paper Code 90) SET-4

Distance between the wings are as follows :


A3 to A1 32m
A1 to A2 53m
A2 to A4 29m
A4 to A3 110m
A3 to A2 750m
A1 to A4 200m
Dehradun Head Office to Mumbai Office 1656 KM

Number of computers in each wing :


A1 70
A2 140
A3 55
A4 70
Based on the above specifications, answer the following questions :

(a) Suggest the topology and draw the most efficient cable layout for connecting
all the divisions of the Dehradun branch.

Ans (a)
STAR Topology BUS Topology

(½ Mark for suggesting the correct topology )


(½ Mark for drawing the cable layout according to the suggested topology)

(b) Suggest the kind of network required (out of LAN, MAN, WAN) for connecting
Production (A3) with Sales (A2).

Ans(b) LAN

(1 Mark for suggesting the correct kind of network)

(c) Suggest the placement of the server. Explain the reasons for your selection.

Ans(c) Placement : SALES (A2)


It has maximum number of computers.

(½ Mark for suggesting the correct placement)


(½ Mark for explaining correct reason )
- 18 of 23-
CBSE SSCE 2023 Marking Scheme for Informatics Practices
Series HEFG/C (Sub Code: 065 Paper Code 90) SET-4

(d) Suggest the placement of the Switch/Hub with justification.

Ans(d) One switch/hub in each division.


A switch/hub will be placed in each division to interconnect devices present in
that division.

(½ Mark for suggesting the correct placement)


(½ Mark for justification )

(e) The company wants to do a collaborative project where the employees of


Dehradun and Mumbai would collaborate and do the project. Therefore, the HR
planned a series of webinars that employees could attend from their devices
being online. Suggest the protocol that helped to send the voice signals over the
Internet.
Also, give an example of a video conferencing software that helps to connect all
the employees.
Ans (e) Protocol: VoIP or Voice over Internet protocol
Example of video conferencing software: Google Meet, Zoom, Webex, MS
Teams, Whereby (Any One)
(or any other correct video conferencing software name)
(½ Mark for suggesting the correct protocol)
(½ Mark for explaining correct example of software name)

33. Consider the following graph. Write the Python code to plot it. Also add the 5
(a) Title and Label for X and Y axis.
Use the following data to draw the graph.
Class Marks
7 83
8 75
9 81
10 72
11 88
12 86

- 19 of 23-
CBSE SSCE 2023 Marking Scheme for Informatics Practices
Series HEFG/C (Sub Code: 065 Paper Code 90) SET-4

Ans 33 import matplotlib.pyplot as plt


(a) cl = [7,8,9,10,11,12]
avmarks=[83,75,81,72,88,86]
plt.plot(cl,avmarks)
plt.title("AVERAGE RESULT OF CLASS VII-XII")
plt.xlabel('CLASS')
plt.ylabel('AVERAGE MARKS SCORED')
plt.show()

(1 Mark for correct import statement)


(1 Mark for correct use of plot())
(1 Mark for correct use of title())
(½ Mark for correct use of xlabel())
(½ Mark for correct use of ylabel())
(1 Mark for correct use of show())

Note:
Arrow symbols for X and Y axis to be ignored

OR

(b) Write a Python code to draw the following bar graph representing the average 5
marks secured by each student in Term - 2 Exam. Add the Title and Label for
X-axis and Y-axis. Use the following data to draw the graph:

Names Average Marks


Ruby 84
Yugesh 92
Vishesh 45
Rakesh 72

Ans (b) import matplotlib.pyplot as plt


names = ['ruby','yugesh','Vishesh','Rakesh']
averagemarks=[84,92,45,72]
plt.bar(names,averagemarks)
plt.title("RESULT OF TERM-2 EXAM")
plt.xlabel('STUDENT NAMES')
plt.ylabel('AVERAGE MARKS SCORED')
plt.show()
- 20 of 23-
CBSE SSCE 2023 Marking Scheme for Informatics Practices
Series HEFG/C (Sub Code: 065 Paper Code 90) SET-4

(1 Mark for import statement)


(1 Mark for correct use of bar())
(1 Mark for correct use of title())
(½ Mark for correct use of xlabel())
(½ Mark for correct use of ylabel())
(1 Mark for correct use of show())
Note:
Arrow symbols for X and Y axis to be ignored

Section E

34. Consider the following table Student :


Table: STUDENT
Admn Name Class Optional Marks
1001 Tony 10 AI 90
1002 Ivana 11 IP 95
1003 Nick 10 IT 85
1004 Sandy 11 IP 80
1005 Kavya 11 IP 92
Write SQL queries for the following:

(a) Display the Total Marks secured by students of each class. 1

Ans(a) SELECT Class, SUM(Marks)


FROM STUDENT GROUP BY Class;
OR
SELECT Class, SUM(Marks) "Total Marks"
FROM STUDENT GROUP BY Class;
OR
SELECT SUM(Marks)
FROM STUDENT GROUP BY Class;

(½ Mark for SELECT SUM(Marks))


(½ Mark for FROM STUDENT GROUP BY Class)

(b) Display the Average Marks secured by the students of IP optional subject 1

Ans (b) SELECT AVG(Marks) FROM STUDENT WHERE Optional="IP";

(½ Mark for SELECT AVG(Marks) FROM STUDENT )


(½ Mark for WHERE Optional="IP" )

(c) Display the total number of students in each Class where the number of 2
students are more than 2.

Ans (c) SELECT Class, COUNT(*) FROM STUDENT


GROUP BY Class HAVING COUNT(*)>2;
OR
SELECT COUNT(*) FROM STUDENT
GROUP BY Class HAVING COUNT(*)>2;

- 21 of 23-
CBSE SSCE 2023 Marking Scheme for Informatics Practices
Series HEFG/C (Sub Code: 065 Paper Code 90) SET-4

(1 Mark for writing SELECT COUNT(*) FROM STUDENT )


(1 Mark for writing GROUP BY Class HAVING COUNT(*)>2)

OR

(c) Display the maximum and minimum marks secured in each optional subject. 2

Ans (c) SELECT Optional, MAX(Marks), MIN(Marks) FROM STUDENT


GROUP BY Optional;

OR

SELECT MAX(Marks), MIN(Marks) FROM STUDENT


GROUP BY Optional;

(1 Mark for writing SELECT MAX(Marks), MIN(Marks) FROM STUDENT )


(1 Mark for writing GROUP BY Optional )

35. Consider the following DataFrame ‘employee’:

EID EName Department Salary


1 John IT 50000
2 Ria MKT 45000
3 Shibhit IT 55000
4 Aditya MKT 60000
5 Rashi ADMIN 52000

(a) Write Python statements for the DataFrame ‘employee’:

(i) To remove the column ‘Salary’. 1

Ans(i) employee=employee.drop('Salary', axis=1)


OR
employee.drop('Salary', axis=1, inplace=True)

(1 Mark for writing the correct Python statement)

(ii) To remove the row having index 4. 1

Ans(ii) employee=employee.drop(employee.index[4])
OR
employee.drop(employee.index[4], inplace=True)

(1 Mark for writing the correct Python statement)

(b) Write Python statement to save the DataFrame ‘employee’ to a CSV file 2
data.csv stored in D: drive of the computer

Ans (b) employee.to_csv('d:\\data.csv')


OR
employee.to_csv('d:/data.csv')

- 22 of 23-
CBSE SSCE 2023 Marking Scheme for Informatics Practices
Series HEFG/C (Sub Code: 065 Paper Code 90) SET-4

(1 Mark for writing employee.to_csv)


(1 Mark for writing the correct path)

OR

(b) Write a Python statement to display the new salary i.e., salary increased by 2
5000 for all employees.

Ans (b) employee['new_salary'] = employee['salary'] + 5000


print(employee['new_salary'])
OR
print(employee['salary']+5000)

(1½ Marks for increasing salary by 5000)


(½ Mark for writing print())

- 23 of 23-
Strictly Confidential: (For Internal and Restricted use only)
Senior Secondary School Term II Examination, 2022
Marking Scheme – INFORMATICS PRACTICES (SUBJECT CODE – 065)
(PAPER CODE –90)
General Instructions :
1. You are aware that evaluation is the most important process in the actual and correct assessment of
the candidates. A small mistake in evaluation may lead to serious problems which may affect the
future of the candidates, education system and teaching profession. To avoid mistakes, it is
requested that before starting evaluation, you must read and understand the spot evaluation
guidelines carefully.
2. “Evaluation policy is a confidential policy as it is related to the confidentiality of the
examinations conducted, Evaluation done and several other aspects. Its’ leakage to the public in
any manner could lead to derailment of the examination system and affect the life and future of
millions of candidates. Sharing this policy/document to anyone, publishing in any magazine and
printing in News Paper/Website etc may invite action under IPC.”
3. Evaluation is to be done as per instructions provided in the Marking Scheme. It should not be done
according to one’s own interpretation or any other consideration. Marking Scheme should be strictly
adhered to and religiously followed. However, while evaluating answers which are based on latest
information or knowledge and/or are innovative, they may be assessed for their correctness
otherwise and marks be awarded to them. In class-XII, while evaluating two competency based
questions, please try to understand the given answer and even if reply is not from the marking
scheme but correct competency is enumerated by the candidate, marks should be awarded.
4. The Head-Examiner must go through the first five answer books evaluated by each evaluator on the
first day, to ensure that evaluation has been carried out as per the instructions given in the Marking
Scheme. The remaining answer books meant for evaluation shall be given only after ensuring that
there is no significant variation in the marking of individual evaluators.
5. Evaluators will mark( √ ) wherever the answer is correct. For wrong answer ‘X’ be marked. Evaluators
will not put the right kind of mark while evaluating which gives an impression that the answer is
correct and no marks are awarded. This is the most common mistake which evaluators are
committing.
6. If a question has parts, please award marks on the right-hand side for each part. Marks awarded for
different parts of the question should then be totaled up and written in the left-hand margin and
encircled. This may be followed strictly.
7. If a question does not have any parts, marks must be awarded in the left-hand margin and encircled.
This may also be followed strictly.
8. If a student has attempted an extra question, the answer of the question deserving more marks
should be retained and the other answer scored out.
9. No marks to be deducted for the cumulative effect of an error. It should be penalized only once.
10. A full scale of marks 35 (example 0-35 marks as given in Question Paper) has to be used. Please do
not hesitate to award full marks if the answer deserves it.
11. Every examiner has to necessarily do evaluation work for full working hours i.e. 8 hours every day and
evaluate 30 answer books per day in main subjects and 35 answer books per day in other subjects
(Details are given in Spot Guidelines). This is in view of the reduced syllabus and number of questions
in the question paper.
12. Ensure that you do not make the following common types of errors committed by the Examiner in the
past :
● Leaving the answer or part thereof unassessed in an answer book.
● Giving more marks for an answer than assigned to it.
● Wrong totaling of marks awarded on a reply.
● Wrong transfer of marks from the inside pages of the answer book to the title page.
● Wrong question wise totaling on the title page.
● Wrong totaling of marks of the two columns on the title page.

Page # 1 of 12
● Wrong grand total.
● Marks in words and figures not tallying.
● Wrong transfer of marks from the answer book to online award list.
● Answers marked as correct, but marks not awarded. (Ensure that the right tick mark is correctly
and clearly indicated. It should merely be a line. Same is with the X for incorrect answers.)
● Half or a part of the answer was marked correct and the rest as wrong, but no marks awarded.
13. While evaluating the answer books if the answer is found to be totally incorrect, it should be marked
as cross (X) and awarded zero (0) Marks.
14. Any unassessed portion, non-carrying over of marks to the title page, or totaling error detected by
the candidate shall damage the prestige of all the personnel engaged in the evaluation work as also
of the Board. Hence, in order to uphold the prestige of all concerned, it is again reiterated that the
instructions be followed meticulously and judiciously.
15. The Examiners should acquaint themselves with the guidelines given in the Guidelines for spot
Evaluation before starting the actual evaluation.
16. Every Examiner shall also ensure that all the answers are evaluated, marks carried over to the title
page, correctly totaled and written in figures and words.
17. The Board permits candidates to obtain a photocopy of the Answer Book on request in an RTI
application and also separately as a part of the re-evaluation process on payment of the processing
charges.

Specific Instructions:
● In SQL related questions – both ways of text/character entries should be acceptable. For
example: “AMAR” and ‘amar’ both are acceptable.
● In SQL related questions – all date entries should be acceptable. For example. ‘YYYY-MM-DD’,
‘YY-MM-DD’, ‘DD-Mon-YY’, “DD/MM/YY”, ‘DD/MM/YY’, “MM/DD/YY”, ‘MM/DD/YY’ and
{MM/DD/YY} are correct.
● In SQL related questions – semicolon should be ignored for terminating the SQL statements
● In SQL related questions, ignore case sensitivity.
● In SQL related output questions, ignore Column Headings.

Q. Mar
No. ks

SECTION—A
(Each question carries 2 marks)
1. Rushil thought “WWW” and “Internet” are synonyms i.e., they meant same 2
and can be used interchangeably. But the teacher said that they are not
same. Help him to understand the meaning of both the terms with the help
of a suitable example of each.

Ans The Internet is a system of linked networks that are worldwide in scope and
facilitate data communication services such as remote login, file transfer,
electronic mail, the World Wide Web and newsgroups.
OR
It is a network of networks spread across the globe, all of which are
connected to each other.
OR
The Internet is a public network of devices like desktop computers, laptops,
servers, tablets, mobile phones, other handheld devices, printers, scanners

Page # 2 of 12
etc.
Example: Network of computers to perform E-commerce, E-Governance etc.

WWW can be defined as a hypertext information retrieval system on the


Internet.
OR
WWW is the universe of the information available on the internet.
OR
WWW consists of web pages, which use HTML to interchange information on
the internet.
OR
The World Wide Web (WWW) or web in short is a collection of information
stored in the form of hyperlinked web pages and web resources.
Example, www.google.com

(½ mark for writing each correct explanation of Internet and WWW)

(½ mark each for writing any correct example of Internet and WWW)

OR
What are Cookies? How can we disable Cookies?

Ans This is a small text file which contains the name of the website that it has
come from and a unique ID tag.
OR
A cookie is a text file created by the web server while browsing websites
and gets stored on the user's computer.

We can disable cookies by changing the Privacy and Security settings of the
browser.
OR
We can disable cookies by selecting the Do Not Allow option when prompted
whether to allow cookies for a website.

(1 mark for writing correct definition of cookie)


(1 mark for writing correct way to disable cookies)
2 (i) What is the function of a Gateway? 1

Ans A gateway is a network device that establishes an intelligent connection


between a local network and external networks with completely different
structures
OR
It is a network device that connects two dissimilar networks.

(1 mark for writing any correct functionality of a Gateway)

Page # 3 of 12
(ii) Give examples of any two plug-ins. 1

Ans Java, Flash, Adobe Acrobat, Quicktime


NOTE:
Any other valid name for plug-ins to be accepted.
(½ mark each for writing each correct example)
OR
(½ mark each for writing correct explanation of plug-in without
example)
3 Find the output of the following SQL Queries : 2
(i) SELECT ROUND (7658.345,2);
(ii) SELECT MOD (ROUND (13·9, 0), 3);

Ans (i) 7658·35


(ii) 2

(1 mark for writing each correct output)

OR
Give any two differences between the POWER( ) and SUM( ) SQL functions.

Ans POWER() returns the value of a number raised to the power of another
number, while SUM() returns the sum of the values stored in a specific
column.

POWER() is a single row function while SUM() is a group/aggregate


function.

POWER() accepts two parameters while SUM() accepts one parameter.

(1 mark each for writing each of the two correct differences)


OR
(1 mark for explaining any of the power() OR sum() )
NOTE:
(Full 2 marks to be given if difference is explained with the help of
examples of each function)
4 Give one advantage and disadvantage each of Bus and Star Topology. 2

Ans Advantage of BUS Topology :


Minimum cable length required
Disadvantage of BUS Topology :
If there is any problem in the main cable the entire network fails.

Advantage of STAR Topology :


Considered faster than other topologies, as each device is directly
connected with the central hub/device.

Page # 4 of 12
Disadvantage of STAR Topology :
More cable length is required compared to Bus topology.
NOTE:
Any valid advantage, disadvantage of Star and Bus topology to be accepted.

(½ mark for writing any one correct advantage of Bus Topology)


(½ mark for writing any one correct disadvantage of Bus Topology)
(½ mark for writing any one correct advantage of Star Topology)
(½ mark for writing any one correct disadvantage of Star Topology)
OR
(1 mark for drawing only the topology layouts without explaining the
advantages and disadvantages)
5 Find the output of the following SQL queries: 2
(i) SELECT SUBSTR ("FIT INDIA MOVEMENT", 5);
(ii) SELECT INSTR ("ARTIFICIAL INTELLIGENCE", "IA");

Ans (i) INDIA MOVEMENT


(ii) 8

(1 mark for writing each correct output)


6 Srikanth created the following table STUDENT in his database.
Table : STUDENT
RollNo Name Class Marks
1 Ritika 12 40
2 Angad 12 35
3 Kaveri 11 42
4 Lalitha 12 21
5 Daniel 11 44
6 Rabindra 11 39
7 Rabia 11 28
He now wants to count number of students in each class where the number
of students is more than 3. He has executed the following query :
SELECT MAX (Marks) FROM STUDENT WHERE COUNT (*) > 3 GROUP
BY Class;
But, he got an error. Identify the error(s) and rewrite the query. Also
underline the correction(s) done.

Ans SELECT CLASS, COUNT(*) FROM STUDENT


GROUP BY CLASS HAVING COUNT (*) > 3;
OR
SELECT COUNT(*) FROM STUDENT
GROUP BY CLASS HAVING COUNT (*) > 3;

NOTE:
COUNT() to be accepted with any column name in place of *

Page # 5 of 12
(1 mark for writing SELECT COUNT(*) FROM STUDENT )
(½ mark for writing GROUP BY CLASS)
(½ mark for writing HAVING COUNT (*) > 3 )
7 Ms Mohini is working in a school and stores the details of all students in a 2
table SCHOOLDATA.

TABLE : SCHOOLDATA
Admno Name Class House Percent Gender Dob
20150001 Aditya Das 10 Green 86 Male 2006-02-20
20140212 Harsh Sharma 11 Red 75 Male 2004-10-05
20090234 Swapnil Pant 10 Yellow 84 Female 2005-11-21
20130216 Soumen Rao 9 Red 91 Male 2006-04-10
20190227 Rahil Arora 10 Blue 70 Male 2005-05-14
20120200 Akasha Singh 11 Red 64 Female 2004-12-16

Write SQL statements from the above given table to:


(i) To remove leading spaces from the column name;
(ii) Display the names of students who were born on Sunday.

Ans (i) SELECT LTRIM (Name) FROM SCHOOLDATA;

(½ mark for writing SELECT LTRIM (Name) )


(½ mark for writing FROM SCHOOLDATA )

(ii) SELECT NAME FROM SCHOOLDATA WHERE DAYNAME (DoB) =


"Sunday";
(½ mark for writing SELECT NAME FROM SCHOOLDATA )
(½ mark for writing WHERE DAYNAME (DoB) = "Sunday" )

OR
Predict the output of the following SQL queries from the above table :
SCHOOLDATA
(i) SELECT MAX (Percent) FROM SCHOOLDATA;
(ii) SELECT LEFT (Gender, 1), Name FROM SCHOOLDATA WHERE
YEAR (Dob) = 2005;

Ans (i) 91
(ii) F Swapnil Pant
M Rahil Arora

(1 mark for writing correct output for (i) )


(½ mark for each correct line of output for (ii) )

SECTION—B
(Each question carries 3 marks)
8 Predict the output of the following SQL queries : 3

Page # 6 of 12
(i) SELECT TRIM (" ALL THE BEST ");
(ii) SELECT POWER(5,2);
(iii) SELECT UPPER (MID ("start up india", 10));

Ans (i) ALL THE BEST


(ii) 25
(iii) INDIA
(1 mark for writing each correct output)

OR
Consider a table “MYPET” with the following data :
Table : MYPET
Pet_id Pet_Name Breed LifeSpan Price Discount
101 Rocky Labrador 12 16000 5
Retriever
202 Duke German Shepherd 13 22000 10
303 Oliver Bulldog 10 18000 7
404 Cooper Yorkshire 16 20000 12
Terrier
505 Oscar Shih Tzu NULL 25000 8

Write SQL queries for the following :


(i) Display the Breed of all the pets in uppercase.
(ii) Display the total price of all the pets.
(iii) Display the average life span of all the pets.

Ans (i) SELECT UPPER (Breed) FROM MYPET;


OR
SELECT UCASE (Breed) FROM MYPET;
(½ mark for writing SELECT UPPER (Breed)
OR SELECT UCASE (Breed) )
(½ mark for writing FROM MYPET )

(ii) SELECT SUM (Price) FROM MYPET;


(½ mark for writing SELECT SUM (Price) )
(½ mark for writing FROM MYPET )

(iii) SELECT AVG (LifeSpan) FROM MYPET;


(½ mark for writing SELECT AVG (LifeSpan) )
(½ mark for writing FROM MYPET )
9 Write the names of SQL functions to perform the following operations : 3
(i) Display name of the Month from your date of birth.
(ii) Convert email-id to lowercase.
(iii) Count the number of characters in your name.

Ans (i) MONTHNAME( )


(ii) LCASE( )/LOWER( )
(iii) LENGTH( )

Page # 7 of 12
NOTE:
Only Function names, without () to be accepted
(1 mark for writing each correct SQL function)
10 Consider the following table: PRODUCT 3
Table : PRODUCT
PID PNAME PRICE QUANTITY
P1001 Eraser 10.50 5
P1002 Ball Pen 15.00 2
P1003 Gel Pen 25.10 3
P1004 Ruler 5.00 1
Find the output of the following SQL queries :
(i) SELECT 10+MOD(QUANTITY,3) FROM PRODUCT
WHERE PNAME = "Eraser";
(ii) SELECT ROUND(PRICE, 2) *QUANTITY
FROM PRODUCT WHERE QUANTITY > 2;
(iii) SELECT UCASE(RIGHT(PNAME, 2))
FROM PRODUCT;

Ans (i) 12
(ii) 52·50
75·30
(iii) ER
EN
EN
ER
(1 mark for writing each correct output)
Note:
(Only ½ mark to be awarded for (iii) if UCASE() is not considered for the
output)

SECTION—C
(Each question carries 4 marks)
11 Consider the table: ITEM 4
Table : ITEM
SNo Itemname Type Price Stockdate
1 Chaises Living 11500·58 2020-02-19
2 Accent Chairs Living 31000.67 2021-02-15
3 Baker Racks Kitchen 25000·623 2019-01-01
4 Sofa Living 7000·3 2020-10-18
5 Nightstand Bedroom NULL 2021-07-23
Write SQL queries for the following :
(i) Display all the records in descending order of Stockdate.
(ii) Display the type and total number of items of each Type.
(iii) Display the least Price.
(iv) Display the Itemname with their price rounded to 1 decimal place.

Ans (i) SELECT * FROM ITEM ORDER BY Stockdate DESC;

Page # 8 of 12
(½ Mark for writing SELECT * FROM ITEM )
(½ Mark for writing ORDER BY Stockdate DESC )

(ii) SELECT Type, COUNT(*)FROM ITEM GROUP BY Type;


NOTE:
COUNT() to be accepted with any column name (except Price), in
place of *

(½ Mark for writing SELECT Type, COUNT(*)FROM ITEM )


(½ Mark for writing GROUP BY Type )

(iii) SELECT MIN(PRICE) FROM ITEM;


(½ Mark for writing SELECT MIN(PRICE) )
(½ Mark for writing FROM ITEM )

(iv) SELECT Itemname, ROUND(Price, 1) FROM ITEM;


(½ Mark for writing SELECT Itemname, ROUND(Price, 1) )
(½ Mark for writing FROM ITEM )
12 Consider the following table : 4
Table : SALESMAN
Scode Sname Area Qtysold Dateofjoin
S001 Ravi North 120 2015-10-01
S002 Sandeep South 105 2012-08-01
S003 Sunil NULL 68 2018-02-01
S004 Subh West 280 2010-04-01
S005 Ankit East 90 2018-10-01
S006 Raman North NULL 2019-12-01

Predict the output for the following SQL queries :


(i) SELECT MAX(Qtysold), MIN(Qtysold) FROM SALESMAN;
(ii) SELECT COUNT(Area) FROM SALESMAN;
(iii) SELECT LENGTH (Sname) FROM SALESMAN
WHERE MONTH (Dateofjoin)=10;
(iv) SELECT Sname FROM SALESMAN WHERE RIGHT(Scode,1)=5;

Ans (i) 280 68 (½ Mark for each correct value of the output)
(ii) 5 (1 Mark for the correct value of the output)
(iii) 4 (½ Mark for each value of the output)
5
(iv) Ankit (1 Mark for the correct value of the output)

OR
Based on the given table SALESMAN, write SQL queries to perform the
following operations :

(i) Count the total number of salesman.

Ans (i) SELECT COUNT(*)FROM SALESMAN;

Page # 9 of 12
NOTE:
COUNT() to be accepted with any column name (except Qtysold), in
place of *
(½ mark for writing SELECT COUNT(*))
(½ mark for writing FROM SALESMAN)

(ii) Display the maximum qtysold from each area.

Ans SELECT MAX (Qtysold), Area


FROM SALESMAN GROUP BY Area;
OR
SELECT Area, MAX (Qtysold)
FROM SALESMAN GROUP BY Area;
(½ mark for writing SELECT MAX (Qtysold),Area FROM SALESMAN )
(½ mark for writing GROUP BY Area)

(iii) Display the average qtysold from each area where number of salesman is
more than 1.

Ans SELECT AVG (Qtysold), Area


FROM SALESMAN
GROUP BY Area HAVING COUNT(*)>1;
OR
SELECT Area, AVG (Qtysold)
FROM SALESMAN
GROUP BY Area HAVING COUNT(*)>1;

NOTE:
COUNT() to be accepted with any column name (except Qtysold), in
place of *

(½ mark for writing SELECT AVG(Qtysold),Area FROM SALESMAN )


(½ mark for writing GROUP BY Area HAVING COUNT(*)>1 )

(iv) Display all the records in ascending order of area.

Ans SELECT * FROM SALESMAN ORDER BY Area;


(½ mark for writing SELECT * FROM SALESMAN )
(½ mark for writing ORDER BY Area )
13 ABC International School, Delhi has different wings Administrative Wing 4
(W1), Primary Wing (W2), Middle Wing (W3) and Secondary Wing (W4) as
shown in the diagram :

Page # 10 of 12
The school also has a branch in Mumbai. The school management wants to
connect all the wings as well as all the computers of each wing (W1, W2,
W3, W4).

Distance between the wings are as follows :


W3 to W1 85 m
W1 to W2 40 m
W2 to W4 25 m
W4 to W3 120 m
W3 to W2 150 m
W1 to W4 170 m
Number of computers in each of the wing:
W1 125
W2 40
W3 42
W4 60

Based on the above specifications, answer the following questions :

(i) Suggest the topology and draw the most suitable cable layout for connecting
all the wings of Delhi branch.

Ans
Star Topology Bus Topology
Layout Option 1 Layout Option 2
(Connecting from the place of SERVER)

Bus Topology Bus Topology


Layout Option 3 Layout Option 4

Page # 11 of 12
Bus Topology Bus Topology
Layout Option 5 Layout Option 6

(½ mark for writing the correct topology)


(½ mark for drawing the correct layout)

(ii) Suggest the kind of network required (out of LAN, MAN, WAN) for connecting
(a) Administrative Wing (W1) with Middle Wing (W3)
(b) Administrative Wing (W1) with the Mumbai branch

Ans (a) LAN


(b) WAN
(½ mark for writing LAN for part (a))
(½ mark for writing WAN for part (b))

(iii) Suggest the placement of the following devices with justification:


(a) Repeater
(b) Switch/Hub

Ans (a) Repeater to be placed based on layout drawn in part(i), between two
physically connected buildings wherever the distance between the two
buildings is more.
(b) Switch/Hub to be placed in all wings W1, W2, W3 and W4 as each of the
buildings has more than one computer.
(½ mark for writing each correct placement)

(iv) Due to pandemic school had to adopt Online classes. Suggest the protocol
that is used for sending the voice signals over internet. Also, give an
example of an application of WWW that helped the teachers to send
messages instantly to the students.

Ans Protocol name : VoIP OR Voice Over Internet Protocol


WhatsApp, Slack, Skype, Yahoo Messenger, Google Talk, Facebook Messenger,
Google Hangout, Instant Messenger

Any of the above or any other correct example of an application of WWW for
instant messaging.

(½ mark for VoIP)


(½ mark for any one correct example)

Page # 12 of 12
SET-4
Series %BAB%/C
Q.P. Code
90

Roll No. Candidates must write the Q.P. Code on


the title page of the answer-book.

Please check that this question paper contains 8 printed pages.


Q.P. Code given on the right hand side of the question paper should be written
on the title page of the answer-book by the candidate.
Please check that this question paper contains 13 questions.
Please write down the serial number of the question in the
answer-book before attempting it.
15 minute time has been allotted to read this question paper. The question
paper will be distributed at 10.15 a.m. From 10.15 a.m. to 10.30 a.m., the
students will read the question paper only and will not write any answer on
the answer-book during this period.

INFORMATICS PRACTICES

Time allowed : 2 hours Maximum Marks : 35

90 Page 1 P.T.O.
General Instructions :
(i) This question paper is divided into 3 sections A, B and C.
(ii) Section A, consists of 7 questions (1 7). Each question carries 2 marks.
(iii) Section B, consists of 3 questions (8 10). Each question carries 3 marks.
(iv) Section C, consists of 3 questions (11 13). Each question carries 4 marks.
(v) Internal choices have been given for questions number 1, 3, 7, 8 and 12.

SECTION A
(Each question carries 2 marks)

1. (a) Arshiya is a web developer and one of her clients wants her to
design a web page to accept donations for an NGO. Which type of
web page (static/dynamic) will she create ? 2
OR
(b) Danny has created a website on Python resources on his laptop.
Now, he wants that others should be able to access his website and
use the resources. What should he do to achieve his objective ? 2

2. (a) Define a web browser. 1


(b) Give examples of any two network devices. 1

3. (a) Find the output of the following SQL queries : 2


(i) SELECT ROUND(21.341, 2);
(ii) SELECT MOD(10, 3);
OR
(b) Give any two differences between MOD() and AVG() functions in
SQL. 2

4. Define the following terms : 2


(a) Plug-ins
(b) Add-ons

5. Find the output of the following SQL queries : 2


(a) SELECT MID("YOUNG INDIA",5);
(b) SELECT INSTR("MACHINE INTELLIGENCE","IN");

90 Page 2
6. Harjat has created the table EMP in his database.
Table : EMP
E_Id Name Dept Comm
E001 Ditya Admin 35000
E002 Uzair Production 42500
E003 Rajnikant Admin 21000
E004 Moushami Sales 23575
E005 Samantha Sales 37000
E006 Sunder Admin 43000
Now he wants to find the sum of commission earned by each department.
He has executed the following query :
SELECT dept,sum(comm)
GROUP BY dept
FROM EMP;
But, he got an error. Rewrite the correct query after identifying the
error(s). 2

7. (a) Ms. Anubha is working in a school and stores the details of all
students in a Table : SCHOOL
Table : SCHOOL
Admid Sname Grade House Per Gender Dob
20150001 Aditya Das 10 Green 86 Male 2006-02-20
20140212 Harsh Sharma 11 Red 50 Male 2004-10-05
20090234 Swapnil Pant 10 Yellow 84 Female 2005-11-21
20130216 Soumen Rao 9 Red 90 Male 2006-04-10
20190227 Rahil Arora 10 Blue 70 Male 2005-05-14
20120200 Akasha Singh 11 Red 70 Female 2004-12-16

Write the SQL statements from the given table to : 2


(i) Remove TRAILING SPACES from column Sname.
(ii) Display the names of students who were born on Tuesday.
OR
(b) Predict the output of the following SQL queries from the above
Table : SCHOOL : 2
(i) SELECT AVG(Per) FROM SCHOOL WHERE House="Red";
(ii) SELECT Sname, Per FROM SCHOOL WHERE MONTH(Dob)=11;

90 Page 3 P.T.O.
SECTION B
(Each question carries 3 marks)

8. (a) Predict the output of the following SQL queries : 3

(i) SELECT LENGTH("GOOD LUCK");

(ii) SELECT POWER(3, 3);

(iii) SELECT UPPER("examination");

OR

(b) Consider a Table "PETDATA" with the following data :

Table : PETDATA
Id Pname Breed LifeSpan Price Discount
101 Adi Golden Retriever 15 16000 5
202 Candy Boxer 11 22000 10
303 Dazzler Bulldog 10 18000 NULL
404 Cooper Yorkshire Terrier 16 20000 12
505 Akira Pug NULL 25000 8

Write SQL queries for the following : 3

(i) Display all the pet names in uppercase.

(ii) Display the total price of all the pets.

(iii) Display the average discount available on all the pets.

9. Write the names of SQL functions to perform the following operations : 3

(a) Display the name of the month from the given date value.

(b) Display the day of month from the given date value.

(c) Count the number of characters in a given string.

90 Page 4
10. Consider the following Table : ITEM :

Table : ITEM
ID INAME PRICE QTY
P1001 Sketch Pen 20.50 5
P1002 Roller Ball Pen 55.00 1
P1003 Gel Pen 25.10 3
P1004 Notebook 75.80 1

Find the output of the following SQL queries : 3


(a) SELECT 10+ QTY FROM ITEM WHERE ID = "P1003";

(b) SELECT PRICE*QTY FROM ITEM WHERE QTY < 2;

(c) SELECT LEFT(INAME,3) FROM ITEM;

SECTION C
(Each question carries 4 marks)

11. Consider the Table FURNITURE with the following data :

Table : FURNITURE
S.No. Item Type Price Stockdate
1 Hammock Bedroom 35500.58 2020-04-21
2 Divan Living 31000 2019-03-18
3 Bookshelf Study 38000.657 2019-01-10
4 Writing Desk Living 61357.425 2020-10-18
5 Nightstand Bedroom NULL 2021-07-23

Write SQL queries for the following : 4

(a) Display all the records in alphabetical order of Item.


(b) Display the Type and total number of items of each Type.

(c) Display the highest Price.


(d) Display the Item with their price rounded to 1 decimal place.

90 Page 5 P.T.O.
12. (a) Consider the following table :

Table : EMPLOYEE

Ecode Ename Area Salary Dept Doj


S001 Ramesh North 12000 Sales 2015-12-01
S002 Rohit South 10500 Finance 2012-08-01
S003 Sunil South 6800 Front Office 2018-02-01
S004 Sambhav West 28000 Back Office 2010-04-01
S005 Ankit East 9000 NULL 2018-10-01
S006 Rishu North 25000 Finance 2019-02-01

Predict the output for the following SQL queries : 4

(i) SELECT MAX(Salary), FROM EMPLOYEE;

(ii) SELECT COUNT(Dept) FROM EMPLOYEE;

(iii) SELECT UCASE(Ename) FROM EMPLOYEE WHERE MONTH(Doj)=2;

(iv) SELECT Ename FROM EMPLOYEE WHERE Right(Ecode,1)=5;

OR

(b) Based on the given table EMPLOYEE write SQL queries to perform
the following operations : 4

(i) Count the total number of employees.

(ii) Display the minimum salary from each area.

(iii) Display the average salary from each department where number
of employees is more than 1.

(iv) Display all the records in descending order of date of joining.

90 Page 6
13. ABC Private Ltd., Bangalore has different divisions, Finance (A1),
Sales (A2), Production (A3) and Marketing (A4).

The layout of the Bangalore branch is :

FINANCE SALES
(A1) (A2)

SHIMLA
BRANCH
PRODUCTION MARKETING
(A3) (A4)

The company also has a branch in Shimla. The management wants to


connect all the divisions as well as all the computers of each division (A1,
A2, A3, A4).

Distance between the branches are as follows :


A3 to A1 25 m
A1 to A2 40 m
A2 to A4 25 m
A4 to A3 120 m
A3 to A2 990 m
A1 to A4 170 m

The number of computers in each branch is as follows :


A1 50
A2 40
A3 110
A4 60

Based on the above specifications, answer the following questions : 4

(a) Suggest the topology and draw the most suitable cable layout for
connecting all the divisions of Bangalore branch.

90 Page 7 P.T.O.
(b) Suggest the kind of network required (out of LAN, MAN, WAN) for
connecting Production (A3) with Shimla branch.

(c) Suggest the placement of the following devices :


(i) Repeater
(ii) Switch/Hub

(d) The company wanted to develop a healthy relation among the


employees, therefore the HRA planned an online session with
everyone so that they could play games from their devices. Suggest
the protocol that helped to send the voice signals over Internet.

90 Page 8
Strictly Confidential: (For Internal and Restricted use only)
Senior School Certificate Examination - September 2022
Marking Scheme – Informatics Practices (NEW) (SUBJECT CODE: 065)
(SET-4 | SERIES: %BAB%/C PAPER CODE – 90 )
General Instructions:
1. You are aware that evaluation is the most important process in the actual and correct assessment
of the candidates. A small mistake in evaluation may lead to serious problems which may affect
the future of the candidates, education system and teaching profession. To avoid mistakes, it is
requested that before starting evaluation, you must read and understand the spot evaluation
guidelines carefully.
2. “Evaluation policy is a confidential policy as it is related to the confidentiality of the
examinations conducted, Evaluation done and several other aspects. Its’ leakage to public in any
manner could lead to derailment of the examination system and affect the life and future of
millions of candidates. Sharing this policy/document to anyone, publishing in any magazine and
printing in News Paper/Website etc may invite action under IPC.”
3. Evaluation is to be done as per instructions provided in the Marking Scheme. It should not be done
according to one’s own interpretation or any other consideration. Marking Scheme should be
strictly adhered to and religiously followed. However, while evaluating, answers which are based
on latest information or knowledge and/or are innovative, they may be assessed for their
correctness otherwise and marks be awarded to them. In class-X, while evaluating two
competency based questions, please try to understand given answer and even if reply is not from
marking scheme but correct competency is enumerated by the candidate, marks should be
awarded.
4. The Head-Examiner must go through the first five answer books evaluated by each evaluator on
the first day, to ensure that evaluation has been carried out as per the instructions given in the
Marking Scheme. The remaining answer books meant for evaluation shall be given only after
ensuring that there is no significant variation in the marking of individual evaluators.
5. Evaluators will mark( √ ) wherever answer is correct. For wrong answer ‘X” be marked. Evaluators
will not put right kind of mark while evaluating which gives an impression that answer is correct
and no marks are awarded. This is most common mistake which evaluators are committing.
6. If a question has parts, please award marks on the right-hand side for each part. Marks awarded
for different parts of the question should then be totaled up and written in the left-hand margin
and encircled. This may be followed strictly.
7. If a question does not have any parts, marks must be awarded in the left-hand margin and
encircled. This may also be followed strictly.
8. If a student has attempted an extra question, answer of the question deserving more marks
should be retained and the other answer scored out.
9. No marks to be deducted for the cumulative effect of an error. It should be penalized only once.
10. A full scale of marks __________(example 0-40 marks as given in Question Paper) has to be used.
Please do not hesitate to award full marks if the answer deserves it.
11. Every examiner has to necessarily do evaluation work for full working hours i.e. 8 hours every day
and evaluate 30 answer books per day in main subjects and 35 answer books per day in other
subjects (Details are given in Spot Guidelines).This is in view of the reduced syllabus and number
of questions in question paper.
12. Ensure that you do not make the following common types of errors committed by the Examiner in
the past:-
a. Leaving answer or part thereof unassessed in an answer book.
b. Giving more marks for an answer than assigned to it.
c. Wrong totaling of marks awarded on a reply.
d. Wrong transfer of marks from the inside pages of the answer book to the title page.
e. Wrong question wise totaling on the title page.
f. Wrong totaling of marks of the two columns on the title page.
g. Wrong grand total.
h. Marks in words and figures not tallying.
i. Wrong transfer of marks from the answer book to online award list.

[Sub Code: 065 Series: %BAB%/C Paper Code: 90 SET-4] [Page #1/10]
j. Answers marked as correct, but marks not awarded. (Ensure that the right tick mark is
correctly and clearly indicated. It should merely be a line. Same is with the X for incorrect
answer.)
k. Half or a part of answer marked correct and the rest as wrong, but no marks awarded.
13. While evaluating the answer books if the answer is found to be totally incorrect, it should be
marked as cross (X) and awarded zero (0)Marks.
14. Any unassessed portion, non-carrying over of marks to the title page, or totaling error detected
by the candidate shall damage the prestige of all the personnel engaged in the evaluation work as
also of the Board. Hence, in order to uphold the prestige of all concerned, it is again reiterated
that the instructions be followed meticulously and judiciously.
15. The Examiners should acquaint themselves with the guidelines given in the Guidelines for spot
Evaluation before starting the actual evaluation.
16. Every Examiner shall also ensure that all the answers are evaluated, marks carried over to the
title page, correctly totaled and written in figures and words.
17. The Board permits candidates to obtain photocopy of the Answer Book on request in an RTI
application and also separately as a part of the re-evaluation process on payment of the
processing charges.

Specific Instructions:
● All programming questions have to be answered with respect to Python only
● In Python, ignore case sensitivity for identifiers (Variable / Functions / Structures / Class
Names)
● In Python indentation is mandatory, however, the number of spaces used for indenting
may vary
● In SQL related questions – both ways of text/character entries should be acceptable for
Example: “AMAR” and ‘amar’ both are acceptable.
● In SQL related questions – all date entries should be acceptable for Example:
‘YYYY-MM-DD’, ‘YY-MM-DD’, ‘DD-Mon-YY’, “DD/MM/YY”, ‘DD/MM/YY’, “MM/DD/YY”,
‘MM/DD/YY’ and {MM/DD/YY} are correct.
● In SQL related questions – semicolon should be ignored for terminating the SQL
statements
● In SQL related questions, ignore case sensitivity.
● This question paper is divided into 3 sections A, B and C.
● Section A, consists of 7 questions (1 - 7). Each question carries 2 marks.
● Section B, consists of 3 questions (8 - 10). Each question carries 3 marks.
● Section C, consists of 3 questions (11 - 13). Each question carries 4 marks.
● Internal choices have been given for questions number 1, 3, 7, 8 and 12.

SECTION A
(Each question carries 2 marks)
1 (a) Arshiya is a web developer and one of her clients wants her to design a web 2
page to accept donations for an NGO. Which type of web page (static/dynamic)
will she create ?
Ans Dynamic Webpage.
(2 Marks for writing correct type of webpage)
OR
(b) Danny has created a website on Python resources on his laptop. Now, he wants 2
that others should be able to access his website and use the resources. What
should he do to achieve his objective ?
Ans Web Hosting / Publishing the website / Uploading the Website on Webserver
(2 Marks for writing correct answer)
[Sub Code: 065 Series: %BAB%/C Paper Code: 90 SET-4] [Page #2/10]
2 (a) Define a web browser. 1
Ans It is a software/tool, which allows us to view/access the content of
WebPages.
(2 Marks for writing correct definition)
(b) Give examples of any two network devices. 1
Ans Modem, Repeater, Router, NIC Card, Hub, Switch
(Any Two)
(½ mark each for any two correct network devices)
3 (a) Find the output of the following SQL queries : 2
(i) SELECT ROUND(21.341, 2);
(ii) SELECT MOD(10, 3);
Ans (i) 21.34
(ii) 1
(1 mark for writing each correct output)
OR
(b) Give any two differences between MOD() and AVG() functions in SQL. 2
Ans MOD() :
i. It is a math/numeric single row function.
ii. MOD(A,B) returns the remainder after dividing number A by number
B.
iii. For Example: SELECT MOD(5,3); will give 2 as output

AVG() :
i. It is an aggregate function
ii. AVG(column) returns the average of the values for the specified
column.
iii. For Example : SELECT AVG(QTY) FROM PRODUCT; will give the
output 6.0000 if the QTY column has the values 6,8 and 4

(Any two differences between the two functions)


(1 mark each for writing any two correct difference)
4 Define the following terms : 2
(a) Plug-ins
Ans Plug-ins are complete software/third party software

Plug-ins are software components that add a specific feature to an existing


computer program.

Plug-ins enable customization in a supported program


(1 mark for writing correct definition)
(b) Add-ons 2
Ans Add-ons are not complete software/third party software

Add-ons are software that can be added to a computer program to increase


its capabilities or a program utility.
(1 mark for writing correct definition)
5 Find the output of the following SQL queries : 2
(i) SELECT MID("YOUNG INDIA",5);
[Sub Code: 065 Series: %BAB%/C Paper Code: 90 SET-4] [Page #3/10]
Ans G INDIA
(1 mark for writing the correct output)
(ii) SELECT INSTR("MACHINE INTELLIGENCE","IN");
Ans 5
(1 mark for writing the correct output)
6 Harjat has created the table EMP in his database. 2
Table : EMP
E_Id Name Dept Comm
E001 Ditya Admin 35000
E002 Uzair Production 42500
E003 Rajnikant Admin 21000
E004 Moushami Sales 23575
E005 Samantha Sales 37000
E006 Sunder Admin 43000

Now he wants to find the sum of commission earned by each department. He has
executed the following query :
SELECT dept,sum(comm)
GROUP BY dept
FROM EMP;

But, he got an error. Rewrite the correct query after identifying the error(s).
Ans SELECT dept,sum(comm)
FROM EMP
GROUP BY dept ;
(1 mark for writing SELECT dept,sum(comm)FROM EMP )
(1 mark for writing GROUP BY dept )
7 (a) Ms. Anubha is working in a school and stores the details of all students in a 2
Table: SCHOOL
Table : SCHOOL
Admid Sname Grade House Per Gender Dob
20150001 Aditya Das 10 Green 86 Male 2006-02-20
20140212 Harsh Sharma 11 Red 50 Male 2004-10-05
20090234 Swapnil Pant 10 Yellow 84 Female 2005-11-21
20130216 Soumen Rao 9 Red 90 Male 2006-04-10
20190227 Rahil Arora 10 Blue 70 Male 2005-05-14
20120200 Akasha Singh 11 Red 70 Female 2004-12-16

Write the SQL statements from the given table to :


(i) Remove TRAILING SPACES from column Sname.
Ans SELECT RTRIM(Sname) FROM SCHOOL;
(½ mark for writing SELECT RTRIM(Sname) )
(½ mark for writing FROM SCHOOL )
(ii) Display the names of students who were born on Tuesday.
[Sub Code: 065 Series: %BAB%/C Paper Code: 90 SET-4] [Page #4/10]
Ans SELECT Sname FROM SCHOOL WHERE DAYOFWEEK(Dob) = 3;
(½ mark for writing SELECT Sname FROM SCHOOL)
(½ mark for writing WHERE DAYOFWEEK(Dob) = 3 )
OR
(b) Predict the output of the following SQL queries from the above Table: SCHOOL : 2
(i) SELECT AVG(Per) FROM SCHOOL WHERE House="Red";
Ans 70.0000
(1 mark for writing the correct output)
(ii) SELECT Sname, Per FROM SCHOOL WHERE MONTH(Dob)=11;
Ans Swapnil Pant 84
(1 mark for writing the correct output)
SECTION B
(Each question carries 3 marks)
8 (a) Predict the output of the following SQL queries : 3
(i) SELECT LENGTH("GOOD LUCK");
Ans 9
(1 mark for writing the correct output)
(ii) SELECT POWER(3, 3);
Ans 27
(1 mark for writing the correct output)
(iii) SELECT UPPER("examination");
Ans EXAMINATION
(1 mark for writing the correct output)
OR
(b) Consider a Table "PETDATA" with the following data : 3
Table : PETDATA

Id Pname Breed LifeSpan Price Discount


101 Adi Golden Retriever 15 16000 5
202 Candy Boxer 11 22000 10
303 Dazzler Bulldog 10 18000 NULL
404 Cooper Yorkshire Terrier 16 20000 12
505 Akira Pug NULL 25000 8

Write SQL queries for the following : 3


(i) Display all the pet names in uppercase.
Ans SELECT UPPER(Pname) FROM PETDATA;
(½ mark for writing SELECT UPPER(Pname))
[Sub Code: 065 Series: %BAB%/C Paper Code: 90 SET-4] [Page #5/10]
(½ mark for writing FROM PETDATA )
(ii) Display the total price of all the pets.
Ans SELECT SUM(Price) FROM PETDATA;
(½ mark for writing SELECT SUM(Price))
(½ mark for writing FROM PETDATA)
(iii) Display the average discount available on all the pets.
Ans SELECT AVG(Discount) FROM PETDATA;
(½ mark for writing SELECT AVG(Discount))
(½ mark for writing FROM PETDATA )
9 Write the names of SQL functions to perform the following operations : 3
(a) Display the name of the month from the given date value.
Ans MONTHNAME()
(1 mark for writing the correct function name)
(b) Display the day of month from the given date value.
Ans DAYOFMONTH()
(1 mark for writing the correct function name)
(c) Count the number of characters in a given string.
Ans LENGTH()
(1 mark for writing the correct function name)
10 Consider the following Table : ITEM : 3

Table : ITEM

ID INAME PRICE QTY


P1001 Sketch Pen 20.50 5
P1002 Roller Ball Pen 55.00 1
P1003 Gel Pen 25.10 3
P1004 Notebook 75.80 1
Find the output of the following SQL queries :
(a) SELECT 10+ QTY FROM ITEM WHERE ID = "P1003";
Ans 13
(1 mark for writing the correct output)
(b) SELECT PRICE*QTY FROM ITEM WHERE QTY < 2;
Ans 55.00
75.80
(1 mark for writing the correct output)
(c) SELECT LEFT(INAME,3) FROM ITEM;
Ans Ske
Rol
Gel
Not
(1 mark for writing the correct output)
SECTION C
(Each question carries 4 marks)

[Sub Code: 065 Series: %BAB%/C Paper Code: 90 SET-4] [Page #6/10]
11 Consider the Table FURNITURE with the following data :
Table : FURNITURE 4
S.No. Item Type Price Stockdate

1 Hammock Bedroom 35500.58 2020-04-21

2 Divan Living 31000 2019-03-18

3 Bookshelf Study 38000.657 2019-01-10

4 Writing Desk Living 61357.425 2020-10-18

5 Nightstand Bedroom NULL 2021-07-23

Write SQL queries for the following :


(a) Display all the records in alphabetical order of Item.
Ans SELECT * FROM FURNITURE ORDER BY ITEM ;
(½ mark for writing SELECT * FROM FURNITURE )
(½ mark for writing ORDER BY ITEM )
(b) Display the Type and total number of items of each Type.
Ans SELECT TYPE, COUNT(ITEM) FROM FURNITURE GROUP BY TYPE;
(½ mark for writing SELECT TYPE, COUNT(ITEM) FROM FURNITURE )
(½ mark for writing GROUP BY TYPE )
(c) Display the highest Price.
Ans SELECT MAX(PRICE) FROM FURNITURE;
(½ mark for writing SELECT MAX(PRICE))
(½ mark for writing FROM FURNITURE )
(d) Display the Item with their price rounded to 1 decimal place.
Ans SELECT ITEM, ROUND(PRICE,1) FROM FURNITURE;
(½ mark for writing SELECT ITEM, ROUND(PRICE,1))
(½ mark for writing FROM FURNITURE )
12 (a) Consider the following table :

Table : EMPLOYEE
Ecode Ename Area Salary Dept Doj
S001 Ramesh North 12000 Sales 2015-12-01
S002 Rohit South 10500 Finance 2012-08-01
S003 Sunil South 6800 Front Office 2018-02-01
S004 Sambhav West 28000 Back Office 2010-04-01
S005 Ankit East 9000 NULL 2018-10-01
S006 Rishu North 25000 Finance 2019-02-01

Predict the output for the following SQL queries :


(i) SELECT MAX(Salary), FROM EMPLOYEE;
Ans 28000
[Sub Code: 065 Series: %BAB%/C Paper Code: 90 SET-4] [Page #7/10]
OR
Error in command (due to comma after MAX() function)
(1 mark for writing the correct output OR mention of Error in Query)
(ii) SELECT COUNT(Dept) FROM EMPLOYEE;
Ans 5
(1 mark for writing the correct output)
(iii) SELECT UCASE(Ename) FROM EMPLOYEE WHERE MONTH(Doj)=2;
Ans SUNIL
RISHU
(1 mark for writing the correct output)
(iv) SELECT Ename FROM EMPLOYEE WHERE Right(Ecode,1)=5;
Ans Ankit
(1 mark for writing the correct output)
(b) OR 4
Based on the given table EMPLOYEE write SQL queries to perform the following
operations :
(i) Count the total number of employees.
Ans SELECT COUNT(*) FROM EMPLOYEE;
(½ mark for SELECT COUNT(*))
(½ mark for FROM EMPLOYEE)
(ii) Display the minimum salary from each area.
Ans SELECT MIN(Salary), Area FROM EMPLOYEE GROUP BY Area;
(½ mark for writing SELECT MIN(Salary), Area FROM EMPLOYEE)
(½ mark for writingGROUP BY Area)
(iii) Display the average salary from each department where number of employees is more
than 1.
Ans SELECT AVG(Salary), Dept FROM EMPLOYEE
GROUP BY Dept HAVING COUNT(*)>1;
(½ Mark for writing SELECT AVG(Salary), Dept FROM EMPLOYEE)
(½ Mark for writing GROUP BY Dept HAVING COUNT(*)>1;)
(iv) Display all the records in descending order of date of joining.
Ans SELECT * FROM EMPLOYEE ORDER BY Doj DESC;
(½ mark for writing SELECT * FROM EMPLOYEE)
(½ mark for writing ORDER BY Doj DESC)
13 ABC Private Ltd., Bangalore has different divisions, Finance (A1), Sales (A2), 4
Production (A3) and Marketing (A4).
The layout of the Bangalore branch is :

[Sub Code: 065 Series: %BAB%/C Paper Code: 90 SET-4] [Page #8/10]
The company also has a branch in Shimla. The management wants to connect all the
divisions as well as all the computers of each division (A1, A2, A3, A4).
Distance between the branches are as follows :
A3 to A1 25 m
A1 to A2 40 m
A2 to A4 25 m
A4 to A3 120 m
A3 to A2 990 m
A1 to A4 170 m

The number of computers in each branch is as follows :


A1 50
A2 40
A3 110
A4 60

Based on the above specifications, answer the following questions :


(a) Suggest the topology and draw the most suitable cable layout for connecting all the
divisions of Bangalore branch.
Ans

As per direct connectivity with the server

[Sub Code: 065 Series: %BAB%/C Paper Code: 90 SET-4] [Page #9/10]
As per shortest distance
(½ mark for any correct topology)
(½ mark for any correct layout)
(b) Suggest the kind of network required (out of LAN, MAN, WAN) for connecting Production
(A3) with Shimla branch.
Ans WAN
(1 mark for writing the correct network type)
Note: No marks for writing MAN or LAN
(c) Suggest the placement of the following devices :
(i) Repeater
(ii) Switch/Hub
Ans (i) Repeater should be placed between A3 and A2 wings
(ii) Switch/Hub should be placed in all divisions A1, A2, A3 and A4
(½ mark for writing the correct placement of repeater)
(½ mark for writing the correct placement of Switch/Hub)
(d) The company wanted to develop a healthy relation among the employees, therefore the
HRA planned an online session with everyone so that they could play games from their
devices. Suggest the protocol that helped to send the voice signals over Internet.
Ans VoIP OR Voice over Internet Protocol
(1 mark for writing the correct protocol)

[Sub Code: 065 Series: %BAB%/C Paper Code: 90 SET-4] [Page #10/10]
Sample Question Paper
Term-I
Subject: Informatics Practices (Code-065)
Class – XII
Time Allowed: 90 minutes Maximum Marks: 35

General Instructions:
 The paper is divided into 3 Sections- A, B and C.
 Section A, consists of Question 1 to 25 and student need to attempt 20 questions.
 Section B, consists of Question number 26 to 49 and student need to attempt 20 questions.
 Section C, consists of Question number 50 to 55 and student need to attempt 5 questions.
 All questions carry equal marks.

Section – A
Section A consists of 25 questions, attempt any 20 questions.

1. The name “Pandas” is derived from the term:


a. Panel Data
b. Panel Series
c. Python Document
d. Panel Data Frame

2. The command to install the pandas is:


a. install pip pandas
b. install pandas
c. pip pandas
d. pip install pandas

3. Python pandas was developed by:


a. Guido van Rossum
b. Travis Oliphant
c. Wes McKinney
d. Brendan Eich

4. Pandas Series is:


a. 2 Dimensional
b. 3 Dimensional
c. 1 Dimensional
d. Multidimensional
5. Pandas is a:
a. Package
b. Language
c. Library
d. Software
6. We can analyse the data in pandas with
a. Series
b. Data Frame
c. Both of the above
d. None of the above
7. Out of the following, which function cannot be used for customization of charts in
Python?
a. xlabel()
b. colour()
c. title()
d. xticks()

8. What is the minimum number of arguments required for plot() function in matplotlib?
a. 1
b. 2
c. 3
d. 4

9. Method or function to add a new row in a data frame is:


a. .loc()
b. .iloc()
c. join
d. add()
10. _____________ is the function to save the graph.

a. Savefig()
b. Savefigure()
c. Savegraph()
d. Savechart()

11. A ______________ is a unique data trace of a user’s activities, actions, communications or


transactions in digital media.
a. Digital Handprint
b. Digital Footprint
c. Offline Footprint
d. Offline Handprint

12. Which of the following is not a type of cybercrime?


a. Data theft
b. Forgery of online documents
c. Damage to data and systems
d. Installing antivirus for protection

13. ‘F’ in FOSS stands for:


a. Free
b. Forever
c. Fire
d. Freezing

14. Which of the following import statement is not correct?


a. import pandas as class12
b. import pandas as 1pd
c. import pandas as pd1
d. import pandas as pd
15. IPR stands for:
a. Intelligent Property Rights
b. Intellectual Property Reserve
c. Intellectual Property Rights
d. Intellectual Product Rights

16. Which of the following is not a violation of IPR?


a. Plagiarism
b. Copyright Infringement
c. Patent
d. Trademark Infringement

17. While accessing the column from the data frame, we can specify the column name. In case
column does not exist, which type of error it will raise:
a. Key Error
b. Syntax Error
c. Name Error
d. Runtime Error

18. ____________is the practice of taking someone else's work or ideas and passing them off
as one's own:
a. Plagiarism
b. Copyright
c. Patent
d. All of the above

19. Function to display the first n rows in the DataFrame:


a. tail (n)
b. head (n)
c. top (n)
d. first (n)

20. Following are the impact of e-waste on the environment. Choose the odd one out.
a. Soil Pollution
b. Water Pollution
c. Air Pollution
d. Sound Pollution

21. Abdul deleted all his chats from all his social media accounts, and he thinks that all his
traces are deleted completely. Is he right in thinking so?
a. Yes
b. No
c. May be
d. Not sure

22. The legal and regulatory aspects of the internet refer to.....................
a. Cyber Space
b. Cyber crime
c. Criminal law
d. IT act
23. Pandas data frame cannot be created using:
a. Dictionary of tuples
b. Series
c. Dictionary of List
d. List of Dictionaries

24. Which function will be used to read data from a CSV file into pandas data frame?
a. readcsv()
b. to_csv()
c. read_csv()
d. csv_read()

25. Which of the following is not an attribute of pandas data frame?


a. length
b. T
c. Size
d. shape

Section – B
Section B consists of 24 Questions (26 to 49). Attempt any 20 questions.

26. What will be the output of the given code?


import pandas as pd
s = pd.Series([1,2,3,4,5],
index=['akram','brijesh','charu','deepika','era'])
print(s['charu'])

a. 1
b. 2
c. 3
d. 4

27. Assuming the given series, named stud, which command will be used to print 5 as
output?
Amit 90
Ramesh 100
Mahesh 50
john 67
Abdul 89
Name: Student, dtype: int64

a. stud.index
b. stud.length
c. stud.values
d. stud.size
28. A social science teacher wants to use a pandas series to teach about Indian historical
monuments and its states. The series should have the monument names as values and state
names as indexes which are stored in the given lists, as shown in the code. Choose the
statement which will create the series:

import pandas as pd
Monument=['Qutub Minar','Gateway of India','Red Fort','Taj
Mahal']
State=['Delhi','Maharashtra','Delhi','Uttar Pradesh']

a. S=df.Series(Monument,index=State)
b. S=pd.Series(State,Monument)
c. S=pd.Series(Monument,index=State)
d. S=pd.series(Monument,index=State)

29. ____________ is a cybercrime in which a target or targets are contacted by email, telephone
or text message by someone posing as a legitimate institution to lure individuals into
providing sensitive data such as personally identifiable information, banking and credit card
details, and passwords.

a. Plagiarism
b. Phishing
c. Cyberstalking
d. Hacking

30. Observe the following figure. Identify the coding for obtaining this as output.

a. import matplotlib.pyplot as plt


plt.plot([1,2],[4,5])
plt.show()
b. import matplotlib.pyplot as plt
plt.plot([1,2,3],[4,5,1])
plt.show()
c. import matplotlib.pyplot as plt
plt.plot([2,3],[5,1])
plt.show()
d. import matplotlib.pyplot as plt
plt.plot([1,3],[4,1])
plt.show()
31. Read the statements given below and identify the right option to draw a histogram.

Statement A: To make a Histogram with Matplotlib, we can use the plt.hist() function.
Statement B: The bin parameter is compulsory to create histogram.
a. Statement A is correct
b. Statement B is correct
c. Statement A is correct, but Statement B is incorrect
d. Statement A is incorrect, but Statement B is correct

32. Which graph should be used where each column represents a range of values, and the
height of a column corresponds to how many values are in that range?
a. plot
b. line
c. bar
d. histogram

33. Suhhani is confused about the free operating system available in the market. Few of her
friends suggested a few operating systems. Help her in choosing free operating system for
her device:
a. Ubuntu
b. Windows
c. Mozilla Firefox
d. Blender

34. Consider the following statements with reference to the use of email:
Statement 1: Sending threatening messages to a classmate.
Statement 2: Inviting friends to participate in a school club or sports activity.
Statement 3: Asking your teacher for help on homework.
Statement 4: Responding to or forwarding spam emails.

Which of the above statements refer to appropriate use of email?


a. Statements 1 and 2.
b. Statements 2 and 3.
c. Statements 3 and 4.
d. Statements 2 and 4.

35. Consider the following series named animal:

Write the output of the command:


print(animal[::-3])
a. L Lion
T Tiger
dtype: object

b. B Bear
E Elephant
dtype: object

c. W Wolf
B Bear
dtype: object

d. W Wolf
T Tiger
dtype: object

36. Saharsh is a student of class -9 and he is a very frequent user of internet applications. One
day he got an unpleasant message on his instant messenger. What do you think he should
do?
a. ignore it and start chatting to someone else.
b. reply back to them and find out what their problem is.
c. shut down the computer and hope they'll leave him alone in future.
d. go to his parents, teacher, or other trusted adult and let them know that he feels
uncomfortable.

37. What is a correct syntax to return the values of first row of a Pandas DataFrame?
Assuming the name of the DataFrame is dfRent.
a. dfRent[0]
b. dfRent.loc[1]
c. dfRent.loc[0]
d. dfRent.iloc[1]

38. Feasible method (s) to manage e-waste:


a. Reduce
b. Reuse
c. Recycle
d. All of the above

39. Difference between loc() and iloc().:


a. Both are Label indexed based functions.
b. Both are Integer position-based functions.
c. loc() is label based function and iloc() integer position based
function.
d. loc() is integer position based function and iloc() index position
based function.
40. Write the output of the given program:
import pandas as pd
S1=pd.Series([5,6,7,8,10],index=['v','w','x','y','z'])
l=[2,6,1,4,6]
S2=pd.Series(l,index=['z','y','a','w','v'])
print(S1-S2)

a.
a 0
v -1.0
w 2.0
x NaN
y 2.0
z 8.0
dtype: float64

b.
a NaN
v -1.0
w 2.0
x NaN
y 2.0
z 8.0
dtype: float64
c.
v -1.0
w 2.0
y 2.0
z 8.0
dtype: float64
d.
a NaN
v -1.0
w 2.0
x 3.0
y 2.0
z 8.0
dtype: float64

41. We should exhibit proper manners and etiquettes while being online. Choose the right
net etiquette (s) from the following:
a. Avoid Cyber Bullying
b. Respect Other’s Privacy
c. No Copyright violation
d. All of the above
42. Which command will be used to delete 3 and 5 rows of the data frame. Assuming the
data frame name as DF.
a. DF.drop([2,4],axis=0)
b. DF.drop([2,4],axis=1)
c. DF.drop([3,5],axis=1)
d. DF.drop([3,5])

43. Write the output of the given command:


import pandas as pd
s=pd.Series([1,2,3,4,5,6],index=['A','B','C','D','E','F'])
print(s[s%2==0])
a.
B 0
D 0
F 0
dtype: int64
b.
A 1
B 2
C 5
dtype: int64
c.
B 2
D 4
F 6
dtype: int64
d.
B 1
D 2
F 3
dtype: int64

44. Ritika is a new learner for the python pandas, and she is aware of some concepts of
python. She has created some lists, but is unable to create the data frame from the
same. Help her by identifying the statement which will create the data frame.
import pandas as pd
Name=['Manpreet','Kavil','Manu','Ria']
Phy=[70,60,76,89]
Chem=[30,70,50,65]

a. df=pd.DataFrame({"Name":Name,"Phy":Phy,"Chem":Chem})
b. d=("Name":Name,"Phy":Phy,"Chem":Chem)
df=pd.DataFrame(d)
c. df=pd.DataFrame([Name,Phy,Chem],columns=['Name',"Phy","Chem","Total"])
d. df=pd.DataFrame({Name:"Name", Phy :"Phy",Chem: "Chem"})

45. Linux, MySQL and Mozilla Firefox software come under_______ category.
a. Proprietary
b. FOSS
c. Freeware
d. Shareware
46. Assuming the given structure, which command will give us the given output:

Output Required: (3,5)


a. print(df.shape())
b. print(df.shape)
c. print(df.size)
d. print(df.size())

47. Write the output of the given command:


df1.loc[:0,'Sal']
Consider the given dataframe.

a. 0 Kavita 50000 3000


b. 50000
c. 3000
d. 50000

48. Consider the following data frame name df

Write the output of the given command:


print(df.marks/2)

a. 0 45.0
1 NaN
2 43.5
Name: Marks, dtype: float64

b. 0 45.0
1 NaN
2 43
Name: Marks, dtype: float64

c. 0 45
1 NaN
2 43.5
Name: Marks, dtype: float64

d. 0 45.0
1 0
2 43.5
Name: Marks, dtype: float64

49. Read the statements given below. Identify the right option from the following for Attribute
and method/function.
Statement A: Attribute always ends without parenthesis.
Statement B: Function/Method cannot work without arguments.
a. Both statements are correct.
b. Both statements are incorrect.
c. Statement A is correct, but Statement B is incorrect
d. Statement A is incorrect, but Statement B is correct

Section - C
Section C, consists of 6 Question (50 to 55). Attempt any 5 questions.
Case Study
Mr. Sharma is working with an IT company, and he has provided some data. On which he
wants to do some operations, but he is facing some problem, help him:

Code:
import pandas as pd
ResultSheet={
'Naveen': pd.Series([90, 91, 97],
index=['Maths','Science','Hindi']),
'Rehana': pd.Series([92, 81, 96],
index=['Maths','Science','Hindi']),
'John': pd.Series([89, 91, 88],
index=['Maths','Science','Hindi']),
'Roja': pd.Series([81, 71, 67],
index=['Maths','Science','Hindi']),
'Mannat': pd.Series([94, 95, 99],
index=['Maths','Science','Hindi'])}
DF = pd.DataFrame(ResultSheet)
print(DF)

Output of the above code:

Based on the given information, answer the questions NO. 50-55.


50. He wants to add a new column with name of student ‘Prem’ in above data frame
choose the right command to do so:
a. DF['Prem']=[89,78,76]
b. df['Prem']=[89,78,76]
c. DF['Prem']=[89,78,76,67]
d. DF['Name']=[89,78,76]

51. He wants to set all the values to zero in data frame, choose the right command to do so:
a. DF=0
b. DF[]=0
c. DF[:]=0
d. DF[:]==0
52.He wants to delete the row of science marks:
a. DF.drop('Science', axis=1)
b. DF.drop('Science', axis=0)
c. DF.drop('Science', axis=-1)
d. DF.drop('Science', axis==0)

53. The following code is to create another data frame, which he wants to add to the existing
Data frame. Choose the right command to do so:
Sheet1={
'Aaradhya': pd.Series([90, 91, 97],
index=['Maths','Science','Hindi'])}
S1=pd.DataFrame(Sheet1)

a. DF.append(S1,axis=0)
b. DF.append(S1)
c. DF.insert(S1)
d. DF.join(S1)
54. What will be the output of the given command?
DF.index=['A','B','C']

a.

Naveen Rehana John Roja Mannat


A Maths 90 92 89 81 94

B Science 91 81 91 71 95

C Hindi 97 96 88 67 99

b.

Naveen Rehana John Roja Mannat


A 90 92 89 81 94

B 91 81 91 71 95

C 97 96 88 67 99

c.

A B C Roja Mannat
Maths 90 92 89 81 94

Science 91 81 91 71 95

Hindi 97 96 88 67 99

d. Error, Index already exists and cannot be overwritten.

55. What will be the output of the given command?

print(DF.size)

a. 15
b. 18
c. 21
d. 23
Marking Scheme
Subject: Informatics Practices
Class - XII

1. a. Panel Data
2. d. pip install pandas
3. c. Wes McKinney
4. c. 1 Dimensional
5. c. Library
6. C. Both of the above
7. b colour()
8. a. 1
9. a. loc()
10. a. Savefig()
11. b. Digital Footprint
12. d. Installing antivirus software
13. a. Free
14. b. import pandas as 1pd
15. c Intellectual Property Rights
16. c Patent
17. a. Key Error
18. a. Plagiarism
19. b. head (n)
20. d. Sound Pollution
21. b. No
22. d. IT Act
23. a. dictionary of tuples
24. c. read_csv()
25. a. length
26. c. 3
27. d. stud.size
28. c. S=pd.Series(Monument,index=State)
29. b. Phishing
30. b
import matplotlib.pyplot as plt
plt.plot([1,2,3],[4,5,1])
plt.show()
31. c. Statement A is correct, but Statement B is incorrect
32. d. histogram
33. a. Ubuntu

34. b Statements 2 and 3


35. c.

W Wolf
B Bear
dtype: object
36. d. go to his parents, teacher, or other trusted adult and let them know that he feels
uncomfortable.
37. c. dfRent.loc[0]
38. d. All of the above
39. c. loc() is label based function and iloc() integer position based function.
40. b
a NaN
v -1.0
w 2.0
x NaN
y 2.0
z 8.0
dtype: float64
41. d. All of the above
42. a DF.drop([2,4],axis=0)
43. c
B 2
D 4
F 6
dtype: int64
44. a. df=pd.DataFrame({"Name":Name,"Phy":Phy,"Chem":Chem})
45. b. FOSS
46. b. print(df.shape)
47. b. 50000
48. a.
0 45.0
1 NaN
2 43.5
Name: Marks, dtype: float64
49. c. Statement A is correct, but Statement B is incorrect
50. a. DF['Prem']=[89,78,76]
51. c DF[:]=0
52. b. DF.drop('Science', axis=0)
53. b. DF.append(S1)
54. b.
Navee
n Rehana John Roja Mannat
A 90 92 89 81 94
B 91 81 91 71 95
C 97 96 88 67 99
55. a. 15
Sample Question Paper
INFORMATICS PRACTICES (Code : 065)
Maximum Marks: 35 Time: 2 hours

General Instructions

 The question paper is divided into 3 sections – A, B and C


 Section A, consists of 7 questions (1-7). Each question carries 2 marks.
 Section B, consists of 3 questions (8-10). Each question carries 3 marks.
 Section C, consists of 3 questions( 11-13). Each question carries 4 marks.
 Internal choices have been given for question numbers – 1 , 3, 8 and 12.

Section –A
Each question carries 2 marks
Q. Part Question Marks
No No.
1. Aman, a freelance web site developer, has been assigned a task (2)
to design few web pages for a book shop. Help Aman in deciding
out of static web page and dynamic web page, what kind of web
pages should be designed by clearly differentiating between
static and dynamic web pages on at least two points.

OR

Priyanka, a beginner in IT field has just started learning web


technologies. Help her in understanding the difference between
website and web pages with the help of a suitable general
example of each.
2. (i) I: (1)
 am a small text file
 created on a user’s computer
 contain small pieces of data — like a username,
password and user’s browsing history as well as
preferences
 may help to improve user’s web browsing
experience.

Who am I?
(ii) Name any two popular web browsers. (1)

[1]
3. Predict the output of the following queries: (2)
i. Select power(5,3);
ii. Select mod(5,3);

OR

Briefly explain the purpose of the following SQL functions:


i. power()
ii. mod()
4. Navya has just created a website for her company and now need (2)
to host it. Briefly discuss the role of a web server in hosting a
website.
5. Help Reshma in predicting the output of the following queries: (2)
i) select round(8.72,3);
ii) select round(9.8);
6. Aryan, a database administrator, has grouped records of a table (2)
with the help of group by clause.

He needs to further filter groups of records generated through


group by clause.

Suggest suitable clause for it and properly explain its usage with
the help of an example.
7. Mr. Som, a HR Manager in a multinational company “Star-X (2)
world” has created the following table to store the records of
employees:
Table: Emp
Eid EName Department DOB DOJ
Star1 Ivan Sales 1994-08-28 2020-02-14
Star2 Melinda IT 1997-10-15 2021-11-19
Star3 Raj Accounts 1998-10-02 2019-04-02
Star4 Michael Sales 2000-02-17 2020-05-01
Star5 Sajal IT 2001-12-05 2018-06-13
Star6 John Accounts 1995-01-03 2019-07-15
Star7 Julia Sales 1985-11-13 2020-08-19

He has written following queries:


i) select max(year(DOB)) from emp;
ii) select ENAME from emp where month(DOJ)=11;

Predict the output.


OR

[2]
Based on the table given above, help Mr. Som writing queries for
the following task:
i) To display the name of eldest employee and his/her date of
birth.
ii) To display the name of those employees whose joining month
is May.
SECTION – B
Each question carries 3 marks

8. Predict the output of the following queries: (3)


i. select instr('exams@cbse.nic.in','.');
ii. select substr('exams@cbse.nic.in',7,4);
iii. select left('exams@cbse.nic.in',5);
OR

Ms.Saumya is working on a MySQL table named ‘Hotel’ having


following structure:

She need to perform following task on the table:


i. To fetch last 2 characters from the user_id column.
ii. To display the values of name column in lower case.
iii. To display 3 characters from 3rd place from the
column city.

Suggest suitable SQL function for the same. Also write the query
to achieve the desired task.
9. Reena is working with functions of MySQL. Explain her following: (3)
i. What is the purpose of now () function?
ii. How many parameters does it accept?
iii. What is the general format of its return type?
10. While dealing with string data type in MySQL, its observed that (3)
sometimes unnecessary space character comes in between
which hampers the successful execution of a string manipulation
module. Name the suitable MySQL function (s) to remove
leading, trailing and both type of space characters from a string.
Also give MySQL queries to depict the same.
Section C

[3]
Each question carries 4 marks
11. Carefully observe the following table named ‘stock’: (4)

Table: stock
Pid PName Category Qty Price
1 Keyboard IO 15 450
2 Mouse IO 10 350
3 Wifi-router NW 5 2600
4 Switch NW 3 3000
5 Monitor O 10 4500
6 Printer O 4 17000

Write SQL queries for the following:


(a) To display the records in decreasing order of price.
(b) To display category and category wise total quantities of
products.
(c) To display the category and its average price.
(d) To display category and category wise highest price of the
products.

12. Satyam, a database analyst has created the following table: (4)

Table: Student
RegNo SName Stream Optional Marks
S1001 Akshat Science CS 99
S1002 Harshit Commerce IP 95
S1003 Devika Humanities IP 100
S1004 Manreen Commerce IP 98
S1005 Gaurav Humanities IP 82
S1006 Saurav Science CS NULL
S1007 Bhaskar Science CS 95
S1007 Bhaskar Science CS 96

He has written following queries:

( a) select sum(MARKS) from student where OPTIONAL= ‘IP’ and


STREAM= ‘Commerce’;
(b) select max(MARKS)+min(MARKS) from student where
OPTIONAL= ‘CS’;
(c) select avg(MARKS) from student where OPTIONAL= ‘IP’;
(d) select length(SNAME) from student where MARKS is NULL;

[4]
Help him in predicting the output of the above given queries.

OR
Based on the above given table named ‘Student’, Satyam has
executed following queries:

Select count(*) from student;


Select count(MARKS) from student;

Predict the output of the above given queries.


Also give proper justifications of the output generated through
each query.
13. “Anutulya Creations”-A start-up fashion house has set up its (4)
main centre at Kanpur, Uttar Pradesh for its dress designing,
production and dress supplying activities. It has 4 blocks of
buildings.
Distance between the various blocks is as follows:
A to D 50 m
A to P 60 m
A to S 110m
D to S 60m
P to S 50m
P to D 150m
Numbers of computers in each block
Block A - 20
Block D - 80
Block P - 15
Block S - 8

[5]
Based on the above specifications, answer the following
questions:
(a) Out of LAN, WAN and MAN, what type of network will be
formed if we interconnect different computers of the
campus? Justify.
(b) Suggest the topology which should be used to efficiently
connect various blocks of buildings within Kanpur centre
for fast communication.
Also draw the cable layout for the same.
(c) Suggest the placement of the following device with
justification
i. Repeater
ii. Hub/Switch
(d) Now a day, video-conferencing software is being used
frequently by the company to discuss the product details
with the clients. Name any one video conferencing
software.
Also mention the protocol which is used internally in
video conferencing software.

[6]
MARKING SCHEME
INFORMATICS PRACTICES (Code: 065)
Maximum Marks: 35 Time: 2 hours

General Instructions

 The question paper is divided into 3 sections – A, B and C


 Section A, consists of 7 questions (1-7). Each question carries 2 marks.
 Section B, consists of 3 questions (8-10). Each question carries 3 marks.
 Section C, consists of 3 questions( 11-13). Each question carries 4 marks.
 Internal choices have been given for question numbers – 1 , 3, 8 and 12.

Section –A
Each question carries 2 marks
Q. Part Question Marks
No No.
1. Differentiation between static and dynamic web pages: (2)

Static Web page Dynamic Web page


1. Content of this type of 1. Content of this type of
webpage cannot be changed webpage can be changed at
at run time. run time.
2. No interaction with 3. Interaction with server’s
server’s database is database is possible in case of
possible in case of static dynamic web pages.
web pages.

1 mark each for each correct differentiation mentioned above


or any other relevant point of differentiation.

OR

The difference between a website and a web page is that a


website is a collection of different web pages containing
information on a particular topic. A web page is an individual
page of a big website usually containing more specific
information. If we compare a website with a book, then a
webpage can be compared with a single page of that book.

2 marks for correct answer


[1]
2. (i) Cookies (1)

1 mark for correct answer


(ii) Name of any two popular web browsers: (1)
 Mozilla firefox
 Google Chrome
OR
Any other correct name

½ mark each for each correct browser name


3. Output: (2)
i. 125
ii. 2

1 Mark for each correct answer


OR

i. power(): It returns the value of a number raised to the power


of another number.
For example:

Select power(5,3);
Output: 125

ii. mod(): It returns the remainder of a number divided by


another number.

For example:

Select mod(5,3);
Output: 2

1 Mark for each correct answer


4. Role of web server in hosting a website: (2)

A web server is the main centralized computer system that hosts


and runs the websites. It has a computer program that distributes
web pages as they are requisitioned. The basic role of the web
server is to store, process and deliver the web pages to the users
as and when required.

2 Marks for correct answer

[2]
5. Output: (2)
i) 8.720
ii) 10

1 Mark for each correct answer


6. Having clause is used to further filter those groups of records (2)
which will be generated through group by clause.

For example:

Select max(marks) from student group by classes having classes


in (10,12);

Above given query will arrange records in groups according to


the classes. Further filtering on these groups will happen
through having clause, which will finally display the highest
marks from classes 10 and 12.

1 Mark for correct clause


1 Mark for correct example
7. Mr. Som, a HR Manager in a multinational company “Star-X (2)
world” has created the following table to store the records of
employees:
Table: Emp
Eid EName Department DOB DOJ
Star1 Ivan Sales 1994-08-28 2020-02-14
Star2 Melinda IT 1997-10-15 2021-11-19
Star3 Raj Accounts 1998-10-02 2019-04-02
Star4 Michael Sales 2000-02-17 2020-05-01
Star5 Sajal IT 2001-12-05 2018-06-13
Star6 John Accounts 1995-01-03 2019-07-15
Star7 Julia Sales 1985-11-13 2020-08-19

Output:

i) 2001
ii) Melinda

1 Mark for each correct answer


OR

Queries:

[3]
i) select ENAME,min(year(DOB)) from emp;

ii) select ENAME from emp where month(DOJ)=5;

1 Mark for each correct answer


SECTION – B
Each question carries 3 marks
8. Output: (3)
i. 11
ii. cbse
iii. exams

1 Mark for each correct answer


OR
i. right()
select right(user_id,2) from hotel;
ii. lower()
select lower(name) from hotel;
iii. mid()/substr()/substring()
Select mid(city,3,3) from hotel;

½ Mark for suggesting each correct function name


½ Mark for writing each correct query
9. i. It returns the current date and time. (3)
ii. None
iii. The return type for NOW() function is either in ‘YYYY-
MM-DD HH:MM:SS’ format or
YYYYMMDDHHMMSS.uuuuuu format, depending on
whether the function is used in a string or numeric
context.

1 Mark for each correct answer


10. i. To remove leading space characters: ltrim() (3)
ii. To remove trailing space characters: rtrim()
iii. To remove both type of space characters: trim()

MySQL Queries:

Select ltrim(‘ Hello ’);


Select rtrim(‘ Hello ’);
Select trim(‘ Hello ’);

Output:
[4]
Hello

½ Mark for suggesting each correct function name


½ Mark for writing each correct MySQL query
Section C
Each question carries 4 marks
11. (a) select * from stock order by price desc; (4)
(b) select category, sum(qty) from stock group by category;
(c) select category,avg(price) from stock group by category;
(d) select category, max(price) from stock group by category;

1 Mark for each correct query


12. Output: (4)

(a) 193
(b) 194
(c) 93.75
(d) 6

1 Mark for each correct output

OR

First query will produce the output 7.


Justification: count (*) will count and display total number of
rows (irrespective of any null value present in any of the
column).

Second query will produce the output 6.


Justification: count (col_name) will count and display total
number of not null values in the specified column.

1 Mark each for each correct output


1 Mark each for each correct justification
13. (a) LAN (4)
As computers are placed with-in the same campus with-
in a small range.
½ Mark for correct answer
½ Mark for correct justification
(b) Star topology
½ Mark for correct answer
[5]
Cable Layout:

½ Mark for correct cable layout


(c)
i. Repeater should be placed in between Block
‘D’ (Design) and Block ‘P’ as distance is more.
ii. Hub/Switch should be placed in each
building to connect various computers
together.
½ Mark for each correct answer
(d) Video Conferencing software: Teams, Zoom, Skype etc.
(Any one)
Protocol of Video Conferencing software: VOIP
½ Mark for each correct answer

[6]

You might also like