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

question _paper set(IP)

Uploaded by

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

question _paper set(IP)

Uploaded by

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

PAPER SET-I

CLASS: XII SESSION: 2023-24 INFORMATION


PRACTICES (CODE 065)
TIME: 03 HOURS M.M.:70
General Instructions:
1. This question paper contains five sections, Section A to E.
2. All questions are compulsory.
3. Section A has 18 questions carrying 01 marks each.
4. Section B has 07 Very Short Answer type questions carrying 02 marks each.
Internal choice is given in question 19.
5. Section C has 05 Short Answer type questions carrying 03 marks each.
Internal choice is given in two questions (26 and 29).
6. Section D has 02 questions carrying 04 marks each.
Internal choice is given in Question 32 Part iii Only.
7. Section E has 03 questions carrying 05marks
each. internal choice is given in Q 33 and 35.
8. All programming questions are to be answered using Python Language only.

Q SECTION A Marks
Which type of computer network has highest speed of data transfer.
a.LAN
1 b. MAN 1
c.WAN
d. None of these

In Which Indian Act you file a case of of cyber crime?


a.Cyber Act 2010
2 b. Indian IT Act 1995 1
c.Indian IT Act 2008
d. None of these

What is RRR (3R) in e-Waste management?


a.Reduce, Reuse, Recycle
3 b. Repair, Reuse, Reduce 1
c.Repair, Resale, Repay
d. None of these
SQL LENGTH() function can be applied on which of the following kind(s) of data

4 a. Date
1
b. Integer
c. Text
d. All of the above

Predict the output of following query: Select

power(2,-1);
5 1
a. 2
b. 0.5
c. 1
d. The query will produce error

is a types of FOSS.
a.Quick Heal Antivirus
6 b. Adobe reader 1
c.MS Office
d. MS Windows 11

Which function is udes to read data from CSV file to dataframe?type of module used to of the
following statements is TRUE about HAVING clause.?

7 a. read_csv. 1
b. to_csv
c. from_csv
d. readcsv

Gopi Krishna is using a table EMPLOYEE. It has the following columns:

Code, Name, Salary, Deptcode. He wants to display maximum salary Department wise. Which of the

following is a correct query to perform the given task:


8 a) SELECT Deptcode, Max(Salary) FROM EMPLOYEE where salary=max(salary); 1

b) SELECT Deptcode, Max(Salary) FROM EMPLOYEE group by salary;

c) SELECT Deptcode, Max(Salary) FROM EMPLOYEE having salary=max(salary);

d) SELECT Deptcode, Max(Salary) FROM EMPLOYEE group by Deptcode;


Write the output of the following SQL Query: Select

instr('KVSROJAIPUR', 'JPR');
9 1
a. 0
b. 1
c. error
d. cannot be predicted

Which of the following command will show the first two rows from a Pandas Series named
pd.
10 a. pd.head(5) 1
b. pd.head( )
c. pd.head(2)
d. pd.head(3)
Which is the invalid Datatype with reference to SQL?
a. Year
11 b. varchar 1
c. char
d. decimal
Output of the below code is
import pandas as pd
data = {'col1':pd.Series([11, 12, 13, 14], index=['a', 'b', 'c', 'e']),
'col2':pd.Series([21, 22, 23, 24], index=['a', 'b', 'c', 'f'])}
12 df = pd.DataFrame(data) 1
print(df.shape)
a. (2, 4)
b. (4, 2)
c. (2, 5)
d. (5, 2)

Maya sets up her own company to sell her own range of clothes on Instagram. What type of
intellectual property can she use to show that the clothes are made by his company.
a.Patents
13 b. Copyright 1
c.Trademark
d. Design
Which of the following SQL functions is used to extract characters from a string.

14 a. instr( )
1
b. ltrim( )
c. substr( )
d. concat( )
Which feature is used to link documents available on internet?
a.interlink
15 b. intralink 1
c.hyperlink
d. link

Which of the following is an example of digital footprint?


a.User post his/her image in Social Media
16 b. Attending online classes 1
c.Both a & b
d. None

Assertion (A):- A cookie is a text file,containing a string of information,which is


transferred by the website to the browser when we browse it.

Reasoning(R):- Cookie can be used to identify the choices and interests of the user.
17 1
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 but R is False
iv. A is false but R is True.

Assertion (A):- Professionals and developers are using the pandas library in data science and
machine learning.
Reason (R):- Pandas is an open source Python library which offers high performance, easy-to-
use data structures and data analysis tools
18 1
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 but R is False
iv. A is false but R is True.
SECTION B
Compare and contrast – STAR and BUS topologies
OR
19
What is the difference between a website and a webpage?

The python code written below has syntactical errors. Rewrite the correct code and underline the
corrections made.
IMPORT pandas as pd
20 2
df ={"name":["satish","rahul","arvind"],"exp(in months)":[14,41,31]} df=
pd.dataframe(df)
print(df)
Consider the given SQL string:
“Best of Luck for your Board Examination for session 2023”
21 Write suitable SQL queries for the following: 2
i. Returns the position of the first occurrence of the substring “the” in the given
string.
ii. To extract last four characters from the string
Predict the output of the given Python code:
import pandas as pd
22 l=[1,2,3] 2
s = pd.Series(l*3)
print(s)

23 Differentiate plagiarism and copyright. 2

What will be the output of the following code:


import pandas as pd
24 2
s = pd.Series(data = [1,2,3,4,5])
print(s > 5)
25 Differentiate where and having clause in SQL. 2
SECTION C
Write outputs for SQL queries (i) to (iii) based on the table given below: Table

: Student

N Name Age Department DateOfAd Charge Sex


o m s
1 Sandeep 64 Surgery 1997-02-23 400 F
2 Ravina 24 Orthopedic 1998-01-20 200 F
3 Karan 45 Orthopedic 1997-02-10 200 M
4 Tarun 12 Surgery 1998-01-01 300 F
5 Zubin 36 ENT 1998-01-12 250 M
26 6 Ketaki 16 ENT 1998-02-12 300 F 3

i. Select LENGTH(Name) from Student where Department = ‘Surgery’;


ii. Select NAME from Student where Year(DateOfAdm) = 1997;
iii. Select MOD(Age, 10) from Student where Sex=’M’;
OR
Write suitable queries based on the above table Student.
i. Display Department wise students number.
ii. Display DateOfAdm of female students who are of ENT department.
iii. Display records in descending order of student name where charges are greater than 200.

Write a Python code to create the DataFrame with appropriate column headings(srno, name and
marks) for the list given below:
27 3
[[1, ‘vinit’, 56], [2,’shyam’,60], [3,’usha’,70]]

Write MySQL statements for the following:


i. To create a database named SCHOOL.
ii. To create a table named student based on the
28 following specification: 3
Column Name DataType Constraints
Name Char(40) Primary Key
Marks Integer
Kavita received a link through SMS followed by a telephonic call mentioning that she is getting a
call from the bank's headquarter. The person is asking to provide the required data by
clicking on the link. While clicking on the link she finds the website is looking similar to the
bank website but the name of the website is not similar. So she closed the browser
immediately.

,Answer the following questions as to what she should do on receiving this SMS.
29 3
(a) What kind of act faced by Kavita?
(b) What immediate action should she take to report the issue?
(c) Is there any law in India to handle such an issue? Discuss briefly.

OR
What do you understand by hacking? Why is it a punishable offense? Mention any two ways to
avoid hacking.
Pooja, a student, has designed a DataFrame df_exam as shown below. Consider this DataFrame
and answer the following questions.
Day X XII

1 Monday Mathematics Accountancy

2 Tuesday Science Hindi/IP

3 Wednesday S. Studies English

4 Thursday English B. Studies


30 3
5 Friday Hindi Economics

6 Saturday Sanskrit NaN

A. Add a new column for class XI with below data


['IP', 'Economics', 'Accountancy', 'English', 'Hindi', 'B. Studies'].
B. Rename Row Label Index as shown below
['D01', 'D02', 'D03', 'D04', 'D05', 'D06']
C. Remove exams scheduled on Wednesday (remove row)

SECTION D
Harshit, is learning SQL and confused with the output of Following queries on table , predict the
output for him:
He has written the following queries:

31

I. Write a query to display the year of oldest STARTDATE.


II. Write a query to display the month of most recently issued loan.
III. Write a query to display all the issued loan in the month of December.
IV. Write a query to count total number of transactions in the year 2018.
Kumari Anamika, a student of class XII (IP) has designed a DataFrame df as shown
below. Consider this DataFrame and answer the below questions.
Name City Sales Expense

1 Vikram Kumar Churu 50000 42000

2 Hari Narayan Kota 52000 NaN

3 Sandeep Singh Jaipur 90000 50000

4 Nirmala Bikaner 34000 44000

32 5 Anjum Saikh Nagaur 42000 38000


i. Predict the output for below
a. print(df.index)
b. print(df.loc[::-1, :])

ii. Delete the last row from the dataframe.


iii. Write Python statement to add new column Commission which is 10% of Sales.
OR
(option for part iii only)
Write Python statement to export the DataFrame to a CSV file sales.csv store at E: drive.

SECTION E

Write SQL query for the following:


a. Display remainder of 75 divided by 45.
b. Display the current system Date and Time.
c. Display First 5 Characters of the String ‘Jaipur Region’.
d. Find Square of 17.
e. Display 1789.897 rounded off to 2 decimal places.
or
Kirti has created following table named Employee:
+ + + + +
33 | ENo | EName | Dept | Ranking|
+ + + + +
|1 | Tanu | Computer Science | 1 |
|2 | Sameer | IP |2|
|3 | Vineet | CS |1|
|4 | Sneh | IP |2|
|5 | Akshit | IP |3|
+ + + + +
Help her in writing SQL queries to the perform the following task:
a. Insert a new record in the table having following values: [6,'kanha','CS',5]
b. To change the value “IP” to “Informatics Practices” in subject column.
c. To remove the records of those students whose ranking are less than 3 .
d. To add a new column Salary of suitable datatype.
e. To display records of “CS” department.
BVM University is setting up its academic blocks at Vidya Nagar and planning to set up a network.
The university has 3 academic blocks and one human resource Centre as shown in the
diagram given below:

34 5

i. Suggest a cable layout of connection between the blocks.


ii. Suggest the most suitable place to house the server of the organization with suitable
reason.
iii. Which device should be placed/installed in each of these blocks to efficiently connect
all the computers within these blocks?
iv. The university is planning to link its sales counters situated in various parts of the same
city. Which type of network out of LAN, MAN or WAN will be formed?
v. Which network topology may be preferred in each of these blocks?
Write a python program to plot a line chart based on the given data to depict the forest coverage
in India for the last 20 years.
year=['1995','2001','2005','2011','2015']
35 area=[638879,653898,690171,692027,701673] 5
OR
Write down the python code to draw the bar chart using the diagram given below,also save the
output as a png image.
KENDRIYA VIDYALAYA SANGATHAN JAIPUR REGION MARKING SCHEME
SET-I
CLASS: XII SESSION: 2023-24 INFORMATION
PRACTICES (CODE 065)

Q SECTION A Marks
1 Ans:- (a) LAN 1

2 Ans:- © Indian IT Act 2008 1

3 Ans:- (b) Repair, Reuse, Reduce 1

Ans:- © Text
4 1

Ans:- b (0.5)
5 1

6 Ans :- (b) Adobe Reader 1

Ans:- (a) read_csv


7 1

8 Ans:- (d) SELECT Deptcode, Max(Salary) FROM EMPLOYEE group by Deptcode; 1

Ans:- (a) 0
9 1

10 Ans:- (c ) pd.head(2) 1

11 Ans:- (a) Year 1

12 Ans (d) (5,2) 1

13 Ans (c ) Trademark 1

14 Ans ( c) substr( ) 1

15 Ans (c ) Hyperlink 1

16 Ans:- . © Both a & b 1

17 Ans:- (i) 1

18 Ans:- (i) 1
SECTION B
Ans: Star :-All node attached to Central Node Bus:- network devices linked to a single cable
Website:- Collection of multiple webpage linked together under the same domain address
19 Web Page:- Single document on the web using a unique URL

Answer
import pandas as pd
df ={"name":["satish","rahul","arvind"],"exp(in months)":[14,41,31]} df=
20 2
pd.DataFrame(df)
print(df)

Ans: (i) Select Instr(“Best of Luck for your Board Examination for session 2023” ,”the”)
21 2
(ii) Select right(“Best of Luck for your Board Examination for session 2023”, 4)
Answer:
3
22 2
6
9

23 Plagiarism (When ideas Are copied) Copyright (Specific fixed expression is copied) 2

Answer:
False
False
24 2
False
False
False
25 Ans:- Where applied to a single row while having applied to a group for a condition. 2
SECTION C
Ans:- i. 7
5
ii. Sandeep
Karan
iii. 5
6
26
3

OR
i. Select Department, Count(*) from student group by Department;
ii. Select DateOfAdm from student where sex=’F’ and department=’ENT’;
iii. Select * from student where charges>200 order by name desc;
Answer:
import pandas as pd
27 df=[[1, ‘vinit’, 56], [2,’shyam’,60], [3,’usha’,70]] 3
df=pd.DataFrame(df,columns=["srno","name","marks"]) print(df)
Ans:- i. Create database SCHOOL
28 3
ii.create table student(name char(40) primary key, marks integer);
Ans. (a) Spoofing
(b) cyber Crime should be reported immediately.
© Indian IT Act 2008
29 3
Hacking:- Attempt to exploit a computer system or a private network inside a computer. Use
a virtual private network, make your social account private or any other correct measure.

Answer:
i. df_exam["Class XI"]=['IP', 'Economics', 'Accountancy', 'English', 'Hindi', 'B. Studies']
ii.
30 df_exam=df_exam.rename(index={1:”D01”,2:”D02”,3:”D03”,4:”D04”,5:”D05”,6:”D0 3
6”},i nplace=True)
iii.df_exam.drop([“Wednesday”])

SECTION D
Ans:- Select max(startdate) from loans
Select month(min(startdate)) from loans
31
Select * from loans where month(startdate)=12 Select
count(*) from loans where year(startdate)
Answer:

i)a [1,2,3,4,5]

b) Vikram Kumar Churu

Hari Narayan Kota

Sandeep Singh Jaipur

32 Nirmala Bikaner

Anjum Saikh Nagaur

ii df.drop(5)
iii df[‘Commission’]=df[‘Sales’]*0.10

OR
iii) df.to_csv(“E:\sales.csv”)
SECTION E

Ans:- insert into employee values(6, ‘kanha’, ‘cs’, 5)


33 Update employee set dept=”IP” where dept=”Informatics Practices”
Delete from employee where ranking<3 Alter
table employee add salary decimal
Select * from employee where dept=”CS”
Ans:- 1. Any valid cable layout(eg star)
2. HR Center
34 5
3. switch
4. MAN
Answer:
import matplotlib.pyplot as plt #Statement 1
year=['1995','2001','2005','2011','2015']
area=[638879,653898,690171,692027,701673]
plt.plot(year,area)
plt.title("Forest Coverage")
plt.xlabel("year")
plt.ylabel("Area") plt.show()
plt.savefig("forestcoverage.jpg")

35 OR 5
import matplotlib.pyplot as plt
Months = ('JAN-FEB', 'MARCH-MAY', 'JUN-SEPT', 'OCT-DEC')
users = [13,22,25,17]
plt.bar(Month,Temperature)
plt.title("Average Minimum temperatures of year 2021")
plt.ylabel("Temperature in degree celsius") plt.xlabel("Months")
plt.show()
plt.savefig("temp.png")
KENDRIYA VIDYALAYA SANGATHAN JAIPUR REGION SAMPLE
QUESTION PAPER SET-II
CLASS: XII SESSION: 2023-24 INFORMATION
PRACTICES (CODE 065)
TIME: 03 HOURS M.M.:70
General Instructions:
1. This question paper contains five sections, Section A to E.
2. All questions are compulsory.
3. Section A has 18 questions carrying 01 marks each.
4. Section B has 07 Very Short Answer type questions carrying 02 marks each.
Internal choice is given in question 19.
5. Section C has 05 Short Answer type questions carrying 03 marks each.
Internal choice is given in two questions (26 and 29).
6. Section D has 02 questions carrying 04 marks each.
Internal choice is given in Question 32 Part iii Only.
7. Section E has 03 questions carrying 05marks
each. internal choice is given in Q 33 and 35.
8. All programming questions are to be answered using Python Language only.

Part - A
Section - I
Attempt any 15 questions from questions 1 to 21
1 Which of the following is not a network topology : 1
i. Star,
ii. Mesh ,
iii. Tree,
iv. Bug
2 According to a survey, one of the major asian country generates pproximately about 2 million 1
tonnes of electronic waste per year. Only 1.5 % of the total e-waste gets
recycled. Suggest a method to manage e-waste .
3 State whether True or False : 1

A copyright is automatically granted to authors or creators of content.

4. Write the output of the following SQL command. 1


select round(49.88);
a. 49.88
b. 49.8
c. 49.0
d. 50
5 The avg() function in MySql is an example of . 1
a. Math function
b. Text function
c. Date Function
d. Aggregate Function

6 Which amongst the following is not an example of browser ? 1


a. Chrome
b. Firefox
c. Avast
d. Edge

7 In Pandas the function used to check for null values in a DataFrame is:
a. Isnull b. hasnans
c. Isnan d. None of these
8 Prachi has given the following command to obtain the highest marks 1
Select max(marks) from student where group by class;

but she is not getting the desired result. Help her by writing the correct command.

a. Select max(marks) from student where group by class;


b. Select class, max(marks) from student group by marks;
c. Select class, max(marks) group by class from student;
d. Select class, max(marks) from student group by class;
9. The command can be used to makes changes in the values of 1
columns in a table of SQL.
a. Create b. update
c. Delete d.alter
10. Given a Pandas series called Sequences, the command which will display the first 4 1
rows is .
a. print(Sequences.head(4))
b. print(Sequences.Head(4))
c. print(Sequences.heads(4)
d. print(Sequences.Heads(4))
11. Write the SQL command that will display the current time and date: 1
a. systemdate
b. now
c. curdate
d. curtime
12. Given the following Series S1 and S2: S1 1

S2

A 10 A 80
B 40 B 20
C 34 C 74
D 60 D 90
Write the command to find the sum of series S1 and S2 in Python Pandas.
a. S1.sum(S2)
b. S1.add(S2)
c. S1.total(S2)
d. None of these

13 The practice of taking someone else's work or ideas and passing them off as 1
One’s own is known as .
i. Phishing
ii. Identity Theft
iii. Plagiarism
iv. Ransomware
14
Which of the following SQL functions is used to find first occurrence of a substring in a given
string.

e. instr( )
f. ltrim( )
g. substr( )
h. concat( )

15 For web pages where the information is changed frequently, for example, stock prices, 1
weather information which out of the following options would you advise ?

a) Static web page


b) Dynamic web page
c) Fixed Web page
d) Homepage

16 is a non-profit organization that aims to build a publicly 1


accessible global platform where a range of creative and academic work is shared
freely.
i. Creative Cost
ii. Critical Commons
iii. Creative Commons
iv. Creative Common
17 Assertion (A): Each website has a unique address called URL. 1
Reasoning (R): It is Unified Resource Locator and a correct example is
http://mypage.htm/google.com
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 but R is False
iv. A is false but R is True.
18 Assertion (A): DataFrame has both a row and column index. 1
Reasoning (R): .loc() is a label based data selecting method to select a specific row(s) or
column(s) which we want to select.
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 but R is False
iv. A is false but R is True.
19 Define any 2 limitations of star topology?
OR
Write any 2 differences between Ring and Bus topology?

20 The python code written below has syntactical errors. Rewrite the correct code and underline the 2
corrections made.
import pandas as pd
df ={"name":["sarita","suman","tarun"],"exp(in months)":[14,41,31]} df=
PD.Dataframe(df)
print(df)
21. Consider the given SQL string: 2
“Chandrayan 3”
Write suitable SQL queries for the following:
i. Returns the position of the first occurrence of the substring “an” in the given
string.
ii. To extract first three characters from the string
22 Predict the output of the given Python code:
import pandas as pd
l=[3,,6,9]
s = pd.Series(l+3)
print(s)
23 Differentiate addons and plugins. 2
24 What will be the output of the following code: 2
import pandas as pd
M=[15,-10,56,39,-90,15]
p=pd.Series(M)
print(p[0])
print(p[[0,3,4]])
25 What are single row functions in SQL? Name any Two. 2

SECTION C

26 TABLE NAME : PHARMADB 3

Based on the above table “PHARMADB”, Write outputs for SQL commands to i
to iii:
i. SELECT SUBSTR(DrugName ,5,4) FROM PHARMADB WHERE PRICE>160;
ii. SELECT DRUGNAME FROM PHARMADB WHERE DAY(ManufactureDate)>10;
iii. SELECT ROUND ( Price, -1) FROM PURCHASE WHERE Location= ‘Delhi
OR
Based on the above table “PHARMADB”, Write queries for SQL commands to i
to iii:
i. Display location wise average price of the drugs.
ii. Dispaly Drug Name and price where location is either Delhi or Goa.
iii. Display the records in ascending order of manufacturing date.

27 Write a Python code to create a DataFrame with appropriate column headings from the list
given below
:[[1001,'IND-AUS',’2022-10-17’], [1002,'IND-PAK',’2022-10-23’], [1003,'IND-SA' ,
‘2022-10- 30],[1004,'IND-NZ',’2022-11-18’]]

28 Write MySQL statements for the following: 3


iii. To create a database named AUTOMOBILE.
iv. To create a table named VEHICLE based on the following
specification:

Column Name DataType Constraints


VehicleNumber INT Primary Key
29 VehicleName
Nadar has recently shifted to a newChar(40)
city and school. She does not know many 3
VehicleModel Char(50) UNIQUE
people in her new city and school. But all of a sudden, someone is posting negative,
demeaning comments on her social networking profile etc.
She is also getting repeated mails from unknown people. Every time she goes
online, she finds someone chasing her online.
i. What is this happening to Nadar?
ii. What immediate action should she take to handle it?
iii. Is there any law in India to handle such issues? Discuss briefly.

OR
What do you understand by plagiarism? Why is it a punishable offence? Mention
any two ways to avoid plagiarism.
30 Consider the following DataFrame, classframe 3

Write commands to :
i. Add a new column ‘Activity’ to the Dataframe
ii. Add a new row with values ( 5 , Mridula ,X, F , 9.8, Science)
iii. Rename the column CGPA to Per.

31 Rachit, is learning SQL and confused with the output of Following queries on table , predict the output 4
for him:
He has written the following queries:

i. Write a query to display the year of newest STARTDATE.


ii. Write a query to display the Day of most recently issued loan.
iii. Write a query to display all the issued loan in the month of November.
iv. Write a query to count total number of transactions in the year 2020.

32 Mr. Som, a data analyst has designed the DataFrame df that contains data about Computer 4
Olympiad with ‘CO1’, ‘CO2’, ‘CO3’, ‘CO4’, ‘CO5’ as indexes shown below. Answer the
following questions:
School Tot_students Topper First_Runnerup
CO1 PPS 40 32 8
CO2 JPS 30 18 12
CO3 GPS 20 18 2
CO4 MPS 18 10 8
CO5 BPS 28 20 8
Predict the output of the following python statement: i.print(df.shape)
ii. print(df[2:4])
iii.Write Python statement to display the data of Topper column of indexes CO2 to
CO4.
OR
(Option for part iii only)
Write Python statement to compute and display the difference of data of Tot_students column
and First_Runnerup column of the above given DataFrame.
Rollno NameSection E Section CGPA Stream
33 Write suitable SQL query for the following: 5
i. Display 7 characters extracted from 7th left character onwards from the
Class
string ‘INDIA
St SHINING’.
1 Aman IX E 8.7 Science
ii. Display the1 position of occurrence of string ‘COME’ in the string
‘WELCOMESt WORLD’.
2 Preeti X F 8.9 Arts
iii. Round off the value 23.78 to one decimal place.
iv. Display the remainder of 100 divided by 9.
v. Remove all the expected leading and trailing spaces from a column userid
of the table ‘USERS’.
34 Consider the following graph . Write the code to plot it. 5

OR

Draw the following bar graph representing the number of students in each class.
35. A company in Mega Enterprises has 4 wings of buildings as shown in the diagram : 5

W1 W2

W4
W3

Center to center distances between various Buildings: W3 to


W1 - 50m
W1 to W2 - 60m
W2 to W4 - 25m
W4 to W3 - 170m
W3 to W2 - 125m
W1 to w4 - 90m
Number of computers in each of the wing:
W1 - 150
W2 - 15
W3 - 15
W4 - 25
Computers in each wing are networked but wings are not networked The company has
now decided to connect the wings also.
i. Suggest a most suitable cable layout for the above connections.
ii. Suggest the most appropriate topology of the connection
between the wings.
iii. The company wants internet accessibility in all the wings.
Suggest a suitable technology .
iv. Suggest the placement of the following devices with
justification if the company wants minimized network traffic
a) Repeater
b)Hub / switch
v. The company is planning to link its head office situated in
New Delhi with the offices in hilly areas. Suggest a way to connect it economically.
KENDRIYA VIDYALAYA SANGATHAN JAIPUR REGION MARKING SCHEME
SET-II
CLASS: XII SESSION: 2023-24 INFORMATION
PRACTICES (CODE 065)

Part - A
1 Ans:- IV (Bug) 1
2 Ans:- Incineration or any other method 1
3 Ans:- True 1
4. Ans:- (d) 50 1
5 Ans:- (d) Aggregate function 1
6 Ans:- (c ) Avast 1
7 Ans:- (a) isnull
8 Ans:- (d) 1
9. Ans:- (b) update 1
10. Ans:- (a) print(Sequences.head(4)) 1
11. Ans:- (b) now 1
12. b. S1.add(S2) 1

13 Ans:- (iii) Plagiarism 1


14 Ans:- © substr() 1
15 Ans:- (b) Dynamic web page 1
16 Ans:- (iii) Creative Commons 1
17 Ans:- iii. A is True but R is False 1
18 Ans. Ii 1
19 Ans:- Central node dependency and long cable length Or
Ring(Each device is connected to two other device in a circular fashion) Bus(Each device
is connected a single cable(backbone)

20 Answer: 2
import pandas as pd
df ={"name":["sarita","suman","tarun"],"exp(in months)":[14,41,31]}
df= pd.DataFrame(df)
print(df)
21. 2
Ans:- i) Select instr(“chandrayan 3”, “an”) ii) select left(“chandrayan 3”, 3)
22 Answer
:
6
9
12
23 Ans:- Plug-in is a complete program and add-on is not a program. 2

24 Answer: 2
15
0 15
3 39
4 -90
(½ marks for each correct output line)
25 Ans:- work on single row and one output per row (ltrim(), substr()) 2

SECTION C
26 Ans:- i. Star 3
ii. Amlodipine
Levocitrezin
e
iii. 101
160
Or
i. Select location, avg(price) from pharmadb group by location
ii. select Drugname, price from pharmadb where location in (“”Delhi”,
“Goa”)
iii select * from pharmadb order by manufacturedate.
27 Answer:
import pandas as pd
df=[[1001,'IND-AUS',’2022-10-17’], [1002,'IND-PAK',’2022-10-23’], [1003,'IND-
SA' , ‘2022- 10-30],[1004,'IND-NZ',’2022-11-18’]]

df=pd.DataFrame(df,columns=["MatchID","Team","Date"]) print(df)

28 Ans:- i) Create database AUTOMOBILE 3


ii) Create table vehicle (vehiclenumber int primary key, vehiclename char(40),
vehiclemodel char(50))

29 Ans. I) Cyber Stalking 3


ii) Report to authorities.
iii) any cyber law

30 Answer: 3
i. classframe["Activity"]=[‘project’,’Model’,’thesis’,’survey’]
ii. classframe.loc[“St5”]=[ 5 , ‘Mridula’ ,X, F , 9.8,‘Science’]
iii. classframe.rename(columns = {'CGPA':'Per'}, inplace = True)

31 Ans:- Select year(max(startdate)) from loans Select 4


day(min(startdate)) from loans
Select * from loans where month(startdate)=11
Select count(*) from loans where year(startdate) =2020
32 Answer: 4
i) (5,4)
CO3 GPS 20 18 2
CO4 MPS 18 10 8
ii) Df.loc[‘CO2’:’CO4’,’Topper’]
OR
iii) Print(df[‘Tot_students’]-df[‘First_Runnerup’])
Section E

33 Ans:- 1. SELECT substr(‘INDIA SHINING’, 7,7) 5


2. SELECT INSTR(‘WELCOME WORLD’, ‘COME’)
3. SELECT ROUND(23.78,1)
4. SELECT MOD(100,9)
5. SELECT TRIM(USERID) FROM USERS
34 Answer: 5
import matplotlib.pyplot as plt
x=[2,3,4,5,6,7]
y=[1,2,3,4,5,6]
plt.plot(x,y) plt.show()
plt.savefig("linechart.jpg")

OR
import matplotlib.pyplot as plt
Class = ('VI', 'VII', 'VIII', 'IX',’X’)
users = [40,50,35,42]
plt.bar(Class,users)
plt.show() plt.savefig("temp.png")

35 Ans:- 1. Any suitable cable layout 5


2. any suitable topology
3. broadband
4. switch/hub in all wings
5. radiowave.
KENDRIYA VIDYALAYA SANGATHAN JAIPUR REGION SAMPLE
QUESTION PAPER SET-III
CLASS: XII SESSION: 2023-24 INFORMATION
PRACTICES (CODE 065)
TIME: 03 HOURS M.M.:70
General Instructions:
1. This question paper contains five sections, Section A to E.
2. All questions are compulsory.
3. Section A has 18 questions carrying 01 marks each.
4. Section B has 07 Very Short Answer type questions carrying 02 marks each.
Internal choice is given in question 19.
5. Section C has 05 Short Answer type questions carrying 03 marks each.
Internal choice is given in two questions (26 and 29).
6. Section D has 02 questions carrying 04 marks each.
Internal choice is given in Question 32 Part iii Only.
7. Section E has 03 questions carrying 05marks
each. internal choice is given in Q 33 and 35.
8. All programming questions are to be answered using Python Language only.

Q SECTION A Marks
Which type of computer network formed from personal devices.
a.LAN
1 b. MAN 1
c.WAN
d. PAN

Which is not a Intellectual Property Rights?


a.Copyright
2 b. Patent 1
c.Trademark
d. Open Source Software

Which is not a part of e-Waste Disposal Process?


a.Dismantling
3 b. Segregation 1
c.Refrurbishment
d. Phishing
SQL year () function can be applied on which of the following kind(s) of data

a) Date
b) Integer 1
4
c) Text
d) All of the above

Predict the output of following query: Select

mod(12,3);

5 a) 2 1
b) 4
c) 0
d) The query will produce error

is not a types of FOSS.


a.Python
6 b. Adobe reader 1
c.MYSQL
d. MS Windows

Which function is used to write data from CSV file to Data Frame?

7 a) read_csv. 1
b) to_csv
c) from_csv
d) readcsv
Rahul is using a table VEHICLE. It has the following columns:

VCode, VName, Price, Model. He wants to display maximum Price Model wise. Which of the

following is a correct query to perform the given task:


8 a) SELECT Vcode, Max(Price) FROM VEHICLE where Price=max(Price); 1

b) SELECT Vcode, Max(Price) FROM VEHICLE having Price=max(Price);

c) SELECT Vcode, Max(Price) FROM VEHICLE group by Price;

d) SELECT Vcode, Max(Price) FROM VEHICLE group by Model ;

Write the output of the following SQL Query: Select

substr('KVSROJAIPUR',4);
9 1
a) 0
b) ROJAIPUR
c) KVSRO
d) JAIPUR
Which of the following command will show the first five rows from a Pandas Series named
pd.
10 a) pd.head( ) 1
b) pd.head( 2)
c) pd.head(5,)
d) pd.head(1,5)
Which is the valid Datatype with reference to SQL?
a) Year
11 b) Day 1
c) date
d) Month
We can create dataframe from:
(A) Series
12 (B) Numpy arrays 1
(C) List of Dictionaries
(D) All of the above

are the attempts by individuals to obtain confidential information from you through
13 1
an original looking site and URL.
(A) Pharming attack
(B) Plagiarism
(C) Spamming
(D) Phishing scams

Which of the following SQL functions is used to remove leading characters from a string.
a) instr( )
14 b) ltrim( ) 1
c) rtrim( )
d) concat( )

Which amongst the following is an example of a browser?


(A) Mandriva
15 (B) GIMP 1
(C) Epic
(D) Azure

An organization purchase new computers every year and dumps the old one into the local
dumping
yard. Write the name of the most appropriate category of waste that the organization is creating
every year, out of the following options:
16 (A) Business waste 1
(B) Commercial waste
(C) E-waste
(D) Green waste

Assertion (A): - E-waste cause of Damage to the immune system, Skin disease, Multi
ailments and Skin problems.

Reasoning (R):- Mostly all electronic waste comprises of toxic chemicals such as lead,
17 beryllium, mercury etc. 1

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 but R is False
iv. A is false but R is True.

Assertion (A): - When DataFrame is created by using Dictionary, keys of


dictionary are set as columns of DataFrame.
18 Reasoning(R):- Boolean Indexing helps us to select the data from the 1
DataFrames using a boolean vector.
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 but R is False
iv. A is false but R is True.
SECTION B
Distinguish between Static webpage and Dynamic webpage.
OR
19 Explain the function of the following network devices: 2
a.Repeater
b. Firewall
Carefully observe the following
code: import pandas as pd
data = [{'a': 10, 'b': 20},{'a': 6, 'b': 32, 'c': 22}]
20 df1 = pd.DataFrame(data) 2
print(df1)
Answer the following:
i. List the index of the DataFrame df1
ii. List the column names of DataFrame df1.
Consider the given SQL string:
Str=“INFORMATICS
21 PRACTICES” 2
Write suitable SQL queries for the following:
a) To extract the last five characters from the above string.
b) Select substr(Str,8,4)
What will be the output of the following code?
22 import pandas as pd 2
A=pd.Series(data=[19,20,5,42])
print(A>15)
23 List any two health hazards related to excessive use of technology 2

What will be the output of the following code:


import pandas as pd
24 2
s = pd.Series(data = [1,2,3,4,5])
print(s > 5)
Discuss the significance of Order by clause in detail with the help of suitable
25 2
example.
SECTION C
Sahil, a database administrator has designed a database for Vehicles in a Service Centre. Help
him by writing answers of the following questions based on the given table:
26
Vehicle: 3
Write SQL command to:
a.Display the company name in upper case.
b. Display the lowest price of the Vehicle.
c.Count the type of vehicles manufactured by each company.
OR
Predict the output of following queries:
i) select right(Company,3) from vehicle where Qty>15;
ii) select avg(Qty) from Vehicle where Company=”Maruti”;
iii) select count(*) from vehicle where Type=”SUV”;
Write python code to create the DataFrame employee using dictionary:
NAME SALARY
101 RAHUL 50000
27 3
102 SAKSHI 46000
103 SAKSHAM 38000
104 ARUN 25700
Write MySQL statements for the following:
i. To create a database named SAMPLEPAPER.
ii. To create a table named ipsamplepaper based on the following
28 specification: 3
Column Name DataType Constraints
Set int Not null
Session Integer unique
Namita has recently shifted to new city and new school. She does not know many people in her
new city and school. But all of a student, someone is posting negative, demeaning comments on her
social networking profile, school site’s forum etc.
She is also getting repeated mails from unknown people. Every time she goes online, she finds
someone chasing her online..
29 i. What is this happening to Namita? 3
ii. What immediate action should she take to handle it?
iii. Is there any law in India to handle such issues?Discuss briefly.
OR
What do you mean by Cyber Crime? Name any two cyber-crimes? Also give two points by
means of which we can prevent from cyber crime.
30 Consider a DataFrame df as shown below. Consider this DataFrame and answer the 3
following questions.
Day House XII

1 Monday Raman Accountancy

2 Tuesday Shivaji Hindi/IP

3 Wednesday Tagore English

4 Thursday Ashoka B. Studies


a) Add a new column for HouseMaster with below data
[‘mahesh’,’suresh’,’satish’,’naresh’].
b) Rename Row Label Index as shown below
['H1', 'H2', 'H3', 'H4']
c) Remove Details of Shivaji House.
SECTION D
Neha creates a table FURNITURE with a set of records to maintain the records of
furniture purchased by her. She has entered the 7 records in the table. Help her to find the
answers of following questions:-

31

a) Write a query to display the year of oldest purchased furniture.


b) Write a query to display the day of most recently purchased furniture.
c) Write a query to display details of the furniture Purchased in the year 2020.
d) Write a query to count total cost of furniture purchased in year 2021.
Mr. Sharma, a data analyst has designed the df that contains data about Cyber Olympiaddetails
with ‘Cyb1’, ‘Cyb2’, ‘Cyb3’, ‘Cyb4’, ‘Cyb5’ as indexes shown below. Answer the following
questions:

32

A. Predict the output of the following –


i. df.shape
ii. df.[2:4]
iii. Write python statement to display the data of the topper column of index Cyb2 to
Cyb5.
OR
(option for part iii only)
Write Python statement to compute and display the difference of data of Total_students
column and Runnerup column of the above given DataFrame.
SECTION E
Write suitable SQL query for the following:
i. Display 4 characters extracted from 5th left character onwards from the string ‘ALL IS WELL.
ii. Display the position of occurrence of string ‘COME’ in the string ‘WELCOME
WORLD’.
iii. Round off the value 2334.78 to one decimal place.
iv. Display the remainder of 200 divided by 7.
v. Remove all the expected trailing spaces from a column username of the table
‘USERS’.
OR
Consider the following table TEACHER:
+ + + + +
| TNo | TName | Dept | DOJ|
33 + + + + +
|1 | Tanu | CS | 05.09.2007 |
|2 | Sameer | MATHS | 10.09.2007|
|3 | Vineet | PHYSICS | 19.09.2014|
|4 | Sneh | BIO | 21.09.2014 |
|5 | Akshit | CHEM |18.09.2021 |
+ + + + +
Help her in writing SQL queries to the perform the following task:
a) Insert a new record in the table having following values:
[6,'Abhinav','office',12.10.2023]
b) To change the value “CS” to “Computer Science” in subject column.
c) To remove the records of those teachers who belongs to physics department.
d) To add a new column Salary of suitable datatype.
e) To display records of “CS” department.
Granuda Consultants are setting up a secured network for their office campus at Faridabad
for their day to day office and web-based activities. They are planning to have connectivity
34 between 3 building and the head office situated in Kolkata. Answer the questions (i) to (iv) 5
after going through the building positions in the campus and other details, which are given
below:
Distance between two buildings

Number of Computers

(i) Suggest the most suitable place (i.e., block) to house the server of this
organization. Also give a reason to justify your suggested location.
(ii) Suggest a cable layout of connections between the buildings inside the campus.
(iii) Suggest the placement of the following devices with justification:
o Repeater
o Switch/hub
(iv) The organization is planning to provide a high-speed link with its head office
situated in the KOLKATA using a wired connection. Which of the following
cable will be most suitable for this job?
o Optical Fibre
o Co-axial Cable
o Ethernet Cable
(v) Which of the following will you suggest to establish the online face to face
communication between the people in the ADMIN office of Faridabad campus and
Kolkata head office?
a) Cable TV
b) Email
c) Video conferencing
d) Text chat

35 Write Python code to plot a bar chart for India’s medal tally as shown below: 5
Also give suitable python statement to save this chart.
OR
Write a python program to plot a bar chart based on the given data to depict the changing weekly
average temperature in Guwahati for five weeks.
Week=[1,2,3,4,5]
KENDRIYA VIDYALAYA SANGATHAN JAIPUR REGION MARKING
SCHEME SET-III
CLASS: XII SESSION: 2023-24 INFORMATION
PRACTICES (CODE 065)

Q SECTION A Marks
1 Ans:- (d) PAN 1

2 Ans:- (d) Open Source Software 1

3 Ans:- (d) Phishing 1

Ans:- (a) date


4 1

Ans:- ( c) 0
5 1

6 Ans:- (d) MS Windows 1

7 Ans :- (b) to_csv 1

8 Ans:- (d) SELECT model, Max(Price) FROM VEHICLE group by Model 1

9 Ans:- b) ROJAIPUR 1

10 Ans:- (a) pd.head( ) 1

11 Ans:- (c ) date 1

12 Ans:- (d ) 1

13 Ans:- © Spamming 1

14 Ans:- (b) ltrim() 1

15 Ans:- (c ) Epic 1

16 Ans:- (c ) E-waste 1

17 Ans:- (I ) 1

18 Answer: ii 1
SECTION B
Ans:- Static web page:- server sends the response to the client without doing any additional
process.
Dynamic web page:- content of page is different for different visitors.
19 2
Repeater:- Regenerates an incoming signal from the sender before transmitting it to the receiver.
Firewall:- Network security device either hardware or software based.

Answer:
20 i) df1.index 2
ii) df1.columns
Ans:- Select right(str, 5)
21 2
TICS
Answer :
True
22 True 2
False
True

23 Ans:- Eye strain Muscle and joint pain 2

False
False
24 False 2
True
True
Ans:- Order by clause is used to arrange the query output based on column(s) in
25 2
ascending or descending order.
SECTION C
Ans:-
(a) Select ucase(company) from vehicle.
(b)Select min(price) from vehicle
(c) Select company, count(*) from company group by company.
Or
26 (i) Uti 3
Shi
Sun
Uti
(ii) 21.5
(iii) 2
import pandas as pd
details = {
'Name' : ['Rahul', 'Sakshi', 'Saksham', 'Arun'],
27 'Salary' : [50000,46000,38000,25700] 3
}
df = pd.DataFrame(details, index = [101,102,103,104])
print(df)
Ans:- i. create database samplepaper
28 3
ii.create table ipsamplepaper(set int not null, session int unique)
Ans:- i) stalking
29 ii) should inform parents and authorities 3
iii) cyber laws (brief description)
SECTION D
Ans:-
i. select year(min(dateofpurchase))
31 ii. Select day(max(dateofpurchase))
iii. Select * from furniture where year(dateofpurchase)=2020
iv. Select sum(cost) from furniture where year(dateofpurchase)=2021
Answer:
i) (6,5)
ii) Cyb2 NVS 45 35 10
32 Cyb3 DPS 30 20 10
iii) Df.loc[‘Cyb2’:’Cyb5’,’Topper’]
OR
Print(df[Total_students]-df[‘Runnerup’])
SECTION E
Ans:- insert into employee values(6,'Abhinav','office',’12.10.2023’) Update
employee set dept=”CS” where dept=”Computer Science” Delete from
33 employee where dept=’physics’
Alter table employee add salary decimal
Select * from employee where dept=”CS”
Ans:- 1. Jamuna, Maximum computer
2. any suitable layout
34 3. switch in every block and repeater where distance >=90 mts 5
4. Optical Fibre
5. Video Conferencing
Answer:
import matplotlib.pyplot as plt
35 5
medal=[‘Gold’,’Silver’,’Bronze’]
qty=[20,15,19]
plt.bar(medal,qty)
plt.title("Indian Medal Tally in olympics")
plt.xlabel("type of medal") plt.ylabel("Medal")
plt.show()
plt.savefig("medal.jpg") OR
import matplotlib.pyplot as plt
Week = [1,2,3,4,5]
temp = [13,22,25,17,16]
plt.hist(temp,bins=5)
plt.title("Average temperatures")
plt.ylabel("Temperature in degree celsius")
plt.xlabel("weeks")
plt.show()
plt.savefig("temp.png")
KENDRIYA VIDYALAYA SANGATHAN JAIPUR REGION SAMPLE
QUESTION PAPER SET-4
CLASS: XII SESSION: 2023-24 INFORMATION
PRACTICES (CODE 065)
TIME: 03 HOURS M.M.:70
General Instructions:
1. This question paper contains five sections, Section A to E.
2. All questions are compulsory.
3. Section A has 18 questions carrying 01 marks each.
4. Section B has 07 Very Short Answer type questions carrying 02 marks each.
Internal choice is given in question 19.
5. Section C has 05 Short Answer type questions carrying 03 marks each.
Internal choice is given in two questions (26 and 29).
6. Section D has 02 questions carrying 04 marks each.
Internal choice is given in Question 32 Part iii Only.
7. Section E has 03 questions carrying 05marks
each. internal choice is given in Q 33 and 35.
8. All programming questions are to be answered using Python Language only.

Q SECTION A Marks
1 There are numerous websites, which provide search facility for searching the contents on 1
a) Internet
b) Website
c) Web Page
d) LAN
2 Feasible method(s) to manage e-Waste. 1
a) Reducing
b) Reusing
c) Recycling
d) All of these
3 It is an act of copying another person’s data idea, words or work and pretended that 1
they
are our own.
a) Copyright
b) Virus
c) Plagiarism
d) IPR
4 Which type of values will not considered by SQL while executing the following statement? 1
SELECT COUNT(column name) FROM INVENTORY;
a) Numeric value
b) Text value
c) Null value
d) Date value
5 In column “Margin “contains the data set(2.00,2.00,NULL,4.00,NULL,3.00,3.00) 1
what will
be the output of after the execution of the given query?
SELECT AVG(Margin) FROM SHOP;
a) 2.9
b) 2.8
c) 2.00
d) All of these
6 ‘P’ in IPR stands for 1
a) Proprietary
b) Platform
c) Patent
d) Property
7 Which of the following is not a category of MySQL functions? 1
a) Text Functions
b) Mathematical Functions
c) Statistical Functions
d) Arithmetic Functions
8 Shagun is using a table EMPLOYEE. It has the following columns: 1
Code, Name, DOJ, Deptcode. He wants to display details of employee who has maximum
experience in the organization. Identify the correct query from the below for this:(Here
DOJ is for Date of Joining)
(i) SELECT * FROM EMPLOYEE where DOJ=max(DOJ);
(ii) SELECT * FROM EMPLOYEE where DOJ=min(DOJ);
(iii) SELECT max(DOJ) FROM EMPLOYEE;
(iv) SELECT min(DOJ) FROM EMPLOYEE;
9 Which of the following function is the correct syntax of LCASE() function? 1
a) LCASE(row_name)
b) LCE(column_name)
c) LCASE(str/column_name)
d) None of the above
10 To display Third Element of a Series object S, you will write : 1
a) S[:3]
b) S[2]
c) S[3]
d) S[:2]
11 What is the format for Datetime datatype in SQL. 1
a) YYYY-MM-DD HH:MM:SS
b) HH:MM:SS YYYY-MM-DD
c) DD-MM-YYYY HH:MM:SS
d) HH:MM:SS DD-MM-YYYY
12 Which of the following statement is wrong in context of DataFrame? 1
a) Two dimensional size is Mutable
b) Can perform Arithmetic operators on rows and columns.
c) Homogeneous tabular data structure
d) Create Dataframe from numpy ndarray
13 What is the name of the IT law that India is having in the Indian Legislature? 1
a) India’s Technology(IT) Act,2000
b) India’s Digital Information Technology(DIT),Act,2000
c) India’s Information Technology(IT),Act ,2000
d) The Technology Act,2008
14 Which function extracts the date value from a date. 1
a) CURRENT( )
b) NOW( )
c) SYSDATE( )
d) DATE( )
15 An online discussion group that allow direct live communication is known as 1
a) e-mail
b) Hyperlink
c) Chat group
d) Web Crawler
16 Which of the following are automatically granted to creators and authors? 1
a) Copyright
b) Patent
c) Trademark
d) Netiquette
Q17 and 18 are ASSERTION AND REASONING based questions. Mark the correct choice 1
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 but R is False
iv. A is false but R is True
17 ASSERTION (A): E-waste can be toxic and harmful for nature
REASONING(R): E-Waste that do not organically break down can, over time, can
seep
directly into the environment
18 ASSERTION(A):drop() function removes data from a Dataframe temporarily. 1
REASONING(R): Axis parameter is compulsory with drop() function.
SECTION B
19 What is a Website and Webpage?
OR
What is a network? Why is it needed?
20 The python code written below has syntactical errors. Rewrite the correct code and underline 2
the corrections made.
import pandas as pd
data = {'col1':pd.Series([11, 12, 13, 14, 15], index=['a', 'b', 'c', 'd', 'e']),
'col2':pd.Series([21, 22, 23, 24, 25], index=['a', 'b', 'c', 'd', 'e']),
'col3':pd.Series([31, 32, 33, 34, 35], index=['a', 'b', 'c', 'd', 'e'])}
df = pd.Dataframe(data)
print(df)
df.drop(['col1', 'col2'], axis=1, inplace='True')
print(df)
21 Consider the given SQL string: 2
““KVSANGATHAN ”
Write suitable SQL queries for the following:
i. To extract 5 characters from third position in the above string
ii. To remove all leading and trailing spaces from the above string
22 Consider the code given below and answer the following question: Ld=[{'a',10,'b':20}, 2
{'a':5,'b':10,'c':20}]
df=pd.DataFrame(Ld)
print(df)
i) Write the missing import statement in the above code.
ii) How many columns will be there in the dataframe.
23 What is meant by digital footprint and how to manage it suggest any two guidelines. 2
24 What will be the output of the following code: 2
>>>import pandas as pd
>>>nums=pd.Series([9,8,7,6,5],index=range(0,10,2))
>>>print(nums[1:3]
25 How are NULL values treated by aggregate functions? 2
SECTION C
26 Write outputs
for SQL S.No. S_Name Company Qty Type queries 3
(i) to (iii) 1. Mouse Logitech 12 Hardware based on
the table 2. MS-Office Microsoft 5 Software given
below: 3. Keyboard Logitech 15 Hardware
4. Adobe Reader Adobe 10 Software
Table : 5. Adobe Photoshop Adobe 5 Software Stock
6. Monitor Acer 10 Hardware
i. Select INSTR(S_Name, ’o’) from Stock where Company = ‘Logitech’;
ii. Select AVG(Qty) as ‘Average’ from Stock where Company = ‘Acer’;
iii. Select count(*), Company from Stock where count(*)>1;
OR
Write suitable queries based on the above table Student.
i. Display Company wise average quantity in stock table.
ii. Display Typewise highest quantity of stock.
iii. Display the name of hardware Stock items in descending order of their quantity.

27 Consider the given DataFrame ‘Fees’: 3


Cname Fee
0 XII 3500
1 XI 3000
2 X 2700
3 VII 1800
Write suitable Python statements for the following:
(i) Add a column called ‘Section’ with the following data:
[‘A’,’B’,’C’,’D’].
(ii) Add a new Class Name named ‘IX' having price 1800.
(iii) Remove the column ‘Section’.
28 Write MySQL statements for the following: 3
v. Open a previously created database named COMPANY for working.
vi. To create a table named GARMENTS based on the following specification:
Column Name DataType Constraints
Article_Name Char(40) Primary Key
Size Integer NOT NULL
Qty Numeric
29 Samridh has recently changed his school so he is not aware of the people, but someone is 3
posting negative demeaning comments on his social media profile. He is also getting
repeated mails from unknown people. Every time he goes online, he finds someone
chasing him online.
(i) Samridh is a victim of .
(ii) The action that Samridh should take to handle it.
(iii)...........................is a set of moral principles that governs the behavior of a group or
individual and regulates the use of computers.
OR
What do you understand by plagiarism? Why is it a punishable offence? Mention any two
ways to avoid plagiarism.
30 Write a python code to create a DataFrame with appropriate column headings from the list 3
given below:
[[201,’Gurmeet’,95],[202,’Praveen’,89],[203,’Suman’,97],[204.’Yogesh’,91]]
SECTION D
31 Naveen, a database administrator has designed a database for a Computer Stock. Help her by
writing answers of the following questions based on the given table:
TABLE: Stock

i. Write a query to display product name in upper case.


ii. To display the records in descending order of the price.
iii. To display category and category wise highest price of product.
iv. To display category and category wise total quantities of product.
32 Mr. Ankit is working in an organization as data analyst. He uses Python Pandas and

Matplotlib for the same. He got a dataset of the passengers for the year 2010 to 2012 for
January, March and December. His manager wants certain information from him, but he
is facing some problems. Help him by answering few questions given below:

A. Predict the output of the following python statement:


i. df.tail(3)
ii. df[df.Passengers>50]
iii.Write Python statement to display the data of year column of indexes 1 to 3.
OR
(Option for part iii only)
Write the Python code to rename the name of the column name is ‘mon_name’in
place
of “Month” in the above Dataframe.
SECTION E
33 Write suitable SQL query for the following:
i. Display 7 characters extracted from 7th left character onwards from the
string ‘INDIA SHINING’.
ii. Display the position of occurrence of string ‘COME’ in the string ‘WELCOME
WORLD’. iii.
Round off the value 78.779 to 2 nd decimal place.
iv. Display the remainder of 149 divided by 6.
v. Remove all the expected leading and trailing spaces from a column userid of the table
‘USERS’.
OR
Explain the following SQL functions using suitable examples.
i. LENGTH()
ii. TRIM()
iii. NOW()
iv. DAYNAME()
v. POWER()
34 Trine Tech Corporation (TTC) is a professional consultancy company. The company is 5
planning to set up their new offices in India with its hub at Hyderabad. As a network
adviser, you have to understand their requirement and suggest them the best available
solutions.
Their queries are mentioned as (i) to (v) below.
The tables given below show the distance between different blocks and the number of
computers in each block.
(i) Which will be the most appropriate block, where TTC should plan to install their server?
(ii) Draw a block to block cable layout to connect all the buildings in the most appropriate
manner for efficient communication.
(iii) Which of the following device will be suggested by you to connect each computer in
each of the buildings?
(a) Switch (b) Modem (c) Gateway
(iv) The company is planning to connect its admission office in Hyderabad which is
more than 1000 km from company. Which type of network will be formed?
(v) what will be the best possible connectivity out of the following you will suggest to
connect the new setup of offices in Bangalore with its London based office.
a) Satellite Link b) Infrared c) Ethernet
35 Mr. Sharma is working in a game development industry and he was comparing the given 5
chart on the basis of the rating of the various games available on the play store.

Write the python code for the above graph and Also give suitable python statement to save
this chart.
OR
Write a python program to plot a line chart based on the given data to depict the pass
percentage of students in CBSE exams for the years 2015 to 2018 as shown below.
Year=[2015,2016,2017,2018]
Pass_Percentage=[82,83,85,90]
KENDRIYA VIDYALAYA SANGATHAN JAIPUR REGION MARKING
SCHEME SET 4
CLASS: XII SESSION: 2023-24 INFORMATION
PRACTICES (CODE 065)
TIME: 03 HOURS M.M.:70
General Instructions:
1. This question paper contains five sections, Section A to E.
2. All questions are compulsory.
3. Section A has 18 questions carrying 01 marks each.
4. Section B has 07 Very Short Answer type questions carrying 02 marks each.
Internal choice is given in question 19.
5. Section C has 05 Short Answer type questions carrying 03 marks each.
Internal choice is given in two questions (26 and 29).
6. Section D has 02 questions carrying 04 marks each.
Internal choice is given in Question 32 Part iii Only.
7. Section E has 03 questions carrying 05marks
each. internal choice is given in Q 33 and 35.
8. All programming questions are to be answered using Python Language only.

Q SECTION A Marks
1 a) Internet 1
2 d) All of these 1
3 c) Plagiarism 1
4 c) Null value 1

5 b) 2.8 1
6 d) Property 1
7 d) Arithmetic Functions 1
8 (v) SELECT * FROM EMPLOYEE where DOJ=min(DOJ); 1
9 c) LCASE(str/column_name) 1
10 b) S[2] 1
11 e) YYYY-MM-DD HH:MM:SS 1
12 c) Homogeneous tabular data structure 1
13 c) India’s Information Technology(IT),Act ,2000 1
14 d) DATE( ) 1
15 c) Chat group 1
16 a) Copyright 1
17 i) Both A and R are true and R is the correct explanation for A
18 i) Both A and R are true and R is the correct explanation for A 1
SECTION B
19 Website: A group of related webpages that follow the same theme and are connected
together with hyperlinks is called a Website.
Webpage: web page is an electronic document designed using HTML.it displays
information in textual or graphical form.
(1 mark for correct explanation of each term )
OR
Network: A network is an interconnected collection of autonomous computers that can
share and exchange information.
(1 mark for correct explanation )
Need of Networking:
i. Resource sharing
ii. Reliability
iii. Cost effective
iv. Fast data sharing
( ½ mark for each (any two))
20 The python code written below has syntactical errors. Rewrite the correct code and 2
underline the corrections made.
import pandas as pd
data = {'col1':pd.Series([11, 12, 13, 14, 15], index=['a', 'b', 'c', 'd', 'e']),
'col2':pd.Series([21, 22, 23, 24, 25], index=['a', 'b', 'c', 'd', 'e']),
'col3':pd.Series([31, 32, 33, 34, 35], index=['a', 'b', 'c', 'd', 'e'])}
df = pd.DataFrame(data)
print(df)
df.drop(['col1', 'col2'], axis=1, inplace=True)
print(df)
21 Consider the given SQL string: 2
“KVSANGATHAN ”
Write suitable SQL queries for the following:
a. SELECT Substr(“KVSANGATHAN
”,3,5)
; OR
SELECT Substr(“KVSANGATHAN
”,3,5)
; OR
SELECT mid(“KVSANGATHAN
”,3,5)
; OR
Any other correct answer
b. SELECT trim(“KVSANGATHAN ”);
22 i) import pandas as pd 2
ii) 3 columns
(1 mark for each correct answer)
23 1.Recycling/recovery of valuable material. 2
2.Dismantling
3.Refurbishment and reuse
4.Disposal of dangerous materials and waste
(½ mark for each correct answer )
OR
On the internet, a digital footprint is the word used to describe the train, traces or
footprints that people leave online. This is information transmitted online, such as
forum registration-mails and attachments, uploading videos or digital images.
(1 mark for each correct answer )
Guidelines of Digital Footprint
1. know what your digital footprints is
2. keep your digital foot print clean
(½ mark for each correct point)

24 28 2
47
(1 mark for each correct answer)
25 None of the aggregate functions takes NULL into consideration. NULL is simply ignored 2
by all the aggregate functions excepts COUNT(*).
(2 marks for correct answer)
SECTION C
26
S.No. S_Name Company Qty Type 3
1. Mouse Logitech 12 Hardware
2. MS-Office Microsoft 5 Software
iv. 3. Keyboard Logitech 15 Hardware
4. Adobe Reader Adobe 10 Software
5. Adobe Photoshop Adobe 5 Software
6. Monitor Acer 10 Hardware
i. Select INSTR(S_Name, ’o’) from Stock where Company = ‘Logitech’;
ii. Select AVG(Qty) as ‘Average’ from Stock where Company = ‘Acer’;
iii. Select count(*), Company from Stock where count(*)>1;
OR
Write suitable queries based on the above table Student.
i. Display Company wise average quantity in stock table.
ii. Display Typewise highest quantity of stock.
iii. Display the name of hardware Stock items in descending order of their quantity.
(i) (ii) Average
INSTR(S_Name, ’o’) 10
2
5
(iii)

Count(*) Company
2 Logitech
2 Adobe

OR
(i) Select company, avg(qty) from stock group by company;
(ii) Select type,max(qty) from stock group by type;
(iii) Select S_name from stock where type=’hardware’ order by qty desc;
27 (i) Fees['Section']= [‘A’,’B’,’C’,’D’] 3
(ii)Fees.loc['4']=['IX',1800]
(iii)Fees=Fees.drop('Section',axis=1)
1 mark for each correct statement
28 i. Use COMPANY; 3
ii.Create Table Garments
( Article_Name varchar(40) Primary Key,
Size int NOT NULL,
Qty int);
29 i. Cyber stalking 3
ii. He should bring to the notice of his parents and school authorities.
iii.Computer ethics
OR
Plagiarism is the act of using or stealing someone else’s intellectual work, ideas
etc. and passing it as your own work. In other words, plagiarism is a failure in giving
credit to its source. Plagiarism is a fraud and violation of Intellectual Property Rights.
Since IPR holds
a legal entity status, violating its owners right is a legally punishable offence.
30 import pandas as pd 3
data=[[201,’Gurmeet’,95],[202,’Praveen’,89],[203,’Suman’,97],
[204.’Yogesh’,91]]
df=pd.DataFrame(data,columns=['Rno','Name', 'Marks'])
(1 mark for each correct python statement)
SECTION D
31 i. SELECT UPPER(PNAME) FROM STOCK;
ii. SELECT* FEOM STOCK ORDER BY PRICE DESC;
(1 mark for each correct query)
iii. SELECT CATEGORY,MAX(PRICE) FROM STOCK GROUP BY CATEGORY;
OR
SELECT CATEGORY,SUM(QTY) FROM STOCK GROUP BY CATEGORY;
(2 marks for correct query)
32 A)
i) 2 2012 Jan 35
3 2010 Dec 55
4 2012 Dec 65
ii) 55
65
(1 mark for each correct output )
B ) Python statement:
print(df.loc[1: 3, 'year'])
OR

df.rename(columns={‘Month’:’mon_name’)
(2 marks for correct Python statement)
SECTION E
33 i. select mid('INDIA SHINING',7,7);
ii. select INSTR('WELCOME WORLD','COME');
iii. select round(78.779,2);
iv. select mod(149,6);
v. select trim(userid) from users;
(1 mark for each correct query )
OR
1.LENGTH():This function returns the length of the string in bytes. It includes the count
of blank spaces in the string.
Syntax LENGTH(string/column_name)
EXAMPLE : SELECT
LENGTH('easycalculation'); Output: 15
2. TRIM(): It removes the leading and trailing spaces from the given string.
Example: SELECT TRIM(‘ Welcome world ‘ );
Output: Welcome world
3. This function returns the current date and time in the format ‘YYYY-MM-DD
HH:MM:SS’
or YYYYMMDDHHMMSS format.
Syntax NOW()
e.g. mysql> SELECT NOW()
Output: ‘YYYY-MM-DD HH:MM:SS’ or YYYYMMDDHHMMSS format of current
date
4. DAYNAME(): It returns the weekday name for a given date
Example: SELECT DAYNAME(‘2022-07-22’);
Output: Friday
5. POWER(): It returns the value of a number raised to the power of another number.
Example: SELECT POW(6,2);
Output: 36
(½ mark for each correct explanation
) (½ mark for each correct example)
34 i) TTC should install its server in finance block as it is having maximum number 5
of computers.

ii) The above layout is based on minimum cable length required which is 120 meter in the
above case.
iii) Switc
h
iv)WAN
v) Satellite Link
35 import matplotlib.pyplot as plt 5

Games=["Subway
Surfer","TempleRun","CandyCrush","BottleShot","RunnerBest"]
Rating=[4.2,4.8,5.0,3.8,4.1]
plt.
bar(Games,Rating)
plt.xlabel("Games")
plt.ylabel("Rating”)
plt. show()
(½ mark for each correct statement )
Python statement to save the chart:
plt.savefig("aa.jpg")
(1 mark for the correct statement )
KENDRIYA VIDYALAYA SANGATHAN JAIPUR REGION SAMPLE
QUESTION PAPER SET-5
CLASS: XII SESSION: 2023-24 INFORMATION
PRACTICES (CODE 065)
TIME: 03 HOURS M.M.:70
General Instructions:
1. This question paper contains five sections, Section A to E.
2. All questions are compulsory.
3. Section A has 18 questions carrying 01 marks each.
4. Section B has 07 Very Short Answer type questions carrying 02 marks each.
Internal choice is given in question 19.
5. Section C has 05 Short Answer type questions carrying 03 marks each.
Internal choice is given in two questions (26 and 29).
6. Section D has 02 questions carrying 04 marks each.
Internal choice is given in Question 32 Part iii Only.
7. Section E has 03 questions carrying 05marks
each. internal choice is given in Q 33 and 35.
8. All programming questions are to be answered using Python Language only.

Q SECTION A Marks
1 A computer network created by connecting the computers of your school’s 1
computer lab
is an example of
a. LAN
b. MAN
c. WAN
d. PAN
2 The information /art/work that exists in digital form is called . 1
a. e-work
b. e-asset
c. digital property
d. e-property
3 Legal term to describe the right of creator of original creative or artistic work is 1
called .
a. Copyright
b. Copyleft
c. GPL
d. Trademark
4 If column “salary” of table employee contains the data set (2000,500, 4300,2000, 500) 1
what will be the output after execution of the following query.
SELECT COUNT(DISTINCT SALARY) FROM EMPLOYEE ;
a. 5
b. 0
c. 3
d. 1
5 What will be the output of the following SQL command? 1
SELECT round(192.8562,-1);
a. 192.9
b. 192.8
c. 190
d. 193
6 is an attempt where a hacker tries to divert network traffic to bogus site. 1
a. Phishing scams
b. Spoofing
c. Eavesdropping
d. Pharming
7 Consider the string “Preboard Exam 2023”. Which among the following SQL command 1
will gives the last 4 characters of the string as output?
(i) SELECT right(“Preboard Exam 2023”,4);
(ii) SELECT left(“Preboard Exam 2023”,4);
(iii)SELECT substr(“Preboard Exam 2023”,14,4);
(iv)SELECT substr(“Preboard Exam 2023”,15,4)
a. option (i) b. option (i) and (iii)
c. option (i) and (iv) d. option (ii)
8 If column “AGE” of table STUDENT contains the data set (20,50, 43,12, 73) , what 1
will be
the output after execution of the following query.
SELECT MAX(AGE) – MIN(AGE) FROM
STUDENT;
a. 30
b. 7
c. 61
d. 30
9 The mid( ) function in MySQL is an example of . 1
a. Math function
b. Text function
c. Date Function
d. Aggregate Function
10 Given a Pandas series called p_series, the command which will display the last 4 rows is 1

a. print (p_series.Tail(4))
b. print (p_series.Tails(4))
c. print (p_series.tail(4))
d. print (p_series.Tails(4))
11 In this MySQL operation, the values in the columns of two tables are being joined and 1
compared for equality.
a. compare
b. equi-join
c. matching
d. equal
12 Fill in the blanks : The command used to give a heading to a graph using matplot is 1
(a) plt.show()
(b) plt.plot()
(c) plt.xlabel()
(d) plt.title()
13 Stealing someone else’s intellectual work and representing it as own is called 1
a. Intellectual steal
b. Phishing
c. Plagiarism
d. Pickism
14 In SQL, which function used to display current date and time? 1
a. Date( )
b. Time( )
c. Current( )
d. Now( )
15 is a device which receives a weak signal and regenerates it. 1
a. Browser
b. Gateway
c. Modem
d. Repeater
16 Rajesh received an email warning him of closure of his bank accounts if he did not update 1
his banking information as soon as possible. He clicked the link in the email and entered his
banking information. Next he got to know that he was duped. This is an example of
.
a. Online Fraud
b. Identity Theft
c. Plagiarism
d. Phishing
Q17 and 18 are ASSERTION AND REASONING based questions. Mark the correct choice 1
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
17 Assertion (A):- VoIP makes audio and video calls possible from any internet connected
device having a microphone and speakers.
Reasoning (R):- VoIP is possible if both caller and receiver have the right software and
hardware to speak to one another
18 Assertion (A):- While creating a dataframe with a nested or 2D dictionary, Python 1
interprets the outer dict keys as the columns and the inner keys as the row indices.
Reasoning (R):- A column can be deleted using remove command.
SECTION B
19 Differentiate between Static and Synamic web pages.
OR
What is the significance of add-ons and plug-ins tool in web browsers.
20 The python code written below has syntactical errors. Rewrite the correct code and underline 2
the corrections made.
import pandas as pd
data = {'col1':pd.Series([11, 12, 13, 14, 15], index=['a', 'b', 'c', 'd', 'e']),
'col2':pd.Series([21, 22, 23, 24, 25], index=['a', 'b', 'c', 'd', 'e'])}
df = pd.DataFrame(data)
print(df)
temp = {'col1' : 'Column1',
'col2' : 'Column2'}
df = df.Rename(column = temp)
print(df)

21 Consider SQL table EMP with columns(ename, design, salary): 2


Write suitable SQL queries for the following:
a) To display the name of all employees in uppercase.
b) To display the first three characters of employee name.
22 Consider the code given below and answer the following question: 2
s = pd.Series([10, 20, 30, 40, 50, 60, 70, 80, 90, 100],
index = ['a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j'])
print(s.loc[‘a’ : ’e’]) #Statement 1
print(s.iloc[-5:-1:]) #Statement 2
a) Write the output for statement 1.
b) Write the output for statement 2.
23 What is IPR? Why should it be protected? 2
24 Consider the commands below: 2
import pandas as pd
Lst=[10,20]
ds=pd.Series([10,20])
Here Lst is a list and ds is a series. Both have same values 10 and 20. What will be the
output of the following commands? Justify your answer.
a. print ( lst * 2 )
b. print ( ds * 2 )
25 What is the difference between the order by and group by clause when used along with the 2
select statement? Explain with an example.
SECTION C
26 Write outputs for SQL queries (i) to (iii) based on the table given below:
3
Table : Teacher

T_ID Name Age DOJ Salary Gender


1 Jugal 34 10/01/2017 12000 M
2 Sharmila 31 24/03/2008 20000 F
3 Sandeep 36 12/12/2016 30000 M
4 Sangeeta 35 01/07/2015 40000 F
5 Rakesh 42 05/09/2007 25000 M
6 Shyam 50 27/06/2008 30000 M
Table: Posting

T_ID Dept Place


1 CS Agra
2 History Raipur
3 Maths Delhi
1 History Alwar
3 Maths Jodhpur

a) Select Name, Dept from Teacher T, Posting P where T.T_ID=P.T_ID;


b) Select T.T_ID,left(Name,3) from Teacher T, Posting P where T.T_ID=P.T_ID
c) Where age>35;
d) Select avg(age) ‘average age’ from Teacher where Gender=’F’;
OR
Write suitable queries based on the above table Student.
a) Display Name of Teachers along with their place of posting.
b) Display Department name along T_ID for all male teachers.
c) Display the records of Posting Table as per their Posting Place in alphabetical order.

27 Write a Python code to create a DataFrame ‘Df’ using dictionary of lists for the 3
following
data.
Arnab Ramit Samrid
hi
Maths 90 92 89
Science 91 81 91
Hindi 97 96 88

28 Write MySQL statements for the following: 3


a) Display the structure of EMP table.
b) To insert a new row(1,’Piyush’,’12/12/2017’,’CS’) in
student
table having a structure of columns as (ROLLNO,NAME,DOB,SUB).
29 What do you mean by Identity theft? Explain with the help of an example. 3
OR
What do you understand by Net Etiquettes? Explain any two such etiquettes.
30 Consider the below mentioned table of ‘CLOTH’ 3

Write the SQL commands for the following:


(a) Display first three letters of all values in DESCRIPTION column e.g. ‘FRO’ for
‘FROCK’
(b) Display number of cloths of each Fabric.
(c) Display average price of cloths of each Fabric.
OR
Discuss the significance of Group by and having clause in detail with help of suitable
example.
SECTION D
31 Shreya, a database administrator has designed a database for a clothing shop. Help her by
writing answers of the following questions based on the given table:
Table: Cloth

i. Write a query to display total number of cloths of Green color.


ii. Write a query to display the cloth name along with Day of purchase i.e. Monday,
Tuesday
iii. Write a query to display size-wise total price of cloths.
OR (for option iii only)
Write a query to display name of cloths which are purchased in month of November and
whose price is less than 1200.
32 Mr. Kapoor, a data analyst has designed the dataframe DF that contains data about
Attendance and number of classes of a week as shown below. Answer the following
questions:

A. Predict the output of the following python statement:


a. print(DF[3: ])
b. print(DF.index)
B. Write Python statement to display the data of ‘No_of_classes’ column of
indexes
‘Tuesday’ to ‘Thursday’
OR (for option B only)
Write python statement to calculate No_of_classes * Atten and display it as Total
attendance in a day.
SECTION E
33 Write Suitable query for the following:
i. Display 4 characters from third position of string “Computer Lab”.
ii. Round off the value 2.372 to one decimal place.
iii.Display today’s dayname
iv. Remove the extra spaces from both side of the string “ Python is Dangerous “.
v. Find out remainder after dividing 37 by 10.
OR
Ayush has created following table named STORE:

Help him to Write SQL queries to perform the following task:


i. To increase the quantity of all items by 10.
ii. To remove the record of Items that has Scode as 21.
iii. To add a new column Brand having character data.
iv. To remove Primary key constraint from the column ItemNo.
v. To permanently remove STORE table from the database.
34 Ayurveda Training Educational Institute is setting up its centre in Hyderabad with four 5
specialized departments for Orthopedics, Neurology and Pediatrics along with an
administrative office in separate buildings. The physical distances between these
department buildings and the number of computers to be installed in these departments
and administrative office are given as follows. Answer the queries as raised by them in (i)
to (iv).

Shortest distances between various locations in meters :


a) Suggest the most suitable location to install the main server of this institution to get
efficient connectivity.
b) Suggest the best cable layout for effective network connectivity of the building having
server with all the other buildings.
c) Suggest the devices to be installed in each of these buildings for connecting computers
installed within the building out of the following :
Gateway, switch, Modem
d) Suggest the topology of the network and network cable for efficiently connecting each
computer installed in each of the buildings out of the following :
Topologies: Bus Topology, Star Topology
Network Cable: Single Pair Telephone Cable, Coaxial Cable, Ethernet Cable.
e) Suggest type of network to connect each building Network: PAN,LAN,MAN and WAN
35 Write python code to plot bar chart for subject wise result analysis as shown below: 5

Also give suitable python statement to save this chart as ‘Result.png’


OR
Write Python programming to display a bar chart of the popularity of programming
Languages.
Sample data:
Programming languages: Python, Java, PHP, JavaScript
Popularity: 8.6, 8, 7.8, 6.4
KENDRIYA VIDYALAYA SANGATHAN JAIPUR REGION SAMPLE
QUESTION PAPER
CLASS: XII SESSION: 2023-24 INFORMATION
PRACTICES (CODE 065)
TIME: 03 HOURS M.M.:70
General Instructions:
1. This question paper contains five sections, Section A to E.
2. All questions are compulsory.
3. Section A has 18 questions carrying 01 marks each.
4. Section B has 07 Very Short Answer type questions carrying 02 marks each.
Internal choice is given in question 19.
5. Section C has 05 Short Answer type questions carrying 03 marks each.
Internal choice is given in two questions (26 and 29).
6. Section D has 02 questions carrying 04 marks each.
Internal choice is given in Question 32 Part iii Only.
7. Section E has 03 questions carrying 05marks
each. internal choice is given in Q 33 and 35.
8. All programming questions are to be answered using Python Language only.

Q SECTION A Marks
1 a. LAN 1
2 c. digital property 1
3 a. Copyright 1
4 c. 3 1

5 d. 190 1
6 d. Pharming 1
7 c. option (i) and (iv) 1
8 c. 61 1
9 b. Text function 1
10 c. print (p_series.tail(4)) 1
11 b. equi-join 1
12 (d) plt.title() 1
13 c. Plagiarism 1
14 d. Now( ) 1
15 d. Repeater 1
16 d. Phishing 1
17 a. Both A and R are true and R is the correct explanation for A 1

18 c. A is True but R is False 1

SECTION B
19 In static web pages, Pages will remain same until someone changes it manually.AND In dynamic
web pages, Content of pages are different for different visitors.
OR
1. Add-ons enhance existing software functionality, while plug-ins add new features or
support for additional formats.
2. Plug-ins often require a specific host application, whereas add-ons can work with
various software.

20 The python code written below has syntactical errors. Rewrite the correct code and underline 2
the corrections made.
import pandas as pd
data = {'col1':pd.Series([11, 12, 13, 14, 15], index=['a', 'b', 'c', 'd', 'e']),
'col2':pd.Series([21, 22, 23, 24, 25], index=['a', 'b', 'c', 'd', 'e'])}
df = pd.DataFrame(data)
print(df)
temp = {'col1' : 'Column1', 'col2' : 'Column2'}
df = df.rename(columns = temp)
print(df)

21 Select ucase(ename) from EMP 2


Select left(ename) from EMP
22 f 60 2
g 70
h 80
i 90
23 intellectual property (IP) is the result of human intellect: inventions or works of the mind. 2
Intellectual property and intellectual property rights are essential for any business. IP is
your competitive advantage – it is what differentiates you from your competitor.
24 a. 10 20 10 20 2
b. 20 40
25 Order By: Order by keyword sort the result-set either in ascending or in descending order. 2
This clause sorts the result-set in ascending order by default. In order to sort the result-set in
descending order DESC keyword is used.
SECTION C
26 Name Department
Jugal CS 3
Sharmila History
Sandeep Maths

b.
AVERAGE AGE 33

OR

a) Select Name, Place from Teacher T, Posting P where T. T_ID= P.T_ID;


b) Select Dept, T_ID from Teacher T, Posting P where Gender=M;
c) Select * from Posting Order by Place;

27 import pandas as pd ½ mark D={'Arnab':[90,91,97],'Ramit':[92,81,96],'Samridhi': 3


[89,91,88] } 1 mark
Df=pd.DataFrame(D,index=['Maths','Science','Hindi']) 1 mark
print(Df) ½mark
28 i. Desc emp; 3
ii. Insert into emp values (1, ‘Piyush’, ‘12/12/2017’, ‘CS’);
29 Identity theft is the crime of obtaining the personal orfinancial information of another person 3
for the sole purpose of assuming that person's name or identity to make transactions or use
it to
post inappropriate remarks, comments etc.
Example:
Alex likes to do his homework late at night. He uses the Internet a lot and also sends useful
data through email to many of his friends. One Day he forgot to sign out from his email
account. In the morning, his twin brother, Flex started using the computer. He
used Flex’s
email account to send inappropriate messages to his contacts Or
any other relevant example
1 ½ mark for explaining Identity theft
1 ½ mark for suitable example
OR
Net Etiquettes refers to the proper manners and behavior we need to exhibit while being
online.
These include :
1. No copyright violation: we should not use copyrighted materials without the permission
of the creator or owner. We should give proper credit to owners/creators of open source
content when using them.
2. Avoid cyber bullying: Avoid any insulting, degrading or intimidating
online behavior like repeated
posting of rumours, giving threats online,
posting the victim’s personal information,
or comments aimed to publicly ridicule a victim. Or any other relevant
answer.
1 ½ marks for definitions of Net Etiquettes
30 a) Select substr(description,1,3) from cloth; 3
b) select fabric , count(*) from cloth group by fabric;
c) select fabric , avg(price) from cloth group by
fabric; OR
GROUP BY clause is used in a SELECT statement in combination with aggregate
functions to
group the result based on distinct values in a column.
For example:
To display total number of formal shirt and frock Description from the table CLOTH, we
need to
first group records based on the description then we should count records with the help of
count() function.
1 Mark for each correct answer
SECTION D
31 i. Select color, count(*) from cloths where color =’green’;
ii. Select cname, dayname(dob) from cloth;
iii.Select sum(Price),size from cloth Group by size
; OR
Select cname from cloth where month(dop) = 11 and price < 1200
32 A. (a)
(b)
B. print(df.loc[ 'Tuesday': 'Thursday',
'No_of_classes']) OR
print("Total Attendance in a day:")
print(df['Atten'] * df['No_of_classes'])
SECTION E
33 i. select substr("Computer Lab", 3, 4);
ii. Select round(2.372,1);
iii. Select dayname(now()) ;
iv. Select trim(" Python is Dangerous ");
v. Select mod(37,10);
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
34 a) Administrative Office 5
b)
c) Switch
d) STAR and Ethernet Cable
e) LAN
35 import matplotlib.pyplot as plt 5
sub=['ENGLISH','ACCOUNTS','BST','ECONOMICS','IP']
per=[85,98,70,82,100]
plt.bar(sub,per,color='green', align='center') #1 mark
plt.xlabel("SUBJECT")
plt.ylabel("PERCENTAGE")
plt.title("SUBJECTWISE RESULT
ANALYSIS")
plt.show()
plt.savefig(‘Result.png’)
OR
import matplotlib.pyplot as plt
import numpy as np
programming_languages=['Python', 'Java', 'PHP', 'JavaScript']
popularity=[8.6, 8, 7.8, 6.4]
plt.bar(programming_languages,popularity)
plt.xlabel('Programming_languages', fontsize=10)
plt.ylabel('Popularity', fontsize=10)
plt.title('Programming language Popularity')
plt.show()

Correct program 5 mark


KENDRIYA VIDYALAYA SANGATHAN JAIPUR REGION SAMPLE
QUESTION PAPER(Set-6)
CLASS: XII SESSION: 2023-24 INFORMATION
PRACTICES (CODE 065)
TIME: 03 HOURS M.M.:70
General Instructions:
1. This question paper contains five sections, Section A to E.
2. All questions are compulsory.
3. Section A has 18 questions carrying 01 marks each.
4. Section B has 07 Very Short Answer type questions carrying 02 marks each.
Internal choice is given in question 19.
5. Section C has 05 Short Answer type questions carrying 03 marks each.
Internal choice is given in two questions (26 and 29).
6. Section D has 02 questions carrying 04 marks each.
Internal choice is given in Question 32 Part iii Only.
7. Section E has 03 questions carrying 05marks
each. internal choice is given in Q 33 and 35.
8. All programming questions are to be answered using Python Language only.

Q SECTION A Marks
ABC school has four branches spread across the city. Suggest the type of computer network to
connect all computers of all school branches.
1 a. LAN
1
b. MAN
c. WAN
d. None of these

Spending too much time on the internet can be


a. Internet Passion
2 b. Internet Addiction 1
c. Mental Disorder
d. Cyberphobia
Hacking, when done with positive intent is called
a. White Hacking
3 b. Cracking 1
c. Ethical Hacking
d. Good hacking
SQL function to find the lowest among group of values
a. minimum( )
1
4 b. min( )
c. low( )
d. lowest( )

If a column Date_of_joining contains the data set(‘2022-12-23’, ‘2021-11-15’, ‘2019-11- 17’), what
will be the output after execution of the following query :
Select max(Date_of_joining) from Emp;
5 a. 2022-12-23 1
b. 2019-11-17
c. output cannot be predicted
d. Error as max function does not support date values.

Which of the following is a disadvantage of open source software?


a. Low quality software
6 b. It is customizable 1
c. Might have bugs as not tested critically
d. It is free
.py file extension stands for:
a. pyplot
7 b. Python 1
c. Plot function
d. None of these
SQL applies conditions on the groups through clause.
a. Where
8 b. Order By 1
c. Group By
d. Having
Which of the following MySQL functions removes spaces on the right side of a given string?
a. RTRIM()
9 b. REFT()
1
c. RCHOP()
d. RSPACECUT()

Select the incorrect statement about Series.


a. The size attribute returns no. of elements.
10 b. The shape attribute returns a list of dimensions. 1
c. The count function on the Series object counts all non-NaN values.
d. The hasnans return True if there are any NaN values.
11 In SQL, this function returns the time at which the function executes: 1
a. SYSDATE
b. NOW
c. CURRENT
d. TIME
Which of the following is a module in Python?
a. NumPy
12 b. Pandas 1
c. Matplotlib
d. All of the above
Full form of IPR is:
a. International Property Rights
13 b. Intellectual Property Rights 1
c. Internal Property Rights
d. Internet Property Rights
Which of the following functions is used to extract month part from a date-time value?
a. month( )
14 b. Curmonth( ) 1
c. cutmonth( )
d. None of the above

Incognito mode of browser is used for:


a. public browsing
15 b. Hides contents from web server 1
c. private browsing
d. save cookies
When a user share his/her image in Facebook deliberately, he/she leaves trail of data called as
a. Active Digital Footprint
16 b. Passive Digital Footprint
1
c. E- Footprint
d. Digital Marks

Assertion (A):- A cookie is a text file,containing a string of information,which is


transferred by the website to the browser when we browse it.
Reasoning(R):- Cookies cannot be used to remember the shopping
preference,displaying advertisement of one’s interest.
17
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 but R is False
iv. A is false but R is True.
Assertion (A):- Arun has created a DataFrame df. New column(s) or row(s) can be added
later in this DataFrame, if required.
Reason (R):- In DataFrame, Label Index of row(s) and column(s) can be renamed after creation.
i. Both A and R are true and R is the correct explanation for A
18 1
ii. Both A and R are true and R is not the correct explanation for A
iii. A is True but R is False
iv. A is false but R is True.

SECTION B
What is the difference between static and dynamic web pages?
19 OR
What are the hardware components required for networking?
Carefully observe the following code:
import pandas as pd
xiic = {‘amit’:34, ‘kajal’:27, ‘ramesh’:37}
xiid = {‘kajal’:34, ‘lalta’:33, ‘prakash’:38} result =
{‘PT1’:xiic, ‘PT2’:xiid}
20 df = pd.DataFrame(result) print(df) 2
Answer the following:
i) List the index of the dataframe df
ii) Find the output of the following code : print(df.loc[‘kajal’:’ramesh’])

Write suitable SQL query for the following:


21 i) Display 4 characters extracted from 3rd character onwards from string ‘IMPOSSIBLE’. 2
ii) Display the position of occurrence of string ‘GO’ in the string “LET’s GO to GOA”.
Carefully observe the following code:
import pandas as pd
df = pd.DataFrame([
{'Name':'Sharda', 'Age':29, 'Gender':'Female', 'Designation':'Programmer',
'Salary':50000},
{'Name':'Sunil', 'Age':42, 'Gender':'Male', 'Designation':'Manager', 'Salary':100000},
22 {'Name':'Himesh', 'Age':35, 'Gender':'Male', 'Designation':'Associate', 'Salary':80000}], 2
index = ['E01', 'E02', 'E03'])
print(df)

Answer the following based on above code:


a. Print records of employees whose salary is more than 50000. print no. of
data of the DataFrame df.

Explain any two possible methods of e-waste management.


23 2
OR
Mention any four net étiquettes

What will be the output of the following code:


import pandas as pd
24 2
s = pd.Series(data = ['a', 'b', 'c', 'd'])
print(s < 'c')
A table - ‘Branch’ contains four columns {BranchID, Bname, Location, No_of_Customer}.
it is desired to obtain a list of all branches in Ascending order of Location. In case two or
25 more locations are the same, rows must internally be arranged in descending order of No_of 2
Customer.
Write a query for the above requirement.
SECTION C
Consider the following table BookIssue. Write outputs for SQL queries (i) to (iii) based on the
table.
TransNo BookName MemberNO DateIssue
100 Aladin Ka Chirag ASO14 2010-12-23
101 Marigold Blossom AP1950 2010-12-21
26 102 Panchtantra AD1245 2010-12-23
103 Fairy Tales BC1122 2010-12-17 3
104 Panchtantra BC1123 2010-12-12
107 Marigold NULL NULL
i. Select MID(BookName,2,5) from BookIssue where TransNo IN (101, 103, 104);
ii. Select Left(MemberNo, 3) from BookIssue where MemberNo = BC1123; Select
Count(*) from BookIssue;
Write a Python code to create the DataFrame df using Dictionary of Series with given
data, column and row index label as shown below:
Age Gender Fee

27 Rohan 18 Male 4000 3

Sheetal 17 Female 3500

Suresh 18 Male 4500


Write SQL statement for the following:
28 i. To create a database named HOSPITAL 3
ii. To create a table named ward with the column names wardno int
Primary Key, wardname char(30) Not Null.
Meenakshi celebrated her birthday with her family. She was excited to share the
29 3
moments with her friend Himesh. She uploaded selected images of her birthday party
on a social networking site so that Himanshu can see them. After a few days, Meenakshi had
a fight with Himesh. Next morning, she deleted her birthday photographs from that social
networking site, so that Himesh cannot access them. Later in the evening, to her surprise, she saw
that one of the images which she had already deleted from the social networking site was
available with their common friend Gazal. She hurriedly enquired Gazal "Where did you get this
picture from?". Gazal replied "Himesh forwarded this image a few minutes back".

Help Meenakshi to get answers for the following questions. Give justification for your answers so
that Meenakshi can understand it clearly.

(a) How could Himesh access an image which I had already deleted?
(b) Can anybody else also access these deleted images?
(c) Had these images not been deleted from my digital footprint?

OR
What do you understand by phishing? Why is it a punishable offense? Mention any two ways
to avoid phishing.

Consider the given DataFrame ‘Items’:


Name Price Quantity
0 CPU 7750 15
1 Watch 475 50
2 Key Board 225 25
3 Mouse 150 20
30 3
Write suitable Python statements for the following:
i) Add a column called Sale_Price which is 10% decreased value of Price
ii) Add a new item named “Printer” having price 8000 and Quantity as 10.
iii) Remove the column Quantity

SECTION D
Ms. Anita is a database developer, she has designed the following table to store the data of dresses
sold by a store.
Table : Store
DCode DressName Price Material Launchdate
31 10001 Formal Shirt 785 Cotton 2021-12-23
12524 T-Shirt Round 495 Cotton 2021-11-17
Neck
14528 T-Shirt Polo 250 Denim 2021-08-22
14526 Formal Trouser 999 Tericot 2021-06-14
14756 Shirt Casual 199 Rayon 2021-11-15
Help Anita by writing SQl queries for the following :
i. Print DressName of all dresses, in lowercase.
ii. Find the average price of cotton dresses.
iii. Find the details of the dress that was first launched.
iv. Display minimum price of dress for each Material type.

Master Arman, a student of class XII (IP) has designed a DataFrame df_student as
shown below. Consider this DataFrame and answer the below questions.
Name Age Fees

1 Arman Malik NaN 6000

2 Ram Sharma 18 3500

3 Sandeep Singh NaN 4000


32 4 Lakshita Kumari 17 NaN

5 Mahavir Kumawat 16 4500


A. Predict the output of the following
i. print(df_student.dtypes)
ii. print(df_student.pop('Age'))
B. Display all the rows where Age is not NaN.
OR
Display the difference between Fees and 100 times that of Age.
SECTION E

Write SQL query for the following:


a. Find the value of 173.
b. Display all characters of the string 'Jaipur Region’ in capitals .
c. Find the position of occurrence of ‘ant’ in the string ‘Elephant’.
d. Extract year from the date ‘2022-12-31’.
33 e. What week day was on ‘17-July-2007’?
or
Explain the following SQL functions with an example in each case.
a. ROUND()
b. LCASE()
c. DAY()
d. DATE()
e. SUBSTR()
Open University of India is starting its first campus in Bengaluru with its centre,
34 5
admission office in Bhopal. The university has three major blocks comprising Office
block, Science block and Commerce block is in a 5 km area campus.
As a network expert, you need to suggest the network plan as per (a) to (e) to the authorities keeping in
mind the distance and other given parameters.

Expected wire distance between various locations


Blocks distance

Office Block to Science Block 90 m

Office Block to Commerce Block 80 m

Science Block to Commerce Block 15 m

Bhopal Admission Office to Bengaluru Campus 1400 km


Expected number of computers to be installed at various locations in the university are as
follows:
Blocks Number of Computers

Office Block 10

Science Block 140

Commerce Block 30

Bhopal Admission Office 8


a.Suggest the authorities, the cable layout amongst various blocks inside university campus for
connecting the blocks.

b. Suggest the most suitable place (i.e. block) to house the server for this university with a
suitable reason.

c.Suggest an efficient device form the following to be installed in each of the blocks to connect all
the computers.
(i) Modem (ii) Switch (iii) Gateway
d. Suggest the most suitable (very high speed) service to provide data connectivity between
admission office located in Bhopal and the campus located in Bengaluru form the following
options:
● Telephone line
● Fixed Line dial-up connection
● Coaxial cable network
● GSM
● Leased line
● Satellite connection.

e. University is planning to connect its campus in Bhopal, which is more than 1400 km. Which type
of network will be formed?
Write down the python code to draw the line chart using the diagram given below,also save the
output as a pdf.

35 5

OR
Write a python program to plot three bar charts based on the given data to compare the
performance of Boys,Girls and Transgenders in CBSE class XII examination (year 2019 and
2020)
KENDRIYA VIDYALAYA SANGATHAN JAIPUR REGION MARKING
SCHEME(Set-6)
CLASS: XII SESSION: 2022-23
INFORMATION PRACTICES (CODE 065)
TIME: 3 HRS M M: 70

General Instructions:
1. This question paper contains five sections, Section A to E.
2. All questions are compulsory.
3. Section A has 18 questions carrying 01 marks each.
4. Section B has 07 Very Short Answer type questions carrying 02 marks each.
Internal choice is given in two questions (19 and 23).
5. Section C has 05 Short Answer type questions carrying 03 marks each.
Internal choice is given in two questions (29 and 30).
6. Section D has 03 Long Answer type questions carrying 05 marks each.
Internal choice is given in two questions (31 and 33).
7. Section E has 02 questions carrying 04 marks each.
One internal choice is given in Q 34 and 35 against part c only.
8. All programming questions are to be answered using Python Language only.

Q Part-A Marks
1 Ans b. MAN 1

2 Answer b. Internet Addiction 1

3 Answer c. Ethical Hacking 1

Ans: b min() 1
4

5 Ans : a. 2022-12-23 1

6 Answer C Might have bugs as not tested critically 1

7 Answer B Python 1

8 Ans c : Group by 1

9 Ans: a RTRIM() 1

10 Ans. b. The shape attribute returns a list of dimensions. 1

11 Ans a sysdate 1
12 Ans. d All of the above Ans. b df.index = ['r1', 'r2', 'r3', 'r4', 'r5'] 1

Answer b. Intellectual Property Rights


13 1

14 Ans a month( ) 1

15 Ans. c. private browsing 1

16 Answer a. Active Digital Footprint 1

17 Ans. iii. A is True but R is False 1

Ans. ii. Both A and R are true and R is not the correct explanation for A.
18 1

Part-B
Ans. Static webpage is one with stable content, where every user sees the exact same thing on each
individual page. On the other hand, a Dynamic webpage is one where
contents are displayed as per the user’s input Example:
19 https://www.kvsangathan.nic.in/contact-us (static webpage), 2
https://epay.unionbankofindia.co.in/kvfee/default.aspx (dynamic webpage) OR
Hardware components like router,hub,switch,repeater,gateway,modem etc.

Answer:
i) The index labels of df will include amit, kajal, ramesh, lalta, prakash # 1 mark
20 ii) pt1 pt2 2
kajal 27 34 # ½ mark ramesh 37
NaN # ½ mark
Answer:
21 i) select mid(‘IMPOSSIBLE’, 3, 4); 2
ii) select INSTR(“LET’s GO to GOA”, “GO”);
a. print(df.loc[df.Salary > 50000])
22 2
b. print(df.size)
Answer: feasible methods of e-waste management are reduce, reuse and recycle.
• Reduce: We should try to reduce the generation of e-waste by purchasing the electronic
or electrical devices only according to our need.
23 • Reuse: It is the process of re-using the electronic or electric waste after slight 2
modification.
• Recycle: Recycling is the process of conversion of electronic devices into something
that can be used again and again in some or the other manner.
1 mark for each
OR
Be responsible – Don’t feed the troll, avoid cyber bullying
Be respectful – Respect privacy, respect diversity Be
Precise
or any other possible
½ marks for each.
0 True
1 True
24 2 False 2
3 False
dtype: bool
Select * from Branch order by Location, No_of_Customer desc; 2
marks for correct query.
25 2
1 mark for partially correct query
a. ½ mark for identification of Order by Clause
Part-C
i.
MID(BookName,2,5)

arigo
airy
ancht
ii.
Left(MemberNo, 2)
26
3
BC1
iii.
Count(*)

1 mark or each correct query result. No


marks for partial correct answer..
import pandas as pd
data = {'Rohan':pd.Series([18, 'Male', 4000], index=['Age', 'Gender', 'Fee']),
27 'Sheetal':pd.Series([17, 'Female', 3500], index=['Age', 'Gender', 'Fee']), 3
'Suresh':pd.Series([18, 'Male', 4500], index=['Age', 'Gender', 'Fee'])} df =
pd.DataFrame(data).transpose( )
28 Create database hospital; 3

Create table ward(wardno int not null primary key,wardname char(30) not null);
(a) Images loaded on a social networking site can be saved/downloaded or even
screenshots may be taken.
(b) Yes, from the digital footprint, the government and other agencies can obtain these legally, if
needed.
(c) Images deleted from a social website always remain part of a digital footprint on the
server.

OR
29 1 mark for correct definition 3
1 mark for correct justification
1⁄2 mark each for any two ways to avoid phishing

Phishing is an activity where fake websites or emails that look original or authentic are presented to
the user to fraudulently collect sensitive and personal details, particularly usernames, passwords,
banking and credit card details therefore it is an unlawful act Do not open links received from
untrusted email/website/sms & do not reveal sensitive information on phone call or on social
media platforms.
Answer:
i) Items['Sale_Price']=0.90 * Items[‘Price’]
ii) Items.loc['4']=[“Printer”, 8000, 10]
30 3
iii) Items=Items.drop('Quantity', axis=1) 1
mark for each correct statement

Part-D
i. Select Lower(DressName) from Store;
ii. Select Avg(price) from Store where Material = ‘Cotton’;
31 iii. Select * from store where Launchdate=(select min(Launchdate) from store; iv Select 5
Material, Min(price) from store group by material;
A
i. Name object
Age float64
Fees float64
dtype: object
32 ii. 1 NaN
2 18
3 NaN
4 17
5 16
Name: Age, dtype: float64

B print(df_student[df_student['Age'].notnull()])
OR
print(df_student.loc[:, 'Fees'] - (100 * df_student.loc[:, 'Age']))
a. Select pow(17,3);
b. Select Upper('Jaipur Region’ );
c. Select Instr(‘Elephant’, ‘ant’);
d. Select year( ‘2022-12-31’);
e. Select WeekDay(‘2007-07-17’);

1 mark for each correct query.


½ mark for at least identification of correct function.
or
a. Round() : Rounds number N upto given D no. of digits
select round(4534.9767,0); round(4534.9767,0)
4535

b. Lcase()/Lower(): Converts the alphabets of a given string to lowercase.


Examples :
Select lower('Apple Is reD'); Output:
apple is red
c. Day() ; returns the day part of the date time value supplied as argument.
select day('1978-02-23');
33
+ +
| day('1978-02-23') |
+ +
| 23 |
+ +

d. Date() : returns the date part of date time value supplied as argument.
select date('1978-02-23 00:00:10')
+ +
| date('1978-02-23 00:00:10') |
+ +
e. Substr() : function extracts some characters from a string.
Syntax. SUBSTRING(string, start, length).
Examples:
Select Substring(‘Incredible Rajasthan’, 3, 4);
Cred
½ mark each for correct explanation of the function

½ mark each for Correct example.


Part-E
Ans. a.
34 or any similar layout (with proper justification) 4
b. The most suitable place to house the server is the Science Block as it has a maximum number of
computers. Thus, reducing the cabling cost and increasing efficiency of the network.
c. (ii) Switch is the device to be installed in each of the blocks to connect all the computers.
d. Satellite connection.
e.WAN

import matplotlib.pyplot as plt year=['2015','2016','2017','2018','2019','2020']


visits=[143,161,165,185,232,6.1]
plt.plot(year,visits,'rX--')
plt.xlabel('Year--->')
plt.ylabel('No. of Tourists in crore--->') plt.title('No.
of domestic tourists in India')
plt.savefig('min_temp.pdf')

1/2 Mark for correct import statement


1.5 Mark for correct plotting method and implementation 2
Marks for customization
35 1 Mark for savefig 4

OR
import pandas as pd
import matplotlib.pyplot as plt dict={'Gender':
['Girls','Boys','Transgender'],
2019:[88.7,79.4,83.33],
2020:[92.15,86.19,66.67]}
df=pd.DataFrame(dict)
plt.bar([2019-.2,2020-.2],df.iloc[0,2:4],width=.2,label='Boys')
plt.bar([2019,2020],df.iloc[1,2:4],width=.2,label='Girls')
plt.bar([2019+.2,2020+.2],df.iloc[2,2:4],width=.2,label='Transgender')
plt.xticks(ticks=[2019,2020],labels=['2019','2020'])
plt.ylim(30,100)
plt.title('CBSE Genderwise Pass % of class XII for year 2019 and 2020') plt.legend()
plt.show()

1 Mark for correct import statement


2 Mark for correct plotting method and implementation 2
Marks for customization
KENDRIYA VIDYALAYA SANGATHAN JAIPUR REGION SAMPLE
QUESTION PAPER
CLASS: XII SESSION: 2023-24(Set-7) INFORMATION
PRACTICES (CODE 065)
TIME: 03 HOURS M.M.:70
General Instructions:
1. This question paper contains five sections, Section A to E.
2. All questions are compulsory.
3. Section A has 18 questions carrying 01 marks each.
4. Section B has 07 Very Short Answer type questions carrying 02 marks each.
Internal choice is given in question 19.
5. Section C has 05 Short Answer type questions carrying 03 marks each.
Internal choice is given in two questions (26 and 29).
6. Section D has 02 questions carrying 04 marks each.
Internal choice is given in Question 32 Part iii Only.
7. Section E has 03 questions carrying 05marks
each. internal choice is given in Q 33 and 35.
8. All programming questions are to be answered using Python Language only.

Q SECTION A Marks
The worldwide internet is an example of :
a.LAN
1 b. MAN 1
c.WAN
d. None of these

Rajneesh's continuous online classes and increasing use of computers made his mother
worried about his health. Which of the following points should not be suggested to her
mother to take care of?
2 a.Sit in right posture 1
b. Take breaks and do some physical activity
c.Keep the gadget above your height
d. Periodically rotate and watering eyes

Which of the following is not a cyber crime?


3 a.Illegal download 1
b. Identity theft.
c. Spamming
d. Stealing laptop battery

Which of the following is/are is an aggregate function :


a. lower( ) 1
4 b. Lcase( )
c. count( )
d. All of the above
If a column fee contains the following data set(75, null, null, 100, 200), what will be the output of the
following query.
select count(Fee) from emp;
5 a. 5 1
b. 2
c. 3
d. output cannot be predicted
The software which can be used, copied, distributed and modified freely is
a.Free software
6 b. Free & Open source software 1
c.Shareware
d. Proprietary software

Identify the type of file extension to be used for saving a plot in Data visualization:

a.pdf
7 b. jpg 1
c.png
d. All of the above

Which clause is used to arrange data into logical groups?


a. Having
8 b. Group by 1
c. Order by
d. Logical
Which of the following MySQL, returns the position of the first occurrence of a string in another
string?
9 a. between() 1
b. inposition()
c. instr()
d. Substr()
Predict the output of the following:
10 1
print(pd.Series([1, 2, 3, 4, 5, 6, 7]).shape)
a. (0, 7)
b. (7, 0)
c. (, 7)
d. (7,)
Identify the invalid SQL command:
a) Alter
11 b) Update 1
c) Change
d) Delete
Which one of the following modules is to be imported to create a Series?
a. numpy
12 b. pandas 1
c. matplotlib
d. None of the above
Contract or agreement between user and creator permitting to use creation with limitations is:
a.Copyright
b. License
13 1
c.Mutual Deed
d. None of the above

Which of the following is used to find month name from the given date?
a. Nameofmonth()
14 b. Monthname() 1
c. month()
d. none of the above
Which of the following allows user to view a web page:
a.Microsoft word
15 b. website 1
c.Internet Browser
d. Adobe Reader

While surfing on Internet if your geo location is turned on, than it makes
a.Active digital footprint
16 b. Passive digital footprint 1
c.Active e footprint
d. Passive e footprint

Q17 and 18 are ASSERTION AND REASONING 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 but R is False
iv. A is false but R is True.

Assertion (A):- A cookie is a text file,containing a string of information. Reasoning(R):- The


17 web browser of our computer is used to store and manage cookies. 1

Assertion (A):- The shape attribute of the DataFrame display dimension of the
18 DataFrame. 1
Reason (R):- Dimensions of the Series is 1 and that of the DataFrame is 2.
SECTION B
What is the difference between homepage and web page?
19 OR
What is a communication channel? Name any two communication channels.
Carefully observe the following code:
import pandas as pd L=[['S101','Anushree',65],['S102','Anubha',56],['S104','Vishnu',67],
['S105','Kritika',45]]
df=pd.DataFrame (L, columns=['ID','Name','Marks'])
20 2
print(df)
i. What is the shape of the data frame df?
ii. Name the index and column names of dataframe df?

Consider the given SQL string:


“mangal mishan”
21 Write suitable SQL queries for the following: 2
i. Returns the position of the first occurrence of the substring “an” in the given
string.
ii. To extract first four characters from the string.
Predict the output of the given Python code:
import pandas as pd
data = {'col1' : pd.Series([1, 2, 3], index=['a', 'b', 'c']),
22 2
'col2' : pd.Series([0, 78, -25, 13], index=['a', 'b', 'c', 'd'])}
df = pd.DataFrame(data)
print(df)
List any four Impact of e-waste on humans
23 OR 2
List any four measures to Ensures Good Health of a Computer System
What will be the output of the following code:
24 import pandas as pd 2
s = pd.Series([11, 12, 13, 14, 15], index=['a', 'b', 'c', 'd', 'e'])

print(s.head(-3))
What is the difference between Order by and Group by clause as used in the SQL
25 2
select statement?
SECTION C
Write outputs for SQL queries (i) to (iii) based on the table given below:
Table: Salesman
SNO SNAME SALARY BONUS DATE_OF_JOIN Storetype
A01 ANIL 30000 45.23 29-10-2019 Grocery
A02 DEEPAK 50000 25.34 13-03-2018 Grocery
B03 NIRBHA 30000 35.00 18-03-2017 Hardware
Y
26 B04 UBESH 80000 NULL 31-12-2018 Hardware
C05 AATIF 20000 NULL 23-01-1989 Health 3
C06 KRITIKA 50000 25.34 13-03-2018 Health
E07 ANGEL 30000 35.00 18-03-2017 Software
E08 PAYAL 80000 NULL 31-12-2018 Software

i. Select sum(salary) from salesman where bonus is null and Salary> 20000;
ii. Select max(salary)+min(bonus) from salesman where storetype= ‘Grocery’;
iii. Select length(SNAME) from salesman where bonus is NULL;
A text file named data.txt contains the below data. Write a Python code to create the DataFrame
df using given text file:
27 12345 3
6 7 8 9 10
11 12 13 14 15
Write MySQL statements for the following:
i. To create a database named UNIVERSITY.
ii. To create a table named COLLEGE based on the following
28 specification: 3
Column Name DataType Constraints
CollegeID int Primary Key
CollegeName Char(40)
The school offers wireless facility (wifi) to the Computer Science students of Class XII. For
communication, the network security staff of the school has registered URL schoolwifi.edu. On
17 September 2022, the following email was mass distributed to all the Computer Science
students of Class XII. The email claimed that the password of the students was about to expire.
29 Instructions were given to go to the URL to renew their password within 24 hours. 3

Email content were as follows:-----


—---------------------------------
Subject: Your Password will Expire in 1 Day! Dear
Students,

This mail is meant to inform you that your School/WiFi network password will expire in 24
hours. Please follow the link below to update your password.
Schoolwifii.edu/updatepassword

Thank you
Network Security Staff
—---------------------------------
(a) Do you find any discrepancy in this email?
(b) Is the email an example of cyber-crime? If yes, then specify which type of cyber- crime is
it?
(c) Is there any law in India to handle such an issue? Discuss briefly.
OR
What do you understand by Cyber bullying? Why is it a punishable offense? Mention any two
ways to avoid Cyber bullying.
Mr. Suresh Kumar, a Data Analyst has designed a DataFrame df as shown below. Consider
this DataFrame and answer the following questions.
Populations Hospitals Schools

Delhi 64826459 558 9896

Kolkata 3465975 348 5478

Mumbai 13264987 489 8328


30 3
Chennai 1254896 658 7896

Hyderabad 125486 358 6589

A. Predict the output for below


i. print(df.axes)
ii. print(df.count(0))
B. Display all the City details where the Hospital is more than 450.
C. Display the difference between no. of Hospitals and Schools.
SECTION D
Vipin is an IT student, who is learning SQL. He has created the following table to store the details
of bank customers:
Table: Customer
31
CustomerID CName Date_of_Account BrachID Balance
1451 Sandeep 2017-12-21 10 1500
1211 Ravina 2016-12-22 10 1000
1751 Karan 2015-12-17 20 1200
1522 Tarun 2016-07-15 10 1444
1623 Zubin 2016-07-15 30 20000
1523 Ketaki 2016-01-12 20 12541
Help Vipin to write SQL queries for the following :
i. Display the first five letters of all CName from all the records.
ii. Find the minimum balance.
iii. Display details of customers whose month of date_of_Accout is February.
iv. Find the maximum balance for each BranchID .
Mr. Suresh Kumar, a Data Analyst has designed a DataFrame df as shown below. Consider
this DataFrame and answer the following questions.

32

A. Predict the output for below


i. print(df.axes)
ii. print(df.count(0))
B. Display all the City details where the Hospital is more than 450.
OR
B. Display the difference between no. of Hospitals and Schools.
SECTION E
Write SQL query for the following:
a. Round off 1735.23 such that the result is 1700.
b. Display all characters of the string 'Jaipur Region’ in small alphabet.
c. Find number of characters in the string ‘Elephant’.
d. Extract date from the date-time value ‘2022-12-31 23:25:59’.
e. What is the month name in the date ‘2007’-07-2007’ ?
33 or
Explain the following SQL functions with an example in each case.
a. MOD()
b. UCASE()
c. YEAR()
d. DAYNAME()
e. INSTR()
Sanskar University of Himachal Pradesh is setting up a secured network for its campus
34 5
at Himachal Pradesh for operating their day-to-day office & web based activities. They

Populations Hospitals Schools

Delhi 64826459 558 9896

Kolkata 3465975 348 5478

Mumbai 13264987 489 8328

Chennai 1254896 658 7896

Hyderabad 125486 358 6589


are planning to have network connectivity between four buildings.
Answer the question (a) to (e) after going through the building positions in the campus & other
details which are given below:
The distances between various buildings of university are given as:-
Building 1 Building 2 Distance(in mtrs.)

Main Admin 50

Main Finance 100

Main Academic 70

Admin Finance 50

Finance Academic 70

Admin Academic 60

Number of computers:-
Building No. of Computers

Main 150

Admin 75

Finance 50

Academic 60

As a network expert, you are required to give best possible solutions for the given queries of the
university administration:-
a.Suggest cable layout for the connections between the various buildings,
b. Suggest the most suitable building to house the server of the network of the university,
c.Suggest the placement of following devices with justification:
1. Switch/Hub 2. Repeater
d. Suggest the technology out of the following for setting-up very fast Internet
connectivity among buildings of the university
1. Optical Fiber 2. Coaxial cable 3. Ethernet Cable
e. What type of network out of LAN/MAN/WAN is formed in the above case?
Write down the python code to draw the bar chart using the diagram given below,also save the
output as a svg.

35 5

OR
Write a python program to plot a line chart based on the given data to showcase the trend of loan
applications received by the banks from 2014 to 2018.

Financial Number of Applications


Year Received
2014-15 254420
2015-16 261257
2016-17 215422
2017-18 242433
2018-19 238989
KENDRIYA VIDYALAYA SANGATHAN JAIPUR REGION MARKING
SCHEME(Set-7)
CLASS: XII SESSION: 2022-23
INFORMATION PRACTICES (CODE 065)

Q Part-A Marks
1 mark for correct answer Ans c.
1 1
WAN

1 mark for correct answer


2 Answer c. Keep the gadget above your height 1

1 mark for correct answer Answer d.


3 1
stealing laptop battery

1 mark for correct answer Ans: c 1


4

1 mark for correct answer Ans:


5 1
c.

1 mark for correct answer


6 1
Answer b. Free & Open source software

1 mark for correct answer Ans d


7 1

1 mark for correct answer Ans: b


8 1

1 mark for correct answer Ans: c


9 1

1 mark for correct answer


10 1
Ans. d

1 mark for correct answer


11 1
Ans. c

1 mark for correct answer


12 1
Ans. b

13 1 mark for correct answer 1

Answer b. License
1 mark for correct answer Ans: b
14 1

1 mark for correct answer


15 1
c. Internet Browser

1 mark for correct answer


16 1
Answer b. Passive digital footprint
Q17 and 18 are ASSERTION AND REASONING 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 but R is False
iv. A is false but R is True.
1 mark for correct answer
17 1
Ans. ii. Both A and R are true and R is not the correct explanation for A

1 mark for correct answer


18 1
Ans. iv. A is False but R is True
Part-B
A web page is a document which is available in WWW and can be viewed on the Internet
using a web browser. It can be made up of text, graphics, audio, video etc. A home page is the
default web page which appears first whenever a website opens and allows us to navigate to
another page via menu system or links.
19 2
OR
A communication channel is the medium used to transport information from one network device
to another.
Wired media and wireless media or any two suitable examples.
Answer:
i. Shape of Dataframe is (4,3)
20 2
ii. Name of index are: 0,1,2,3 and column names are: ID, Name, Marks
1 mark for each correct statement
i) 1
21 ii) Select Left(“mangal mishan”,4) 2

col1 col2
a 1 0
22 2
b 2 78
c 3 -25
d NaN 13
1⁄2 mark for each impact
The electrical or electronic devices are manufactured using certain metals and elements like lead,
beryllium, cadmium, Mercury, plastics etc. Most of these materials are difficult to recycle and are
considered to be toxic and carcinogenic. Whenever these enters the human body through
contaminated food, water, air or soil.
Lead affects the kidneys, brain and central nervous system.
Beryllium causes skin diseases, allergies and an increased risk of lung cancer.
Mercury causes respiratory disorders,
cadmium can damage kidneys, liver and bones,
Plastic causes various psychological problems like stress and anxiety.
23 2
OR
1⁄2 mark for each
Regularly clean it to keep the dust off. Use a liquid solution specifically formulated for the cleaning
of electronic screens.
Wipe monitor’s screen often using the regular microfibre soft cloth (the one used for
spectacles).
Keep it away from direct heat, sunlight and put it in a room with enough ventilation for air
circulation.
Do not eat food or drink over the keyboard. Food crumbs that fall into the gaps
between the keys or spilled over liquid can cause issues to the devices.
a 11
24 b 12 dtype: 2
int64
25 Applied on multiple rows. Avg( ),count( ) 2
Part-C
i.
sum(salary)

160000
ii.
max(salary)+min(bonus)
26
3
50025.34
iii.
length(SNAME)

5
5
5
1 mark or each correct query result.
No marks for partial correct answer..
import pandas as pd
27 df = pd.read_table('data.txt', header=None, delim_whitespace=True) print(df) 3

1. Create database UNIVERSITY;


28 2. Create table COLLEGE(CollegeID int Not NULL Primary Key,CollegeName 3
char(40));
1 mark for each correct answer
(a) Yes, there is an extra 'i' in the URL of the email.
(b) It is an example of phishing where using a similar looking URL and site, people are fooled.
(c) Yes. The Information Technology Act, 2000 (also known as ITA-2000, or the IT Act) is the
primary law in India dealing with cybercrime.

OR
1 mark for correct definition
1 mark for correct justification
29 3
1⁄2 mark each for any two ways to avoid Cyber bullying
Any insulting, degrading or intimidating online behavior like repeated posting of rumors,
giving threats online, posting the victim’s personal information, sexual harassment or
comments aimed to publicly ridicule a victim is termed as cyber bullying and due to its
serious implications on the victim it is an offense.
We may prevent cyber bullying by limiting the information we share online, Don’t feed
the troll, Think before sharing credentials with others on an online platform, Keep personal
information safe, avoid unnecessary comments & posts.

A
i. [Index(['Delhi', 'Kolkata', 'Mumbai', 'Chennai', 'Hyderabad'], dtype='object'),
Index(['Populations', 'Hospitals', 'Schools'], dtype='object')]
ii. Populations 5
30 Hospitals 5 3
Schools 5
dtype: int64
B. print(df.loc[df.Sales > 450])
C. print(df.loc[:, 'Schools'] - df.loc[:, 'Hospitals'])
Part-D
i. select left(Cname,5) from customer;
ii. select min(Balance) from customer;
31
iii. select * from customer where month(Date_of_account)=2;
iv. select BranchID, max(Balance) from customer group by BranchId;
A.
i. [Index(['Delhi', 'Kolkata', 'Mumbai', 'Chennai', 'Hyderabad'],
dtype='object'), Index(['Populations', 'Hospitals', 'Schools'],
dtype='object')]
ii. Populations 5
Hospitals 5
Schools 5
dtype: int64
B. print(df.loc[df.Sales > 450])
OR
B) print(df.loc[:, 'Schools'] - df.loc[:, 'Hospitals'])
a. Select Round(1735.23, -2);
b. Select Lcase('Jaipur Region’ );
c. Select length(‘Elephant’);
d. Select Date(‘2022-12-31 23:25:59’);
e. Select MonthName(‘2007-07-17’);

1 mark for each correct query.


½ mark for at least identification of correct function.
or
a. MOD() : Remainder of X/Y
select mod(13,5);
mod(13,5)
3
33 b. Ucase() : converts the string to Upper case..
Examples :
Select ucase('Apple Is reD'); Output:
APPLE IS RED
c. Year() : returns the year part for a given date.
select year('1978-02-23');
+ +
| year('1978-02-23') |
+ +
| 1978 |
+ +
d. DayName() : returns the Day Name corresponding to Date value supplied as
argument.
select dayname('2017-09-14');

+ +
| dayname('2017-09-14') |
+ +
| Thursday |
+ +
e. Instr() : returns the position of the first occurrence of a string in another string.
SELECT INSTR(‘CBSE Exam’, ‘E’);
INSTR(‘CBSE Exam’, ‘E’)
4

½ mark each for correct explanation of the function


½ mark each for Correct example.
a. start/bus based on whichever has lower wiring cost
b. Main
34 c. 1. Switch inside each wing, 2. Repeater wherever the distance is >100 meters
d. 1. Optical Fiber
e. LAN
import matplotlib.pyplot as plt import
numpy as np x=np.array([1,2,3])
state=['Rajasthan','Delhi','Punjab']
eligible=[13.7,2.6,4.1]
paid=[12.9,2.0,3.5]
plt.bar(x-.1,eligible,width=.2,label='Eligible')
plt.bar(x+.1,paid,width=.2,label='Paid')
plt.xticks(ticks=x,labels=state) plt.xlabel('State---
>')
plt.ylabel('No. of people in lacs--->')
plt.title('Health benefit distribution under Ayushman Bharat (2017-2021)') plt.legend()
35 plt.savefig('health.svg') 5

1/2 Mark for correct import statement


1.5 Mark for correct plotting method and implementation 2
Marks for customization
1 Mark for savefig
OR
import matplotlib.pyplot as plt
session=['2014-15','2015-16','2016-17','2017-18','2018-19']
loan_applications=[254420,261257,215422,242433,238989]

plt.plot(session,loan_applications,'r:x')
plt.xlabel('Session--->')
plt.ylabel('Applications--->')
plt.title('Loan applications received by the banks of India') plt.show()

1 Mark for correct import statement


2 Mark for correct plotting method and implementation 2
Marks for customization
KENDRIYA VIDYALAYA SANGATHAN JAIPUR REGION SAMPLE
QUESTION PAPER(Set-8)
CLASS: XII SESSION: 2023-24 INFORMATION
PRACTICES (CODE 065)
TIME: 03 HOURS M.M.:70
General Instructions:
1. This question paper contains five sections, Section A to E.
2. All questions are compulsory.
3. Section A has 18 questions carrying 01 marks each.
4. Section B has 07 Very Short Answer type questions carrying 02 marks each.
Internal choice is given in question 19.
5. Section C has 05 Short Answer type questions carrying 03 marks each.
Internal choice is given in two questions (26 and 29).
6. Section D has 02 questions carrying 04 marks each.
Internal choice is given in Question 32 Part iii Only.
7. Section E has 03 questions carrying 05marks
each. internal choice is given in Q 33 and 35.
8. All programming questions are to be answered using Python Language only.

Q SECTION A Marks
Identify the type of computer network which uses ethernet cables for the connection among
network devices:
1 a. LAN 1
b. MAN
c. WAN
d. None of these
How does excessive use of technology affect physical health?
a. Internet Addiction
2 b. Social Isolation 1
c. Anxiety & Depression
d. a and c
At lunch break Sharman forgot to log off from his email account. Later Sidhesh comes and gets
into Sharman’s account. He starts sending provoking messages to others. Which illegal
3 activity Sidhesh is doing: 1
a. Hacking
b. Cyber Bullying
c. Plagiarism
d. Identity Theft
Which of the following is not a text function:
a. LTRIM( ) 1
4 b. RIGHT( )
c. DAYNAME( )
d. All the above are Text Functions
If a column fee contains the following data set(75, null, null, 100, 200), what will be the output of
the following query.
SELECT COUNT(*) FROM EMP;
5 a. 5 1
b. 2
c. 3
d. output cannot be predicted
Which one of the following operating systems comes under FOSS.
a. Ubuntu
6 b. Unix 1
c. Mac
d. Windows
Which function is used to delete a column in a dataframe:
a. delete
7 b. drop 1
c. alter
d. change
Which clause is used with aggregate functions?
a. GROUP BY
8 b. ORDER BY 1
c. BETWEEN
d. IN
Which of the following functions extracts some characters from a string?
a. MID()
9 b. SUBSTR() 1
c. SUBSTRING()
d. All of the above
Minimum number of arguments required to pass in pandas Series function to create a Series?
a. 0
10 b. 1
1
c. 2
d. 3
Identify the valid numeric function used in SQL:
a.power( )
11 b. mid( ) 1
c.substr( )
d. instr( )

Which one of the following commands is used to install the pandas module in the system?
a. pip install pandas
12 b. install pandas
1
c. pip pandas
d. None of the above

The symbol © signifies:


a. Patent
13 b. Copyright 1
c. Trademark
d. Copyleft
Which MySQL function returns the week day name corresponding to Date value supplied as
argument.
14 a. weekday() 1
b. dayname()
c. dayofweek()
d. weekofday()
A web browser is .
a. A computer that store www files
15 b. A person who likes to look at websites 1
c. A software program that allows to access sites on WWW
d. A computer program to edit word files.
Read following statements:
(i). Digital footprint is nothing but the record of what a person does online.
(ii). Patents are automatically granted to creators and authors. Which of
16 the following is correct? 1
a. (i) True, (ii) False
b. (i) False, (ii) True
c. Both are True
d. Both are False

Q17 and 18 are ASSERTION AND REASONING 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 but R is False
iv. A is false but R is True.

Assertion (A):- A cookie is a text file,containing a string of information,which is


transferred by the website to the browser when we browse it.
17 1
Reasoning(R):- Cookies are used for sending and receiving messages through the internet.

Assertion (A):- df.loc(False) function can be used to find the values where index value is False.
Reason (R):- Boolean indexing is a type of indexing and can be used to retrieve the data.
18 1

SECTION B
Define Web hosting.
19 OR
Explain resource sharing through a computer network.
Write a program to create a series object using dictionary, having 3 movie names as data
with
index labels 2000,2010 and 2020.
20 2
Answer:
import pandas as pd
s = pd.Series([ '1983','salute','kurup'],index=[2000 , 2010 ,2020])
print(s)
Find output of the following code:
21 i. Select mid(“HINDUSTAN”,1,4); 2
ii. Select length(trim(“ Hindustan “));
Carefully observe the following code:
import pandas as pd
data = {'col1':pd.Series([11, 12, 13, 14, 15, 16, 17, 18, 19]),
'col2':pd.Series([21, 22, 23, 24, 25, 26, 27, 28, 29])}
df = pd.DataFrame(data)
22 print(df) 2

Answer the following based on above code:


a. Print all rows except first five of the DataFrame df using negative value with tail() function
Print values of the DataFrame df where all the values are double of their original value

23 List any four measures to ensure Good Health of a Computer System. 2


What will be the output of the following code:
import pandas as pd
24 2
df = pd.Series([1, 2, 3, 4], index = ['a', 'b', 'c'])
print(df)
25 Which clause is used to arrange a query result in ascending or descending order? 2
Write a query, which displays all the records of a table ‘Employee’ in descending order
of the Salary.
SECTION C
Write outputs for SQL queries (a) to (c) based on the table given below: Table :
Student
SNO ENAME DOB Fees
1 AARADHYA 2004-07-01 6000
2 KAVYA 2005-01-10 3500
26 3 NAMAN 2000-08-15 4000 3
4 LAKSHITA 2007-05-10 3500

a. Select max(month(DOB)) from student;


b. Select ENAME from student where year(DOB)=2000;
c. Select Lower(ENAME) from student where SNO IN(2,4);
Write a Python code to create a DataFrame Toppers with appropriate column
headings from the list given below:
27 [[501,'Aromal',’Commerce’],[502,'Greeshma',’Science’],[503,'' Preeti”,’Humanities’], 3
[504,' Rupin ',’Arts’]]

Write MYSQL statements for the following :


28 i. To delete a database FOOD 3
ii. To add a new column in a table FOODITEM with name FOODTYPE with
datatype char(50).
Animesh has recently joined a new office. He does not know many of his colleagues in the new
office. But all of a sudden, someone started posting negative, demeaning comments on his
social networking profile on FB. Every time he goes online, he finds someone keeps posting
negative messages/comments or email while he is online.
OR
29 What do you understand about FOSS? How is it beneficial? Mention any two examples of 3
FOSS.

a. Animesh is going through which situation?


b. What immediate action should he take to handle it?
c. Is there any law in India to help Animesh handle such issues? Discuss briefly.
Consider the given DataFrame ‘Market’:
Name S_Price
0 Apple 220
1 Banana 45
30 3
2 Orange 160
Write suitable Python statements for the following:
i. Add a new item named ‘Guava' having price 175.
ii. Add a column called Margin with the following data: [80,13,50,30].
iii. Remove the column Margin.

SECTION D
Sunita is learning MySQL, she created a table to store the details of Club members.
Table : Club
MemberID MName Sport Membership_Till Fee_Paid
1224 Sandeep GOLF 2022-12-23 1700
1242 Ravina GOLF 2022-10-15 1750
1277 Karan Polo 2023-01-15 3500
1249 Tarun Squash 2022-12-11 1700
31
1266 Zubin Polo 2022-10-15 1800
1275 Ketaki Squash 2023-02-01 3600
Help Sunita to write the following queries-
a. Display the last 5 characters of ‘Membership_Till’ for all records.
b. Find the minimum and maximum fee from the Club table.
c. How many members are playing ‘GOLF’.
d. Find an average fee for each sport.
ABC Enterprises is selling its products through five salesmen (S1 to S5) and keeping the records
of sales done quarterly of each salesman as shown below. One of the employees created a
DataFrame df_sales of the data for further analysis. Consider the DataFrame df_sales and answer
the following.

Q1 Q2 Q3 Q4

S1 11500 20000 18000 26000

S2 19000 23000 25000 27000


32
S3 23000 12000 20000 22000

S4 24000 23000 21000 25000

S5 13000 18000 20000 9000


a. Predict the output for below
i. print(df_sales.columns)
ii. print(df_sales.count(1))
b. Display sales of Quarter 3 for salesman 2 and 5.
OR
b. Display the difference between Q1 and Q2 and also Q3 and Q4.
SECTION E
Write SQL query for the following:
33 a. Find the remainder of 18 divided by 3.
b. Extract a few characters from String 'Sangathan’ such that the result is ’Sang’.
c. Display Day part of the Date value ‘2017-11-19’.
d. Extract Month from the date-time value ‘2022-12-31 23:25:59’.
e. Display number of Characters in String ‘January’.
OR
Explain the following SQL functions with an example in each case.
a. POWER()
b. SUBSTRING()
c. NOW()
d. DAYNAME()
e. TRIM()
ABC Corp. has set up its Branch at Srinagar for its office and web-based activities. It has 4 Zones
of buildings as shown in the diagram:

Branch to Branch Distance is:


Zone X to Zone Z 70m

Zone Z to Zone Y 60m

Zone Y to Zone X 135m


34 5

Zone Y to Zone U 70m

Zone X to Zone U 165m

Zone Z to Zone U 100m

Number of Computers:
Zone X 50

Zone Z 130

Zone Y 40
Zone U 15

a. Suggest the most suitable place (i.e., Zone) to house the ERP and BI Server of this
organization with a suitable reason.
b. Which device will you suggest to be placed/installed in each of these ZONEs to
efficiently connect all the computers within these blocks/centers.
c. Suggest the placement of a Repeater in the network with justification.
d. Which Zone should be selected for the placement of the firewall and why?
e. Which is the most economic type of internet connection for the selected topology?
Write down the python code to draw the bar chart using the diagram given below. Also, save the
output as an image (png).

35 5

OR
Write a python program to plot a bar chart based on the given data to compare the funding
received (in lacs) for the financial year 2016-17 by two national parks of assam for project
‘Save Tiger’.

Financial Year Kaziranga Manas

2015-16 1025.131 259.86

2016-17 622.94 512.585

2017-18 1462.251 439.79


KENDRIYA VIDYALAYA SANGATHAN JAIPUR REGION MARKING
SCHEME(Set-8)
CLASS: XII SESSION: 2023-24 INFORMATION
PRACTICES (CODE 065)

Q.
Part-A Marks
N.
1 a. LAN 1

2 d. a and c 1

3 d. Identity Theft 1

4 c. DAYNAME( ) 1

5 a. 5
1

6 a. Ubuntu 1

7 b. drop 1

8 a. GROUP BY 1

9 d. All of the above 1

1 a. 0
1
0

1 a.power( )
1
1

1 a. pip install pandas d. both b & c


1
2

1 b. Copyright
1
3

1 b. dayname()
1
4

1 c. A software program that allows to access sites on WWW 1

5
1 a. (i) True, (ii) False
1
6

1 iii. A is True but R is False


1
7

1 i. Both A and R are true and R is the correct explanation for A


1
8
Part-B
It is an online service that enables the user to publish websites or web applications on the
internet. When a user signs up for a hosting service, they basically rent some space on a server on
which the user can store all the files and data necessary for the website to work properly.
1 OR
2
9 Resource sharing means one device/software /data accessed by many systems. It allows
sharing of all kinds of programs, equipment and available data to anyone via the network
irrespective of the physical location of the resource.

Error: use DAYNAME() function instead of DAY(). Also, no need of GROUP BY Clause Corrected
2 Query: SELECT DAYNAME('2007-12-23');
2
0 1 mark for identification of error 1
mark for correction in query
2 i. HIND 2
1 ii. 9
a. print(df.tail(-5))
22 2
b. print(df * 2)
● Regularly clean it to keep the dust off. Use a liquid solution specifically formulated for the
cleaning of electronic screens.
● Wipe monitor’s screen often using the regular microfibre soft cloth (the one used
for spectacles).
● Keep it away from direct heat, sunlight and put it in a room with enough ventilation for air 2
23 circulation.
● Do not eat food or drink over the keyboard. Food crumbs that fall into the gaps between
the keys or spilled over liquid can cause issues to the devices.
1⁄2 mark for each
2
ValueError 2
4
Order by,
2
25 Select * from employee order by Salary desc;
Part-C
a. max(month(DOB))

b.
ENAME

NAMAN
2 c. Lower(ENAME)
6 3
kavya
naman

1 mark or each correct query result. No


marks for partial correct answer.

import pandas as pd
Data= [[501,'Aromal',’Commerce’],[502,'Greeshma',’Science’],
2 [503,''Preeti”,’Humanities’], [504,' Rupin ',’Arts’]] 3
7 Toppers=pd.DataFrame(data,columns=['Rno','Name',
'Stream']) 3 1 mark for each correct python statement
Reduce ½ if dataframe name Toppers is not used
2 i. Drop database FOOD; 3
8 ii. Alter table FOODITEM add FOODTYPE char(50);
a. Animesh has become a victim of cyber bullying.
b. He must immediately bring it into the notice of his seniors. He must report this cyber crime
to local police.
c. Yes, The Information Technology Act, 2000 (also known as ITA-2000, or the IT Act) is the
primary law in India dealing with cybercrime and electronic commerce.
1 mark for each correct answer
OR
2 Free and Open Source Software (FOSS) , allows users to not only access but also to modify 3
9 (or improve) them. FOSS has a large community of users and developers who are contributing
continuously towards adding new features or improving the existing features. Ubuntu and
Fedora, Libre Office, Open Office Mozilla Firefox are some of the examples.

1 mark for correct definition 1


mark for correct benefits
1⁄2 mark each for correct example of FOSS
i.
Add a new item named ‘Guava' having price 175.
Market.loc['3']=['Guava',175]
ii.
Add a column called Margin with the following data: [80,13,50,30].
3
30 Market['Margin']=
[80,13,50,30].
iii.
Remove the column Margin.
Market=Market.drop('Margin',axis=1)
Give 1 mark each
Part-D
a. SELECT RIGHT(Membership_Til, 5) FROM Club;
b. SELECT MAX(Fee_Paid), MIN(Fee_Paid) FROM Club;
31 c. SELECT COUNT(*) FROM Club WHERE Sport = ‘GOLF’;
d. SELECT Sport, AVG(Fee_Paid) FROM Club GROUP BY
Sport
a. i. Index(['Q1', 'Q2', 'Q3', 'Q4'], dtype='object')
ii. S1 4
S2 4
S3 4
S4 4
32 S5 4
dtype: int64
b. print(df_sales.loc[['S2', 'S5'], 'Q3'])
OR
b. print(df_sales.loc[:, 'Q1'] - df_sales.loc[:, 'Q2'])
print(df_sales.loc[:, 'Q3'] - df_sales.loc[:, 'Q4'])
a. SELECT MOD(18,3);
b. SELECT LEFT('Sangathan’,4 );
c. SELECT DAY(‘2017-11-19’.);
d. SELECT MONTH( ‘2022-12-31 23:25:59’);
e. SELECT LENGTH(‘January’);

1 mark for each correct query.


½ mark for at least identification of correct function.
5
33 OR
Credi
c. Now(): returns the current date and time, as "YYYY-MM-DD HH-MM-SS" (string) SELECT
NOW();
2022-10-19 18:31:32

d. DayName(): returns the Day Name corresponding to Date value supplied as argument.
SELECT DAYNAME('2017-09-14');
Thursday

e. Trim(): Removes both leading (left) and Trailing (right )Spaces from a given string.
SELECT TRIM(“### India Shining##“);

India Shining

a. Zone Z (Max number of systems)


b. Hub/Switch
c. Repeater will be placed between Z and U (the distance is more, hence the signal will get weak)
34
d. Zone Z (as it is selected as a server)
An economic type of internet connection is broadband/fiber optics.

import matplotlib.pyplot as plt x


= [152,156,161,166,171,176]
f = [3,2,7,6,4,7]
plt.hist(x,bins=[150,155,160,165,170,175,180],weights=f, histtype = 'step', orientation
= 'vertical') plt.xlabel('Height in
cm') plt.ylabel('No. of students')
plt.title('distribution of height of students from class XI') plt.show()

1 Mark for correct import statement


2 Mark for correct plotting method and implementation 2
Marks for customization
35 OR 5
import matplotlib.pyplot as plt
park=['Kaziranga','Manas']
funding=[622.94,512.585]
plt.bar(park,funding,width=.4)
plt.xlabel('Park--->')
plt.ylabel('Funding in lacs--->')
plt.title('Funding received under the project \'Save Tiger\'')
plt.show()
1 Mark for correct import statement
2 Mark for correct plotting method and implementation 2
Marks for customization

You might also like