0% found this document useful (0 votes)
15 views

SET-1_IP_MS_PB2

Uploaded by

cliperthe78
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
15 views

SET-1_IP_MS_PB2

Uploaded by

cliperthe78
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 7

Page 1 of 12

कें द्रीय विद्यालय संगठन, जयपुर संभाग


Kendriya Vidyalaya Sangathan, Jaipur Regoin
बोर्ड पूिड परीक्षा-2/Pre-Board-2 Examination: 2024-25
सेट सं. /Set No. 1
Marking Scheme
कक्षा / Class : 12 विषय / Subject : Informatics Practices
अविकतम अंक / M.M : 70 अिवि / Period : 3 घंटे

दिशा वनिेश / General Instructions:


1. This question paper contains five sections, Section A to E.
2. Section A has 21 questions carrying 01 mark each.
3. Section B has 07 Very Short Answer type questions carrying 02 marks each.
4. Section C has 04 Short Answer type questions carrying 03 marks each.
5. Section D has 02 questions carrying 04 marks each.
6. Section E has 03 questions carrying 05 marks each.

SECTION A
Q M
1 State whether the following statement is True or False 1
Series is one dimensional array
True
2 In the sales table, with attributes sale_id, salesperson_id, sales_amount, and 1
product_price.
Which SQL query correctly retrieves the total sales made by each salesperson for
products priced higher than 100 Rs, while excluding salespeople who have made
fewer than 5 sales?

a) SELECT salesperson_id, SUM(sales_amount)


FROM sales
WHERE product_price > 100 AND COUNT(salesperson_id) > 5
GROUP BY salesperson_id;

b) SELECT salesperson_id, SUM(sales_amount)


FROM sales
WHERE product_price > 100
HAVING COUNT(*) > 5
GROUP BY salesperson_id;

c) SELECT salesperson_id, SUM(sales_amount)


FROM sales
WHERE product_price > 100
GROUP BY salesperson_id
HAVING COUNT(sales_amount) > 5;

d) SELECT salesperson_id, SUM(sales_amount)


FROM sales
WHERE product_price > 100
GROUP BY salesperson_id
HAVING COUNT(*) > 5;
3 Identify the networking device responsible for routing data packets based on their 1
destination addresses.
a) Modem
Page 2 of 12
b) Hub
c) Repeater
d) Router
4 Which command is used to open the database “SCHOOL”? 1
a) USE SCHOOL
b) OPEN SCHOOL
c) USE DATABASE SCHOOL
d) SHOW SCHOOL
5 Which of following is not an exaple of E-waste? 1
a) Air Conditioner
b) Laptop
c) Crockery Set
d) Mobile Phone
6 The data type passed as an argument in rename method is, 1
df.rename(index=__________, inplace=True)
a) List
b) Tuple
c) Dictionary
d) String
7 By default, the plot() function of Matplotlib draws a __________________ plot. 1
a) Histogram
b) Column
c) Bar
d) Line
8 Having clause and Where clause can be used interchangeably in SELECT queries? 1
a) True
b) False
c) Only in views
d) With order by
9 What parameter in the read_csv() function is used to specify the file path or URL of 1
the CSV file to be read?
a) file
b) path
c) data
d) url
10 A logo of a company would be licenced under: 1
a) Trademark
b) Patent
c) Logmark
d) Contract
11 Which one of the following is not an aggregate function? 1
a) ROUND()
b) SUM()
c) COUNT()
d) AVG()
12 Which is the smallest network? 1
a) WAN
b) LAN
c) MAN
d) PAN
13 Which command is used to display the first 5 rows from a Pandas Series named sr? 1
a) sr.tail()
b) sr.tail(5)
c) both a and b
Page 3 of 12
d) None of the above
14 The attack in which the target is lured in with false advertisement, often including a 1
fake version of a popular website.
a) Phishing
b) Identity Theft
c) Plagiarism
d) Ransomware
15 We can create Dataframe from: 1
a) Series
b) Numpy arrays
c) List of Dictionaries
d) All of the above
16 What is the output of the following SQL query: 1
SELECT MOD(YEAR('2023-03-05'),1000);
a) 03 b) 05 c) 2023 d) 23
17 Size of DataFrame is_______ and values are_______ 1
a) immutable, mutable
b) mutable, mutable
c) mutable, immutable
d) immutable, immutable
18 In order to draw charts in Python, which of the following statement will be used: 1
a) import pyplot.matplotlib as pl
b) import matplotlib.pyplot as plt
c)Import matplotlib from pyplot as plt
d) import pyplot from matplotlib as plt
19 Which device connects an organization's network with the outside world of the 1
Internet?
a) Hub b) Modem
c) Gateway d) Repeater
Q20 and 21 are ASSERTION AND REASONING based questions. Mark 1
the correct choice as
a) Both A and R are true and R is the correct explanation for A
b) Both A and R are true and R is not the correct explanation for A
c) A is True but R is False
d) A is false but R is True
20 a) Both A and R are true and R is the correct explanation for A 1
21 a) Both A and R are true and R is the correct explanation for A 1
SECTION B
22 Predict the output of python code based on series 2
import pandas as pd
dt2= {'A':1,'B':10,'C':100}
sr2=pd.Series(dt2)
print(sr2.size)
print(sr2.dtype)
Ans.
3
int64
OR
The python code written below has syntactical errors. Rewrite the correct code and
find the output.
import pandas as pd
dt = [134,67,56]
sr = pandas.Series([1,2,3],dt)
print(sr.head[2])
Page 4 of 12

Ans.
import pandas as pd
dt = [134, 67, 56]
sr = pd.Series([1, 2, 3],dt)
print(sr.head(2))

The corrected version uses `pd` as an alias for `pandas` while creating a Pandas
Series.The output will be the first two elements of the Series:
134 1
67 2
dtype: int64
23 What are browser add ons? Provide the name of two web browsers that support add 2
ons.
Ans. Browser add-ons, also known as extensions or plugins, are small software
programs that enhance the functionality of web browsers. They allow users to
customise and add features to their browsing experience.

All modern and specifically desktop web browsers supports add-ons like Mozilla
Firefox,Google Chrome, MS Edge,Opera,Safari etc.
OR
Differentiate between a Static and Dynamic Website.
Ans.
Aspect Static Website Dynamic Website

Fixed and hardcoded Content can be generated on-


Content
content. the-fly.

Page Generated on request based


Pre-built HTML pages.
Generation on user interaction.

Database Does not typically use Often uses databases to store


Usage databases. and retrieve data.

Limited interactivity; usually, High interactivity; responds to


Interactivity
no user inputs. user inputs/actions.

Harder to customize
Easier to customize content
Customization content without editing
using templates/data.
code.

Brochure websites, simple Social networks, e-commerce,


Examples
informational sites. content-driven sites.
24 What is the difference between DELETE and DROP in MySQL? 2
Ans.
DELETE removes rows from a table based on a condition while keeping the table
structure.
DROP removes the entire table along with its structure, data, and related elements,
effectively eliminating the table from the database.
25 How do you avoid plagiarism while creating the content online? 2
Ans.
1. Proper citations and references.
2. Paraphrasing and summarising.
3. Use of quotation marks for direct quotes.
4. Original content creation.
Page 5 of 12
5. Regular use of plagiarism checker tools.
26 Consider the given date value: ‘2020-09-13’. Write the SQL Function to: 2
A. Return the year.
B. Return the name of the month.

Ans.
A. SELECT YEAR(‘2020-09-13’);
B. SELECT MONTHNAME(‘2020-09-13’);
27 What is the difference between copyright and Patent? 2
Ans.
(1+1 mark for each correct difference.)
28 Ans: 2
i) The index labels of df will include amit, kajal, ramesh, lalta, prakash
# 1 Mark
ii) pt1 pt2
kajal 27.0 34.0 # ½ mark
ramesh 37.0 NaN # ½ mark
OR
Ans:
import pandas as pd
ser3 = pd.Series(50, index=range(1, 9, 2))
print(ser3)
SECTION C
29 Ans. 3
1. Cyberbullying and harassment.
2. Document evidence, report to authorities, seek platform assistance.
3. Yes, under the Information Technology (IT) Act, 2000 (amended in 2008).

OR

1. Reduced physical activity: Excessive social media use can lead to a sedentary
lifestyle, contributing to obesity and related health issues.
2. Sleep disturbances: Constant engagement with social platforms can disrupt sleep
patterns, leading to insomnia or poor sleep quality.
3. Increased stress and anxiety: Exposure to unrealistic standards and negative
content on social media can exacerbate stress and anxiety levels.
4. Social isolation: Paradoxically, excessive online connectivity may lead to feelings
of isolation and detachment from real-life social interactions.
5. Comparison and self-esteem issues: Constant comparison with curated online
personas can negatively impact self-esteem and body image, leading to feelings of
inadequacy or dissatisfaction.
30 import pandas as pd 3
file_path = '/home/user/Music/J-Pop/j-pop-20.csv'
df_jpop = pd.read_csv(file_path, header=0)
print(df_jpop.head(3))
31 Write MySQL statements to create the table Artist_Info with following specifications: 3

Ans.
CREATE TABLE Artist_Info (
ArtistID INT PRIMARY KEY,
ArtistName VARCHAR(100),
Nationality VARCHAR(50) NOT NULL
);
Degree:03 Cardinality: 07
Page 6 of 12
32 Ans. 3
1.
SELECT Genre, COUNT(*) AS NumberOfBooks
FROM Books_of_India
GROUP BY Genre;
(Without AS also acceptable)
2.
SELECT Genre, MAX(Copis_sold_in_lacs) AS TotalCopiesSold
FROM Books_of_India
GROUP BY Genre
HAVING COUNT(*) > 1;
(Without AS also acceptable)
3.
SELECT *
FROM Books_of_India
ORDER BY ID;
OR

Ans.
1.
INSTR(Title,"The")

2.
Title copies_sold_in_th

Malgudi Days 5000

Legends of Khasak 4000

3.

TOTAL

55

SECTION D
33 (i) import 4
(ii) bar
(iii) plt.ylabel(‘PERCENTAGE’)
(iv) plt.savefig(‘Result.png’)
OR
import matplotlib.pyplot as plt
Year = [2017,2018,2019,2022,2021]
Gross =[17,15.5,11.4,12.1,14.9]
plt.plot(Year,Gross)
plt.show()
(1 mark for each correct statement)
Page 7 of 12
34 Ans: 4
a) SELECT MIN(MARKS), MAX(MARKS) FROM RESULT WHERE GENDER=’F’; ( 1
mark)
b) SELECT DISTINCT(CITY) FROM RESULT; ( 1 mark)
c) SELECT CITY, AVG(MARKS) FROM RESULT GROUP BY CITY; (1 mark)
d) SELECT CLASS, SUM(MARKS) FROM RESULT GROUP BY CLASS;( 1 mark)
OR
Ans.
1. SELECT YEAR(AdmissionDate)-YEAR(BirthDate) AS Age
FROM PATIENT_REC;
2. SELECT SUM(HospitalCost)
FROM PATIENT_REC
WHERE TreatmentDuration > 10;`
3. SELECT MIN(TreatmentDuration), MAX(TreatmentDuration)
FROM PATIENT_REC
WHERE YEAR(BirthDate) = 2005;

4. SELECT MONTH(AdmissionDate), COUNT(PatientID),


FROM PATIENT_REC
WHERE YEAR(AdmissionDate) = 2023
GROUP BY MONTH(AdmissionDate);
SECTION E
35 Ans. 5
1. W1 (Most no. of Workstations)
2. Bus Topology (Draw the layout connecting W1-W2-W3-W4)
3. LAN
4. Hub will be placed inside each wing.
5. Voice Over Internet Protocol.
36 a) (4, 4) 5
b) Print(df.loc[‘W3’ : ‘W4’ , ‘Laptop’ : ‘Tablet’])
c) Df.loc[‘W5’] = [‘Secondary’ , 20 , 15 , 8]
d) 20
e) Df = df.drop(‘W3’ , axis = 0)
37 1. SELECT MOD(13, 5); 5
2. SELECT ROUND(12345.6789, -2);
3. SELECT MONTH(‘2023-07-23’);
4. SELECT INSTR('sarve bhavantu sukhinah’ , ’b’);
5. SELECT RIGHT('sarve santu niramaya', 4);
OR
i. Return the string after removing leading spaces from the string.
ii. Return the string in Capital letters
iii. Return the value after calculating m to the power n
iv. Return the rightmost number of characters as specified
v. Return the number of the month like 3 for ‘march’
(1 Mark for each correct answer)

You might also like