IP
IP
PRE-BOARD -1 (Nov.-2024)
Session:2024-25
CLASS XII
INFORMATICS PRACTICES (065)
SET- 1
TIME: 3 HOURS M.M.70
General Instructions:
Please check this question paper contains 37 questions.
All questions are compulsory.
The paper is divided into 5 Sections- A, B, C, D and E.
Section A consists of 21 questions (1 to 21). Each question carries 1 Mark.
Section B consists of 7 questions (22 to 28). Each question carries 2 Marks.
Section C consists of 4 questions (29 to 32). Each question carries 3 Marks.
Section D consists of 2 case study type questions (33 to 34). Each question carries 4
Marks.
Section E consists of 3 questions (35 to 37). Each question carries 5 Marks.
All programming questions are to be answered using Python Language only.
In case of MCQ, text of the correct answer should also be written.
SECTION A
QUES MARKS
1 A ___________ is a one-dimensional Data Structure. 1
a) DataFrame b) Series c) Both a and b d) None of above
2 Which of the following is a correct SQL Command - 1
a) UPDATE book SET price AS 50;
b) UPDATE TABLE book SET price = 10;
c) UPDATE book SET price = 10;
d) All are incorrect
3 Which device is used to regenerate the signals over long distance data transmission: 1
a. Switch
b. Modem
c. Repeater
d. None of the above
4 Which keyword is used to arrange the result of order by clause in descending order? 1
a. DSEC
b. ASCE
c. DESC
d. ASC
5 Which of the following does not comes under violation of IPR? 1
a) Plagiarism b) Phishing c) Copyright Infringement d) Illegal Download
6 Which of the following Python statements can be used to select a column Mark from a 1
DataFrameResult ?
(a) df[„Result.Mark‟]
(b) Result[Mark']
(c) Mark[„Result‟]
(d) Result(„Mark‟)
7 The method used for X axis label a line graph is 1
(a) plt.title()
(b) plt.ylabel()
(c) plt.line()
(d) plt.xlabel()
1
8 State whether the following statement is True or False: 1
The qualifier DISTINCT must be used in an SQL statement when we want to eliminate
duplicate rows.
9 If a DataFrame is created using List of Lists,then 1
(a) Each inner list is row of the DataFrame
(b) Each inner list is column of the DataFrame
(c ) Either (a) or (b) is Possible.
(d) None of These
10 Harish has invented a new theory that will revolutionize the healthcare of our country, 1
He wants to protect it legally against unauthorized use. He should take its-
a) Copyright b) Patent c) Trademark d) License
11 Which one of the following functions is used to count the no of rows from the given 1
table in MySQL?
a) CARDINALITY( )
b) COUNT(Column name )
c) COUNT(* )
d) All the above
12 To transmit data for sharing on a network, it has to be divided into smaller chunks 1
called as ___________
a) Bits b) Packets c) Segments d) Load
13 To display First 8 rows of a DataFrame object „df1‟, you may write: 1
a) df1.tail(8)
b) df1.head()
c) df1.tail()
d) df1.head(15)
14 Read the following statements: 1
(i) A copyright is automatically granted to authors or creators of content.
(ii) In FOSS source code is usually hidden.
Which of the following is correct?
a) (i) is True and (ii) is False c) (i) is False and (ii) is True
b) Both are True d) Both are False
15 To get the number dimension of a Series object, _____________ attribute is displayed. 1
a) Index b) size c) itemsize d)ndim
16 What will be the output of the query- 1
SELECT DAYNAME(“1947-08-15”);
a) 1947 b) 6 c) Fridayd) 15
2
SECTION B
QUES MARKS
22 a) Consider a given Series, S1. Write a program in Python Pandas to create the 2
series using dictionary.
Marks
Term1 67
Term2 56
Term3 77
Term4 89
Or
b) How is the Series data structure different from a Data Frame data structure?
23 Priya is using her internet connection to book a train ticket. This is a classic example of 2
leaving a trail of web activities carried by her. What do we call this type of activity?
What is the risk involved by such kind of activity?
24 Consider the string: "KendriyaVidyalayaSangathan". Write suitable SQL queries for the 2
following:
a. To extract and display "laya" from the string.
b. Display the position of the first occurrence of "dya" in the given string.
25 a. What is E-waste Management? Write any 2 advantages of E-waste management. 2
OR
b. What is Plagiarism? Name and explain two types of plagiarism.
26 What is the difference between the order by and group by clause when used along with 2
the select statement. Explain with an example.
27 List any two health hazards related to excessive use of Technology. 2
28 a) Sonali is writing a Python program to create a DataFrame using a list of dictionaries. 2
However, her code contains some mistakes. Rewrite the correct code, and underline
the corrections made.
import Panda as pd
D1 = {'Name': 'Rabin', 'Mark': 25}
D2 = {'Name': 'Piyush', 'Mark': 30}
D3 = {'Name': 'Ayush", 'Mark': 28}
data = (D1,D2,D3)
df = pd.Dataframe(data)
Print(Df)
or
b. Complete the given Python code to get the required output (ignore the dtype
attribute)
Output:
Odisha BBSR
MP Bhopal
WB Kolkata
Code:
import _______ as pd
data = ['________','_______','Kolkata']
indx = [Odisha',MP','WB']
s = pd.Series(_______, indx)
print(_______)
SECTION C
QUES MARKS
29 Identify the type of cybercrime for the following situations: 3
i. A person complains that Rs. 4.25 lacs have been fraudulently stolen from his/her
account online via some online transactions in two days using NET BANKING.
3
ii. A person complains that his/her debit/credit card is safe with him still somebody
has done shopping /ATM transaction on this card.
iii. A person complains that somebody has created a fake profile of Facebook and defaming
his/her character with abusive comments and pictures
30 a) Consider the following DataFrame “INFO” 3
City Hospitals
0 Delhi 189
1 Mumbai 208
2 Kolkata 149
3 Chennai 157
Write python pandas code to create the above dataframe using Dictionary
Or
b) Consider the following Series Ser1 having
COUNTRY GDP
INDIA 9.03
CHINA 10.48
JAPAN 8.10
SRILANKA 5.06
PAKISTAN 3.29
NEPAL 7.19
Write python pandas code to create the above Series using List.
31 i. Write an SQL statement to create a table named EMPLOYEE, with the following 3
specifications:
ii. Write SQL Query to insert the following data in the Employee Table
1, Ramesh Chouhan, 1978/06/19, 2019/05/25, 78500.00
32 a. Consider the following Relations: 3
Table: LOAN
Loan_Number Branch_name Amount
L-170 Downtown 3000
L-230 RedWood 4000
L-650 Downtown 5500
L-150 MidTown 2800
L-450 RedWood 4500
Table: BORROWER
Customer_ID Customer_Name Loan_number
C001 Sambit L-170
C002 Rahul L-650
C003 Smita L-150
C004 Abhishek L-450
C005 Barun L-230
SECTION D
QUES MARKS
33 During a practical exam, a student Sambit has to fill in the blanks in a Python program that 4
generates a bar chart. This bar chart represents the Price of Onion in weekly basis.
Week Price
1 25
2 30
3 40
4 60
5 20
SECTION E
QUES MARKS
35 SHARMA Medicos Center has set up its new center in Dubai. It has four buildings as 5
shown in the diagram given below:
6
Distance between various building are as follows:
As a network expert, provide the best possible answer for the followings:
i. Suggest a cable layout of connections between the buildings.
ii. Suggest the most suitable place (i.e. buildings) to house the server of this
organization and why?
iii. Suggest the placement of the following device with justification:
a) Repeater b) Hub/Switch
iv. Suggest a system (hardware/software) to prevent unauthorized access to or from
the network.
v. What type of Network out of LAN, MAN, WAN formed ?
36 Consider the following DataFrameStudent. 5
Rollno Name Class Section CGPA
Std1 1 Aman IX E 8.7
Std2 2 Preeti X F 8.9
Std3 3 Kartikey IX D 9.2
Std4 4 Lakshay X A 9.4
Write Python statement for the dataFrame Student to:
i. Print the Last Three row of the DataFrame Student.
ii. Display Name column of the Student.
iii. Print the following output:
IX D 9.2
X A 9.4
7
37 a. Write Suitable SQL query for the following: 5
i. To display the average score from the SCORE column(attribute) in the SPORTS
table
ii. To display the last three characters of the LASTNAME column (attribute) in the
EMPLOYEE table.
iii. To display the data from the column (attribute) ADDRESS in the BIODATA table,
after eliminating any leading and trailing spaces.
iv. To display the number of rows of FORENSIC table.
v. To display minimum Salary of SALARY Column (Attribute) from EMPLOYEE table
or
b. Write Suitable SQL query for the following:
i. Display first 5 characters from the word „KendriyaVidyalayaSangathan‟
ii. Display year from the date „2024-05-18‟
iii. Calculate remainder when 167 is divided by 19.
iv. Round the value 457.3854 upto 2-decimal places.
v. Find position of firstoccurrence of „or‟ in the string „Corporate‟
8
KENDRIYA VIDYALAYA SANGATHAN : BHUBANESWAR REGION
PRE-BOARD -I
Session: 2024-25
CLASS XII
INFORMATICS PRACTICES (065)
SET- 1
TIME: 3 HOURS M.M.70
Marking Scheme
SECTION A
QUES MARKS
1 b) Series 1
2 c)UPDATE book SET price = 10; 1
3 c)Repeater 1
4 c.DESC 1
5 b) Phishing 1
6 (b) Result[Mark'] 1
7 (d)plt.xlabel() 1
8 True 1
9 (a) Each inner list is row of the DataFrame 1
10 a) Copyright 1
11 c)Count(*) 1
12 b) Packets 1
13 d)df1.head(15) 1
14 a)(i) is True and (ii) is False 1
15 d) ndim 1
16 c) Friday 1
17 a)skipna 1
18 c) Histogram 1
19 b) VoIP 1
Q20 and 21 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
20 b) Both A and R are true and R is not the correct explanation for A 1
21 c) A is True but R is False 1
SECTION B
QUES MARKS
22 a) ½ mark for importstatement 2
½ mark for creating dictinary
½ mark for creating Series S1
½ mark for printing Series S1
Or
b) Write any two differences carry 1 mark each
23 We call this type of activity as Digital Footprints 2
Risk involved :
It includes websites we visit emails we send, and any information we submit online,
etc., along with the computer‟s IP address, location, and other device specific details.
Such data could be used for targeted advertisement or could also be misused or
exploited.
1 mark for naming the activity
1 mark for mentioning any one risk
24 a) SELECT substr("KendriyaVidyalayaSangathan", 15,4) 2
b) SELECT instr("KendriyaVidyalayaSangathan", “dya”)
1 mark for each correct answer
25 a. 1 marks for correct definition and ½ marks for each advantages. 2
OR
b. 1 marks for correct definition of plagiarism and ½ marks each for types of plagiarism
26 The order by clause is used to show the contents of a table/relation in a sorted manner 2
with respect to the column mentioned after the order by clause. The contents of the
column can be arranged in ascending or descending order.
The group by clause is used to group rows in a given column and then apply an
aggregate function egmax(), min() etc on the entire group.
(any other relevant answer)
1 mark for correct explanation 1 mark for appropriate example
27 1 mark for each correct answer 2
28 a)import pandas as pd 2
D1 = {'Name': 'Rabin', 'Mark': 25}
D2 = {'Name': 'Piyush', 'Mark': 30}
D3 = {'Name': 'Ayush", 'Mark': 28}
data = [D1,D2,D3]
df = pd.DataFrame(data)
print(df)
½ mark for each correction
Or
b) ½ mark for each
SECTION C
QUES MARKS
29 i. Bank Fraud 3
ii. Identity Theft
iii. Cyber Stalking
1 mark for each correct type
30 ½ mark for import statement 3
2marks for correct logic
½ mark for print statement
31 2 marks for Table creation 3
1mark for insert into command
32 For each correct query carry 1 mark 3
SECTION D
QUES MARKS
33 Statement-1 :matplotlib.pyplot 4
Statement-2:week, price
Statement-3:Onion Price
Statement-4:Weekly onion price Chart
34 a. i. Select lower(name) from game; 4
ii. select max(DATEOFJOIN), min(DATEOFJOIN) from GAME;
iii. select length(winner) from GAME;
iv. select NAME,WINNER from GAME order by DATEOFGAME;
or
b. i. min(average)
---------------
63.75
ii. LEFT(NAME,3)
-------------------
KAR
DIW
ARJ
SAB
ROB
RUB
VIK
iii. NAME SUBJECT AVERAGE
------------------------------------------------------
KARAN PHYSICS 68.47
DIWAKAR COMP. Sc. 68.52
ROBERT MATH 68.87
iv. ROUND(AVERAGE,1)
----------------------------
70.5
63.0
(1 mark each)
SECTION E
QUES MARKS
35 i. 5