COMPUTER
COMPUTER
SCHOOL
9th Avenue, I.P. Extension ,Patparganj, Delhi-92
PRE BOARD II EXAMINATION 2023-24
INFORMATICS PRACTICES (065)
Class XII
General Instructions:
1. This question paper contains two parts A and B. Each part is compulsory.
2. Both Part A and Part B have choices.
3. Part-A has 2 sections:
a. Section – I is short answer questions, to be answered in one word or one line.
b. Section – II has two case studies questions. Each case study has 4 case-based sub-
parts. An examinee is to attempt any 4 out of the 5 subparts.
4. Part - B is Descriptive Paper.
5. Part- B has three sections
a. Section-I is short answer questions of 2 marks each in which two questions have internal
options.
b. Section-II is long answer questions of 3 marks each in which two questions have internal
options.
c. Section-III is very long answer questions of 5 marks each in which one question has
question has internal option.
Part - A
Section - I
Attempt any 15 questions from questions 1 to 21
1 State whether True or False : 1
ii. In FOSS source code is usually hidden from the users. _______________
Page 1 of 14
3. Write the output of the following SQL command. 1
select round(49.88);
a. 49.88
b. 49.8
c. 49.0
d. 50
4 Given a Pandas series called Sequences, the command which will display the 1
first 4 rows is __________________.
a. print(Sequences.head(4))
b. print(Sequences.Head(4))
c. print(Sequences.heads(4)
d. print(Sequences.Heads(4))
5 Given the following Series S1 and S2: 1
S1 S2
A 10 A 80
B 40 B 20
C 34 C 74
D 60 D 90
Page 2 of 14
10 For web pages where the information is changed frequently, for example, 1
stock prices, weather information which out of the following options would
you advise ?
Page 3 of 14
19 Write the SQL command that will display the current time and date 1
Section -II
Both the case study based questions (22 & 23 ) are compulsory. Attempt
any four sub parts from each question. Each sub question carries 1 mark .
22 Consider the following DataFrame df and answer any four questions from (i)-
(v)
(i) Write down the command that will give the following output. 1
a. print(df.max)
b. print(df.max())
c. print(df.max(axis=1))
d. print(df.max, axis=1)
(ii) The teacher needs to know the marks scored by the student with roll number 1
4. Help her to identify the correct set of statement/s from the given options :
a. df1=df[df[‘rollno’]==4]
print(df1)
Page 4 of 14
b. df1=df[rollno==4]
print(df1)
c. df1=df[df.rollno=4]
print(df1)
d. df1=df[df.rollno==4]
print(df1)
(iii) Which of the following statement/s will give the exact number of values in 1
each column of the dataframe?
i. print(df.count())
ii. print(df.count(0))
iii. print(df.count)
iv. print(df.count(axis=’index’))
(iv) Which of the following command will display the column labels of the 1
DataFrame?
a. print(df.columns())
b. print(df.column())
c. print(df.column)
d. print(df.columns)
(v) Ms. Sharma, the class teacher wants to add a new column, the scores of Grade 1
with the values, ‘ A’, ‘B’, ‘A’, ‘A’, ‘B’, ‘A’ ,to the DataFrame. Help her
choose the command to do so:
a. df.column=[’A’,’B’,’A’,’A’,’B’,’A’]
b. df [‘Grade’]=[’A’,’B’,’A’,’A’,’B’,’A’]
c. df.loc[‘Grade’]= [’A’,’B’,’A’,’A’,’B’,’A’]
d. Both (b) and (c) are correct
23 Consider the table STUDENT given below:
Page 5 of 14
8 Nishant X 12/6/95 M Moscow 429
a.
Rollno Name Class DOB Gende City Mar
r ks
4 Preeti XII 8/8/95 F Mumbai 492
3 Geet XI 6/5/97 F Agra 470
7 Neha X 8/12/9 F Moscow 324
5
6 Maakhiy XI 12/12/ F Dubai 256
94
b.
c.
Gender Marks
F 256
F 324
F 470
F 492
Page 6 of 14
d.
Gender Marks
F 492
F 470
F 324
F 256
(iii) Prachi has given the following command to obtain the highest marks Select 1
max(marks) from student where group by class;
but she is not getting the desired result. Help her by writing the correct command.
(iv) State the command to display the average marks scored by students of each gender 1
who are in class XI?
Page 7 of 14
Part - B
Section – I
24 Consider a given Series , M1: 2
Marks
Term1 45
Term2 65
index
Term3 24
Term4 89
25 State any two differences between single row functions and multiple row 2
functions.
OR
What is the difference between the order by and group by clause when used
alongwith the select statement. Explain with an example.
26 Consider the decimal number x with value 8459.2654. Write commands in SQL 2
to:
i. round it off to a whole number
ii. round it to 2 places before the decimal.
Table 350
Chair 200
Sofa 800
Stool 150
i. Write the command which will display the name of the furniture having
rent>250.
ii. Write the command to name the series as Furniture.
28 Anjali writes the following commands with respect to a table employee having 2
fields, empno, name, department, commission.
Command1 : Select count(*) from employee;
Page 8 of 14
Command2: Select count(commission) from employee;
She gets the output as 4 for the first command but gets an output 3 for the
second command. Explain the output with justification.
a. “occupied”
b. “cup”
OR
Write commands to :
i. Add a new column ‘Activity’ to the Dataframe
ii. Add a new row with values ( 5 , Mridula ,X, F , 9.8, Science)
Page 9 of 14
33 Priyanka is using her internet connection to book a flight ticket. This is a 2
classic example of 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?
Section -II
34 Cconsider two objects x and y. x is a list whereas y is a Series. Both have 3
values 20, 40,90, 110.
What will be the output of the following two statements considering that the
above objects have been created already
35 What do you mean by Identity theft? Explain with the help of an example. 3
OR
What do you understand by Net Ettiquetes? Explain any two such ettiquetes.
OR
Draw the following bar graph representing the number of students in each
class.
Page 10 of 14
37 A relation Vehicles is given below : 3
Section -III
38 Write a program in Python Pandas to create the following DataFrame batsman 5
from a Dictionary:
Page 11 of 14
3)Display the DataFrame
39 Write the SQL functions which will perform the following operations: 5
i) To display the name of the month of the current date .
ii) To remove spaces from the beginning and end of a string, “ Panorama “.
iii) To display the name of the day eg, Friday or Sunday from your date of birth, dob.
iv) To display the starting position of your first name(fname) from your whole name
(name).
v) To compute the remainder of division between two numbers, n1 and n2
OR
Consider a table SALESMAN with the following data:
SNO SNAME SALARY BONUS DATE OF JOIN
Page 12 of 14
W1 W2
W4
W3
Page 13 of 14
Page 14 of 14