0% found this document useful (0 votes)
126 views11 pages

SET-4_IP_QP_Practice

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)
126 views11 pages

SET-4_IP_QP_Practice

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, Jaipur Region


अभ्यास सेट स./PRACTICE SET No. 04
कक्षा/Class: 12िीं विषय/Subject: Informatics Practices(065)
समय/Time: 3 Hours अविकतम अंक/Max. Marks: 70
सामान्य वनर्दे श/General Instructions:
1. Please check this question paper contains 37 questions.
2. All questions are compulsory. However, internal choices have been provided in some
questions. Attempt only one of the choices in such questions
3. The paper is divided into 5 Sections- A, B, C, D and E.
4. Section A consists of 21 questions (1 to 21). Each question carries 1 Mark.
5. Section B consists of 7 questions (22 to 28). Each question carries 2 Marks.
6. Section C consists of 4 questions (29 to 32). Each question carries 3 Marks.
7. Section D consists of 2 case study type questions (33 to 34). Each question has 4 Marks.
8. Section E consists of 3 questions (35 to 37). Each question carries 5 Marks.
9. All programming questions are to be answered using Python Language only.
10. In case of MCQ, text of the correct answer should also be written.

Q. No. Section – A ( 21 x 1 = 21 Marks ) Marks


1 State ‘True’ or ‘False’ : 1
We need to define index in Pandas Series data structure.
2 Which of the following clauses is used to sort the result set in a SQL statement? 1
a) SORT BY
b) ORDER BY
c) GROUP BY
d) ARRANGE BY
3 Which network device connects dissimiliar networks ? 1
a) Router
b) Gateway
c) Hub
d) Bridge
4 Identify the SQL command used to create a relation (table) in relational database. 1
a) DROP TABLE
b) CREATE TABLE
c) ALTER TABLE
d) GENERATE TABLE

5 E-waste is becoming one of the fastest growing environmental hazards in the 1


world today. If it is not properly treated or disposed of it can cause serious health
hazards, therefore, The ________ has issued a formal set of guidelines for proper
handling and disposal of e-waste.
a) Central Pollution Control Board (CPCB)
b) Department of Information Technology (DIT)
1
c) Electrical and Electronic Equipment (WEEE)
d) Information Communication Technology (ICT)
6 Which of the following statement is incorrect in context of DataFrame ? 1
a) Two dimensional data structure and size is mutable.
b) Can perform arithmetic operations on rows and columns.
c) Homogenous tabular data structure.
d) DataFrames can be created with numpy ndarray.
7 The command used to save a plotted graph is ……………… 1
Consider plt as alias name for matplotlib.pyplot
a) plt.save( )
b) plt.savepicture( )
c) plt.saveimage( )
d) plt.savefig( )
8 State whether the following statement is True or False: 1
In SQL, the aggregate functions AVG,MIN and MAX functions only work on
numeric data.
9 Which among the following module is provided by python to do several operations 1
on CSV files ?
a) py
b) xls
c) csv
d) os
10 Chaaya sets up her own company to sell her own range of clothes on Instagram. 1
What type of intellectual property can she use to show that the clothes are made
by his company.
a) Patents
b) Copyright
c) Trademark
d) Design
11 Which one of the following functions is used to count the no of rows from the 1
given table in MySQL?
a) COUNT(* )
b) CARDINALITY( )
c) COUNT(Column name )
d) All the above
12 ___________ is a device which receives a weak signal and regenerates it. 1
a) Browser
b) Gateway
c) Modem
d) Repeater
13 Select the command to display both row and column index label of dataframe 1
named ‘DF1’ :
( a. ) print ( DF1 . index )
( b. ) print ( DF1 . index ( ) )
( c. ) print ( DF1 . axes )
( d. ) print ( DF1 . axes ( ) )

2
14 Mr. Manoj who is a business man by profession was constantly receiving abusive 1
emails Identify the type of crime for the above situation/incident happened to him?
a) Hacking
b) Phishing
c) Cyber bullying
d) Cyber stalking
15 To extract the first three rows and three columns of a data frame named ‘df1’ 1
which of the following is True :

( a. ) df1 . iloc [ 0 : 2 , 0 : 2 ]
( b. ) df1 . iloc [ 0 : 3 , 0 : 3 ]
( c. ) df1 . iloc [ 1 : 3 , 1 : 3 ]
( d. ) df1 . iloc [ 1 : 4 , 1 : 4 ]
16 1
Match the following SQL functions/clauses with their descriptions:

SQL Function Description


P. MIN() 1.Removes all leading and trailing spaces from a string
Q. SUBSTR() 2. Returns the minimum value in a column.
R. TRIM() 3. Removes all duplicate data from a column.
S. DISTINCT() 4. Extracts a portion of a string.
A. P-2, Q-4, R-3, S-1
B. P-2, Q-4, R-1, S-3
C. P-4, Q-3, R-2, S-1
D. P-4, Q-2, R-1, S-3
17 Nitin has written the following code to create a DataFrame with boolean index: 1
import pandas as pd
df=pd.DataFrame(data=[5,6,7], index=[true,false,True])
print(df)
While executing the code, he is getting an error, help him yo rectify the error in
code:
a) df=pd.DataFrame(data=[5,6,7], index=[true,false,true])
b) df=pd.DataFrame(index=[true,false,True],data=[5,6,7])
c) df=pd.DataFrame(data=[5,6,7], index=[True,False,True])
d) df=pd.DataFrame(index=[True,False,True],data=[5,6,7])
18 In order to draw charts in Python, which of the following statement will be used: 1
a) import pyplot.matplotlib as pl
b) import matplotlib.pyplot as plt
c) import matplotlib.pyplot as plt
d) import pyplot from matplotlib as plt
19 Which among the following is not the feature of STAR Topology? 1
a) All nodes are connected to a central hub
b) Requires less cable length than bus topology.
c) If the central hub fails then the whole network fails.
d) Dependency on central hub is more.

3
Q-20 and Q-21 are Assertion ( A ) and Reason type questions. Choose the
correct options as :
a) Both Assertion ( A ) and Reason ( R ) are True, and Reason ( R ) is the
correct explanatiion of Assertion ( A ).
b) Both Assertion ( A ) and Reason ( R ) are True, but Reason ( R ) is not
the correct explanatiion of Assertion ( A ).
c) Assertion ( A ) is True, but Reason ( R ) is False.
d) Assertion ( A ) is False, but Reason ( R ) is True.
20 Assertion ( A ) : A Series object comprises a set of data and their indices in two 1
separate 1D Arrays.
Reason ( R ) : The indices are always implicit and cannot be repeated in the
same array.
21 Assertion ( A ) : Constraints are some restrictions enforced on the columns of a 1
relation.
Reason ( R ) : They ensure the accuracy and reliability of the data in a database.
It may be a Column Constraint or a Table Constraint.
Q. No. Section – B ( 7 x 2 = 14 Marks ) Marks
22 (A) What will be the output of the following code : 2

>>> import pandas as pd


>>> Ser1 = pd.Series ( data = [ 97 , 27 , 55, 72 ] )
>>> print ( Ser1 > 70 )
OR
(B) Write a program to create a series object using a dictionary that stores the
number of Kendriya Vidyalayas in each city of cities of your state.
Note: Assume some cities like AGRA, JHANSI, MATHURA, NOIDA having 4, 3,
5, 4 KVs respectively and pandas library has been imported as mypandas.
23 What do you understand by plagiarism? Why is it a punishable offence? 2
Mention any two ways to avoid plagiarism.

24 Consider the following SQL string ‘KVSANGATHAN’. Write suitable SQL 2


commands for the following:
i. To extract the position of substring ‘SAN’ from the given string.
ii. To display the first four letters of the string.
25 (A) Explain the terms Web Site and Web Server. 2
OR
(B) Mention any four advantages of networking.

26 What do you mean by composite Primary Key ? Explain with suitable example. 2
27 Explain any two ways in which technology can help students with disabilities. 2
28 (A) Write a Python program to create a DataFrame from the given table : 2

Name Age Designation

4
SAJJAN 20 SALESMAN
SUNIL 37 MANAGER
KAPIL 28 CLERK
OR
(B) Complete the given Python code to get the required output as: Rajasthan

import _________ as pd
di = { 'Corbett' : 'Uttarakhand', 'Sariska' : 'Rajasthan', 'Kanha' : 'Madhya Pradesh’,
'Gir' : 'Gujarat' }
NP = ___________ . Series( _____ )
print ( NP [ ___________ ] )

Q. No. Section – C ( 7 x 2 = 14 Marks ) Marks


29 Sourabh, recently started using his social media account. Within a few days, he 1x3
befriends many people he knows and some that he does not know. After some
time, He starts getting negative comments on his posts. He also finds that his
pictures are being shared online without his permission.

Based on the given information, answer the questions given below :

( a. ) Identify the type of cybercrime he is a victim of.


( b. ) Under which act, he can lodge a complaint to the relevant authorities.
( c. ) Suggest him any two precautionary measures which he should take in future
while being online to avoid any such situations.
30 (A) Consider the following DataFrame “HOSPITAL” 1x3
City Hospitals schools
0 Delhi 189 7916
1 Mumbai 208 8508
2 Kolkata 149 7226
3 Chennai 157 7617
Write python pandas code to create the above dataframe HOSPITAL using list of
dictionaries.
OR
(B) Write a Python Program to create a Pandas Series as shown below using a
dictionary. Note that the left column indicates the indices and the right
column displays the data.
A MANGO
B GRAPES
C APPLE
31 (A) Write an SQL statement to create a table named ‘cricket’ with the following 2+1
5
specifications :

Table : cricket
Column Name Data Type Key
Batsman_ID varchar( 5 ) Primary Key
Batsman_name varchar( 12 )
innings int ( 3 )
Runs_scored int ( 6 )
average float

(B) Write SQL statement to add a new record in the table ‘cricket’ with the
following data :

( ‘C201’ , ‘Rahul Dravid’ , 50 , 2800 , 62.22 )

32 (A) Consider a Table VAHAN given below as: 3

Write suitable SQL queries for the following:


i. Display year wise highest price
ii. Display company name along with their year in decreasing order of their price.
iii. Display sum of quantities available and number of cars available year wise.
OR
(B) Consider the below two relations FLIGHTS and BOOKING.
Write appropriate SQL queries for the following:

i. Display the company-wise total number of flights.

6
ii. Display the name of all the passengers who are travelling to MUM in
uppercase.
iii. Display the Passanger names, source, destination along with their
corresponding flight model.
Q. No. Section – D ( 2 x 4 = 8 Marks ) Marks
33 Shiwani is studying in Class – XII in a school and during the study of “Plotting with 4
Pyplot”, she develop a program to create a horizontal bar chart as per the data
given. Help her to complete the program by supplying the missing statements :

import ……………….. as plt # Statement – 1


y = [ 'one', 'two', 'three', 'four', 'five' ]

# getting values against each value of y


x = [ 5, 24, 35, 67, 12 ]
……………… ( y, x ) # Statement – 2

# setting label of y-axis


…………..("pen sold") # Statement – 3

# setting label of x-axis


plt.xlabel( ‘price’ )
……………………………….. # Statement – 4
plt.show()

( I ) Write the suitable code for the import statement in the blank space in the line
marked as Statement – 1.
( II ) Write the Python statement in place of Statement – 2 to create the above
7
horizontal bar chart.
(III) Fill in the blanks in Statement – 3 with the name of the function to set the
label on y – axis.
( IV) Write the Python statement to set the title of the chart as per the given figure.

34 (A) Rahul is a Vehicle Designer works in an MNC. He is analysing the 4


architecture of different vehicles and their prices. Help him to solve the queries
based on the following table ‘vehicle’.
Relation : vehicle
v_no Type Company Price Quantity
AW125 Wagon Maruti 250000 25
J0083 Jeep Mahindra 4000000 15
S9090 SUV Mitsubishi 2500000 18
M0892 Mini Van Datsun 1500000 26
W9760 SUV Maruti 2500000 18
R2409 Mini Van Mahindra 350000 15

Write SQL commands to :


( a. ) Display the average price of each type of vehicle having total quantity more
than 20.
( b. ) Count the number of type of vehicle manufactured by each company.
( c. ) Display the total price of all the types of vehicles.
( d. ) Display the unique ‘Type’ of vehicle.

OR
(B) Consider the following tables ‘CABHUB’ and ‘CUSTOMER’ and write the
output of the following SQL queries :
Table : CABHUB
Vcode VehicleName Make Color Capacity Charges
100 Innova Toyota White 7 15
102 SX4 Suzuki Blue 4 14
104 C Class Mercedes Red 4 35
105 A-Star Suzuki White 3 14
108 Indigo Tata Silver 3 12

Table : CUSTOMER
CCode CName Vcode
1 Hemant Sahu 101
2 Raj Lal 108
3 Feroza Shah 105
4 Ketan Dhal 104

( a. ) SELECT VehicleName
FROM CABHUB
8
WHERE Color = ‘WHITE’ ;

( b. ) SELECT VehicleName, Make, capacity


FROM CABHUB
ORDER BY Capacity ;

( c. ) SELECT max(Charges), sum(Capacity)


FROM CABHUB ;

( d. ) SELECT Cname, VehicleName


FROM CUSTOMER, CABHUB
WHERE CUSTOMER.Vcode = CABHUB.Vcode ;

Q. No. Section – E ( 3 x 5 = 15 Marks ) Marks


35 “Sonali Creations”, a start – up fashion house set up its main centre at 5
Ahmedabad, Gujarat for its dress designing, production and dress supplying
activities. It has four blocks of building.

A
(Admin
Block)

D (Design P (Productiion
Block) Block)

S (Supply
Block)

Distance between the various blocks is as follows :


Block Distance
A to D 50 m
A to P 60 m
A to S 110 m
D to S 60 m
P to S 50 m
P to D 160 m

9
The number of computers in each block :
Block No. of Computers
Block A 20
Block D 80
Block P 15
Block S 8

Based on the above specifications, answer the folowing questions :


( a. ) Suggest the topology which should be used to efficiently connect various
blocks of buildings within Ahemedabad centre for fast communication. Also, draw
the cable layout for the same.
( b. ) Suggest the most suitable building in the Ahmedabad Office to install the
server. Also, give reason to justify your answer.
( c. ) Suggest the placement of the following devices with justification :
 Repeater
 Hub / Switch
( d. ) Out of LAN, MAN and WAN, which type of network will be formed, if we
interrconnect different computers of the campus? Justify your answer.
( e. ) Nowadays, video conferencing software is being used frequently by the
company to discuss the product details with the clients. Name any one video
conferencing software.

36 Consider the given data frame named ‘stud’ : 5

Class Fees
0 X 2500
1 XI 3000
2 X 2500
3 XII 4000

Write suitable Python statements for the following :

I. Add a column named ‘Section’ with the data : [ ‘P’ , ‘Q’ , ‘R’ , ‘S’ ].
II. Add a new ‘Class’ named ‘VIII’ having fees 1800.
III. Remove the column ‘Section’.
IV. Display name of all classes.
V. Rename the column ‘Fees’ to ‘Registration Fee’.
37 (A) Write suitable query for the following : 5
( a. ) To display the ‘emp_name’ and ‘salary’ of all employees in descending
order of ‘salary’ column in the ‘employee’ table.
( b. ) Write a query to display name of the month for date 01 – 07 – 2024.
( c. ) Write a query to remove leading ‘@’ characters from the string
‘@@@Science@@@’.
10
( d. ) Write a query to concatenate ‘name’ and ‘class’ columns of the ‘student’
table having their ‘age’ (column name) as 20 or 22 ;
( e. ) Rohan’s Date of Admission in the School is ‘2020–04–12’. Write an SQL
Query to extract only year from his Date of Admission.
OR
(B) Write suitable SQL query for the following :
( a. ) Calculate the remainder when 232 is divided by 13.
( b. ) Display the number of characters in the word ‘Informatics Practices’.
( c. ) Round off value 105.243 to nearest ten’s.
( d. ) Display 7 characters extracted from 5th left character onwards from string
‘Informatics Practices’.
( e. ) Display the position of occurrence of string ‘for’ in string ‘Information
is for knowledge’.

11

You might also like