229818964sample Question Paper 2024
229818964sample Question Paper 2024
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 mark each.
4. Section B has 07 Very Short Answer type questions carrying 02 marks each.
5. Section C has 05 Short Answer type questions carrying 03 marks each.
6. Section D has 02 questions carrying 04 marks each.
7. Section E has 03 questions carrying 05 marks each.
8. All programming questions are to be answered using Python Language only.
SECTION A
SECTION B
19. NANDINI MOHTA of The Assembly of God Church School, Purulia is confused about the (2)
given address : http://www.abc.com/main/doc/index.htm
Identify the address and mention its parts.
OR
Name the network devices used for the given purposes :
(a) To convert digital signals to analog and vice versa.
(b) To regenerate the data and voice signals over a network.
20. ADITYA CHOURASIA has created a DataFrame 'df'. Now he wants to remove the column 'Age' (2)
from it and for that he has written the following command :
df = df.drop('Age')
But he is getting error message. Rectify and rewrite the command to help him.
21. Which of the following command(s) will raise error and why? Also rectify the code(s). (2)
(a) UPDATE Emp SET Comm = NULL WHERE Comm = 500;
(b) UPDATE Emp SET Comm = 500 WHERE Comm = NULL;
22. A Python DataFrame named 'DFrame' exists as shown below : (2)
Fruits Price
0 Orange 70
1 Guava 45
2 Apple 90
Based on the above DataFrame answer the following questions :
(a) Write a statement to modify the values of the column Price to : [60 , 40 , 75].
(b) Write a statement to modify the fruit name from Guava to Banana.
23. AASTHA KEDIA is not sure about the differences between a Freeware and an Open Source (2)
Software in terms of their cost and customizability. Help her to understand the facts by
writing the differences.
24. Answer the questions given below : (2)
(a) Why is the following code producing error? In order to make it correct write only one
missing statement.
import matplotlib.pyplot as pl
import numpy as np
set1 = np.arange(6 , 19 , 3)
set2 = np.arange(10 , 60 , 10)
pl.plot(set1 , set2)
pl.show( )
(b) Find out the error(s) in the code given below and rewrite the corrected code underlining
the corrections made.
import Pandas as pd
LOD = [{'a' : 10 , 'b' : 20} , {'a' : 6 , 'b' : 32 , 'c' : 22}]
DF = pd.Dataframe(data = LOD , rows = ['Row1' , 'Row2'] , columns = ['a' , 'b' , 'x' , 'y'])
print(DF)
25. ABHIRUP ROY of BSS School, Purulia has created the following 'BSS' table in MySQL : (2)
Roll Name Stream
11 BHAVESH CHURIWALA Sc
17 ABHINAV JALAN Com
22 ADRIJA PAYIN Sc
26 SANNIDHI JALAN Com
31 MAHI JAIN Com
42 DISHA TEWARY Com
Write down the output of the following commands :
(a) SELECT LENGTH(MAX(Name)) FROM BSS;
(b) SELECT MAX(LENGTH(Name)) FROM BSS;
SECTION C
28. JAHNAVI AGARWAL has created a table 'Payment' with the following data : (3)
ID NAME SALARY BONUS DATEOFJOIN
E05 MUSKAN FOGLA 64000 NULL 2021-09-30
E04 ANNANYA AGARWAL 80000 4000.00 2007-11-31
E03 MUSKAN SARAWGI 72000 NULL 2020-09-18
E02 RAHEE HANSDA 95000 4750.00 2008-03-16
E06 SHYAM PANCHARIA 69000 3450.00 2009-07-25
E07 SHREYA SINGH 55000 NULL 2018-10-30
Based on the above table, write SQL statements for the followings :
(a) Display the names and name of the month from date of joining of those employees who
have joined after 2010.
(b) Display the name, salary and joining date of those employees whose bonus is unknown.
(c) Display first three characters from the name whose name contains more than 12 characters.
29. VINAYAK SARAWGI does not understand Plagiarism. Help him to understand it by defining (3)
Plagiarism. Also write any two ways to avoid Plagiarism.
OR
What is the difference between Copyright and Licensing?
30. Observe the following DataFrame named 'df' and answer the given questions. (3)
Single Double
a 3 6
b 5 10
c 4 8
d 6 12
(a) Write code to change the values of the 3rd row to [7 , 14].
(b) Write code to add a new column named Triple having triplicate values of the column Single.
(c) Write code to change the column labels from ['Single' , 'Double' , 'Triple'] to ['C1' , 'C2' , 'C3'].
SECTION D
31. Consider the following tables 'EVENT' and 'PARTICIPANT'. Write commands for questions (4)
(a) to (c) and output for question (d).
Table : EVENT
ECode EName NoofParticipants PrizeMoney ScheduleDate
104 Shot Put 12 8000 2024-03-23
105 High Jump 10 12000 2024-01-12
106 Relay 100x4 16 10000 2024-02-14
108 Long Jump 12 9000 2024-03-01
109 Discuss Throw 10 15000 2024-02-19
Table : PARTICIPANT
PCode PName ECode
1 SOURAV LODHA 104
2 PLABAN GUPTA 108
3 BHUMI SHUKLA 104
4 ANISH BUDHIA 106
5 CHAHAT PRASAD 109
(a) Write MySQL command to display the name of all events, their schedule date and corresponding
participant names.
(b) Write a MySQL statement to list event codes, prize money and number of participants of those
events which are scheduled in the month of February.
(c) Write MySQL query to show the event name, prize money and player's code for those records
where the number of participants are more than 11.
(d) SELECT EName, PrizeMoney, PCode FROM Event, Participant
WHERE Event.ECode = Participant.ECode AND PName LIKE '%N%';
32. Given below a Python code. Observe the code and answer the questions that follow. (4)
import pandas as pd
L = [ [55 , 44] , [100 , 900 , 400] , [67 , 70] , [414 , 185] ]
dframe1 = pd.DataFrame(L)
print(dframe1)
(a) How many rows and columns will be there in the DataFrame?
(b) Write statement to count the number of rows of the DataFrame.
(c) Write statement to change the value from 70 to 75 in the given DataFrame.
OR
(Option for part (c) only)
Show the DataFrame which will be created after the execution of the given code.
SECTION E
33. NAVANSHU JALAN and ROUNAK AGARWAL, both are very much interested in cricket. They (5)
have created the following 'ODI' table showing the batting records of Indian players in
One Day International cricket matches. Write SQL commands for (a) to (c) and give output
for (d) and (e) on the basis of the table ODI given below :
Table : ODI
PName Matches Innings Notouts Runs Highest Average Hundreds Fifties
Rohit Sharma 262 254 36 10709 264 49.12 31 55
Subhaman Gill 44 44 7 2271 208 61.37 6 13
K L Rahul 75 70 14 2820 112 50.35 7 18
R Ashwin 116 63 NULL 707 65 16.44 0 1
Virat Kohli 292 280 44 13848 183 58.67 50 72
Shreyas Iyer 59 54 6 2383 128 49.64 5 18
(a) To show all the details of the players having scored hundreds and not played matches
less than 100.
(b) To display player's name, matches played, runs scored of those players who have remained
not out and scored more than 5000 runs.
(c) To count the number of players who have scored more hundreds than their not outs.
(d) SELECT PName, Innings, Notouts, Innings – Notouts "Total Outs" FROM ODI
WHERE Runs BETWEEN 2820 AND 14000;
(e) SELECT PName, Runs, Average FROM ODI WHERE Fifties > (SELECT MAX(Hundreds) FROM ODI);
OR
Consider the string "The AGCS Purulia". Write MySQL statements to implement the followings :
(a) To display the first six characters from the given string.
(b) To count the number of characters in the given string.
(c) To display the substring starting from index 4 and ending at index 8.
(d) To display the starting index for the substring "AG".
(e) To change the case of the given string to upper case.
34. PRACHI KATARUKA owns a company named 'PRACHI Enterprises' situated in Mumbai. The (5)
company has four departments in its campus as shown below :
Dep1 Dep3
Dep2 Dep4
Computers in each department are networked but departments are not networked. The company
has now decided to connect the departments also.
(a) Suggest the most appropriate topology for the connections between the departments and
draw the cable lay-out for the network of various departments.
(b) The company wants internet accessibility in all the departments. The suitable and cost-effective
technology for that would be :
(c) Suggest the most appropriate location of the server, to get the best connectivity for the network.
(d) Which device will you suggest for connecting all the computers within each of the departments?
(e) The company is planning to link its company of Mumbai with its head office situated in
New Delhi. Suggest an economical way to connect them and also mention the type of network
that will be formed in this case.
35. Observe the DataFrame 'AGCS' given below and write the answers of the questions that follow. (5)
Name Stream Roll
0 VIDHI SARAWGI Science 27
1 SNEHA JAISWAL Commerce 13
2 GITIKA JAIN Commerce 21
3 ISSIKA NAG Humanities 25
4 SAMPA MAHATO Science 22
(a) Write the code to modify the column labels to Col1, Col2 and Col3.
(b) Write the command that will change the name from ISSIKA NAG to SAMUEL PRODHAN.
(c) What will be the command to create a Series object named 'S1' which will contain all the values
from the Name column of the DataFrame 'AGCS'?
(d) Write code to create a DataFrame named 'Commerce' having only those rows whose stream is
Commerce.
(e) Write code to create a Series named 'S2' having all the values from the Name column of only
those rows whose stream is Science.
OR
Given below a Pandas Series named 'Series1'. Observe it and answer the question that follows.
VI 45
VII 60
VIII 52
IX 49
X 54
(a) Write code to add a new row with label as XI and value as 76.
(b) Write statement to remove the row labelled as VIII.
(c) Write command to change the row label from IX to 9.
(d) Find the output of the given code :
for x in Series1.index :
if Series1[x] < 50 :
print(x , Series1[x] + 5)
(e) Using Series1, write a command that will create the following Series :
45 VI
60 VII
52 VIII
49 IX
54 X