question _paper set(IP)
question _paper set(IP)
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
4 a. Date
1
b. Integer
c. Text
d. All of the above
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
Code, Name, Salary, Deptcode. He wants to display maximum salary Department wise. Which of the
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
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)
: Student
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]]
,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
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
SECTION E
34 5
Q SECTION A Marks
1 Ans:- (a) LAN 1
Ans:- © Text
4 1
Ans:- b (0.5)
5 1
Ans:- (a) 0
9 1
10 Ans:- (c ) pd.head(2) 1
13 Ans (c ) Trademark 1
14 Ans ( c) substr( ) 1
15 Ans (c ) Hyperlink 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]
32 Nirmala Bikaner
ii df.drop(5)
iii df[‘Commission’]=df[‘Sales’]*0.10
OR
iii) df.to_csv(“E:\sales.csv”)
SECTION E
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
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.
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 ?
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
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’]]
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:
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
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
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)
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)
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")
Q SECTION A Marks
Which type of computer network formed from personal devices.
a.LAN
1 b. MAN 1
c.WAN
d. PAN
a) Date
b) Integer 1
4
c) Text
d) All of the above
mod(12,3);
5 a) 2 1
b) 4
c) 0
d) The query will produce error
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
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( )
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
31
32
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
Ans:- ( c) 0
5 1
9 Ans:- b) ROJAIPUR 1
11 Ans:- (c ) date 1
12 Ans:- (d ) 1
13 Ans:- © Spamming 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
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.
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:
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)
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
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
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)
b.
AVERAGE AGE 33
OR
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
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.
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’])
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.
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
Office Block 10
Commerce Block 30
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
Ans: b min() 1
4
5 Ans : a. 2022-12-23 1
7 Answer B Python 1
8 Ans c : Group by 1
9 Ans: a RTRIM() 1
11 Ans a sysdate 1
12 Ans. d All of the above Ans. b df.index = ['r1', 'r2', 'r3', 'r4', 'r5'] 1
14 Ans a month( ) 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(*)
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’);
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
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()
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
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 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):- 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?
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
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
32
Main Admin 50
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.
Q Part-A Marks
1 mark for correct answer Ans c.
1 1
WAN
Answer b. License
1 mark for correct answer Ans: b
14 1
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
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’);
+ +
| 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
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()
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
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):- 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
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
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’.
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
1 a. 0
1
0
1 a.power( )
1
1
1 b. Copyright
1
3
1 b. dayname()
1
4
5
1 a. (i) True, (ii) False
1
6
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
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.
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