QP-1PB-IP-2024 Set 1
QP-1PB-IP-2024 Set 1
CLASS 12
SUBJECT- INFORMATICS PRACTICES (065)
TIME: 03 HOURS M.M.: 70
General Instructions:
● Please check this question paper contains 37 questions.
● All questions are compulsory. However, internal choices have been provided in some
questions. Attempt only one of the choices in such questions
● 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 21*1=21
11. 1
Manish wants to select all the records from a table named “Students” where
the value of the column “FirstName” ends with an “a”. Which of the following
SQL statement will do this?
a. SELECT * FROM Students WHERE FirstName = ‘a’;
b. SELECT * FROM Students WHERE FirstName LIKE ‘a%’;
c. SELECT * FROM Students WHERE FirstName LIKE ‘%a’;
d. SELECT * FROM Students WHERE FirstName = ‘%a%’;
14. In SQL, the HAVING clause is used to apply filter on groups formed by the 1
clause.
a. order by b. Group by C. From d. all the above
15. Which of the following Python statements is used to import data from a CSV 1
file into a Pandas DataFrame (Note: pd is an alias for pandas)?
(A) pd.open_csv('filename.csv')
(B) pd.read_csv('filename.csv')
(C)pd.load_csv('filename.csv')
(D)pd.import_csv('filename.csv')
16. Which of the following topologies is very efficient and all nodes are connected 1
to a central hub?
(i) Star (ii) Tree (iii) Bus (iv) Ring
17. To compare data values of commission earned by salesmen over a year, which 1
of the following type of graph should preferably be used?
(i) Line (ii) area (iii) bar (iv) scatter
Q-20 and Q-21 are Assertion (A) and Reason (R) Type questions. Choose the
correct option as:
20 Assertion (A): The count(*) will yield a single value while round() will yield 1
number of values equal to the cardinality of the table.
Reason(R): The count(*) is a multiple rows function and round() is a single
row function.
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
21 Assertion (A): We can add two series objects using addition operator (+) or 1
calling explicit function add() .
Reason (R): While adding two series objects index matching is implemented
and missing values are filled with NaN by default..
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 7*2 =14 MARKS
26. Differentiate between Candidate Key and Primary Key in the context of
2
Relational Database Model.
27. Mention two health concerns associated with excessive use of Digital Devices. 2
28. Complete the given Python code to get the required output as: Hyundai 2
import _________ as pd
di = {'Nexon': 'TATA', 'I20':
'Hyundai', 'Swift': 'Maruti Suzuki’,
'Fortuner':'Toyota'}
NP = ___________. Series( _____ )
print(NP[ ___________ ])
OR
The python code written below has syntactical errors. Rewrite the correct code
and underline the corrections made.
import pandas as pd
df={"T":["arushi","Robin","Priya"],"Time":[4,4,3]}
df= pd.DataFrame(df)
print(df)
29. Rakhi's family is replacing their old computer and peripheral with a new one. 3
She decide to throw the old computer in a nearby empty field/plot.
I. Explain any one potential environmental hazard associated with
improper e-waste disposal.
II. Suggest one responsible way to Rakhi's family for proper disposal of
their old computer.
III. Describe the importance of recycling in e-waste management.
30. Write a Python program to create the following DataFrame using a list of
dictionaries.
Course Fee
0 Computer 40000
1 A.I 45000
2 Web Design 35000
3 Networking 30000
OR
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.
Pen 20.0
Pencil 10.0
Eraser 5.0
31. 2+1
Table Name- doctors
Write SQL commands to perform the following tasks:
OR
Consider the following tables GAMES and PLAYER. Write SQL commands for
the statements to (iv) and give outputs for SQL queries.
TABLE : GAMES
33. Class XII student is doing program in python to generate bar chart. help this 4
students to complete the code -
Consider the following program and answer any four question from (i) to (v) :
STUDENT
OR
Aamr is a database designer, has developed a database for a shop. This database
includes a table Grocer whose column are given .
(i) Display Item name along with Month (in number) when it was purchased for
all the items.
(ii) Display Item name along with year in which it was purchased for all the
items.
(iii) Display Item Id, Date of Purchase and day name of week (e.g. Monday) on
which it was purchased for all the items.
(iv) Display the name of the months on which Rice was purchased.
SECTION E
35. Knowledge Supplement Organisation has set up its new centre at Mangalore for its 5
office and web based activities. It has 4 blocks of buildings as shown in the diagram
below:
BLOCK
Block B
A BLOCK
D
BLOCK
C
Black A to Block B 50 m
Block C to Block D 25 m
Block A to Block C 90 m
Number of Computers
Black A 25
Block B 50
Block C 125
Block D 10
37. 5
Write suitable SQL query for the following:
I. To display the average score from the result column (attribute) in the
student table
II. To display the last three characters of the registration_number column
(attribute) in the Vehicles table. (Note: The registration numbers are
stored in the format UP-26-BB-9988
III. To display the data from the column (attribute) username in the Users
table, after eliminating any leading and trailing spaces.
IV. To display the maximum value in the salary column (attribute) of the
Employees table.
V. To add one other column (attribute ) in Student table APAR_ID having
data types integer and size 15 with primary key .
OR