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

IP

.....

Uploaded by

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

IP

.....

Uploaded by

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

KENDRIYA VIDYALAYA SANGATHAN : BHUBANESWAR REGION

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

17 To skip NaN values in a calculation, you can specify ____________ attribute. 1


a)skipna b) NaN c)NA d)All of These
18 Which of the following charts the y axis represents the frequency? 1
a) Bar b) Line c) Histogram d) None of these
19 Which protocol allow us to have voice calls over the internet?
a) HTTP b) VoIP c) Video Chat d) SMTP
Q20 and 21 are ASSERTION(A) AND REASONING (R) based questions. Mark
the correct choice as
a) Both A and R are true and R is the correct explanation for A
b) Both A and R are true and R is not the correct explanation for A
c) A is True but R is False
d) A is false but R is True
20 Assertion (A): - When DataFrame is created by using Dictionary, keys of dictionary are
set as columns of DataFrame.
Reasoning (R):- Boolean Indexing helps us to select the data from the DataFrames
using a boolean vector.
21 Assertion: The IS NULL operator in SQL checks if a column has a value.
Reason : The IS NULL operator checks if a column contains a specific value.

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:

Column Name Data Type Key


EmpID Numeric Primary Key
Name Varchar
DOB Date
DOJ Date
Salary decimal

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

Write appropriate SQL queries for the following:


i. Display Brand Name wise average amount
ii. List all brand name in the decreasing order of Amount
iii. Display Loan number alongwith customer name
or
4
b. Consider the following Relations:
Table : Book
Book_id Book_name Author_name Publisher Price Type Quantity
C0001 Fast Cook Lata Kapoor EPB 355 Cookery 5
F0001 The Tears William Hopkins First Publi. 650 Fiction 20
T0001 My First c++ Brain & Brooke FPB 350 Text 10
C++ Brain
T0002 works A.W. Rossaine TDH 350 Text 15
F0002 Thunderbolts Anna Roberts First Publ. 750 Fiction 50
Table : issued
Book_Id Quantity_Issued
T0001 4
C0001 5
F0001 2
Write appropriate SQL queries for the following:
i. Display Publisher wise Total Price
ii. List all Author name in Upper Case
iii. Display Book Name alongwith Quantity Issued

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

Help Sambit to complete the code:

import _________________ as plt #Statement-1


week=[1,2,3,4,5]
5
price=[25,30,40,60,20]
plt.bar(__________ , ________,label='Onion') #Statement-2
plt.xlabel('Week')
plt.ylabel(__________) #Statement-3
plt.lagend()
plt.title(_________________) #Statement-4
plt.show()
i. Write suitable code in statement-1 to import the library.
ii. Refers to the graph above, fill the blank of statement 2 to draw a bar graph
iii. Fill in the blank statement-3 to give label to Y-axis as per graph shown
iv. Refer the graph shown above and fill the blank in statement – 4 with suitable title.
34 a. Write SQL query with reference to the table: GAME 4
GID NAME DATEOFGAME UNDER WINNER
1 JUDO 2022-10-17 17 RAMESH
2 BADMINTON 2022-5-18 14 KIRTI
3 JUDO 2022-8-18 19 KAMAL
4 TAEKWONDO 2021-7-20 14 SADIQ
5 CHESS 2021-5-6 17 ALANKAR

i) Display name in lower case.


ii) Display maximum and minimum date of Game .
iii) Display the number of character in each winner
iv) Display sports name and winner in ascending order of Date of Game.
Or
b. Write output of the following SQL queries with reference to the Table: GRADUATE
SLNO NAME STIPEND SUBJECT AVERAGE DIV.
1 KARAN 400 PHYSICS 68.47 I
2 DIWAKAR 450 COMP. Sc. 68.52 I
3 DIVYA 300 CHEMISTRY 62.12 I
4 REKHA 350 PHYSICS 63.75 I
5 ARJUN 500 MATHS 70.47 I
6 SABINA 400 CEHMISTRY 55.25 II
7 JOHN 250 PHYSICS 64.72 I
8 ROBERT 450 MATHS 68.87 I
9 RUBINA 500 COMP. Sc. 62.98 I
10 VIKAS 400 MATHS 57.94 II

i) Select MIN(AVERAGE) from GRADUATE where SUBJECT=”PHYSICS”;


ii) Select LEFT(NAME,3) from GRADUATE where STIPEND>395;
iii) Select NAME,SUBJECT,AVERAGE from GRADUATE where AVERAGE between 68
and 70;
iv) Select ROUND(AVERAGE,1) from GRADUATE where STIPEND > 480;

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

iv. Remove the column CGPA


v. Rename the column name Class to Standard

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

ii. Research Lab as it has more


numbers of computers.
iii. Repeater : Account to Store
Hub : In all Blocks
iv. Firewall
v. LAN
36 Each bit Carry 1 mark 5
37 a. i. select AVG(SCORE) from SPORTS; 5
ii. select RIGHT(LASTNAME) from EMPLOYEE;
iii. select TRIM(ADDRESS) from BIODATA;
iv. select COUNT(*) from FORENSIC;
v. select MIN(SALARY) from EMPLOYEE;
or

b. i. select LEFT(„KendriyaVidyalaya Sangathan‟,5);


ii. select YEAR(„2024-05-18‟);
iii. select MOD(167,19);
iv. select ROUND(457.3854,2);
v. select instr(„Corporate‟, „or‟);
(1 mark each)

You might also like