Class XII
INFORMATICS PRACTICES (065)
Max Marks: 70 Time: 3 hrs.
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 two 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 sub - parts.
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
internal option.
Part – A
Section – I
Attempt any 15 questions from question 1 to 20
1 State whether True or False: 1
(i) A copyright is automatically granted to authors or creators of content.
(ii) In FOSS source code is usually hidden from the users.
2 Fill in the blanks: 1
The command used to give heading to a graph is__________
(i) [Link]()
(ii) [Link]()
(iii) [Link]()
(iv) [Link]()
3 Write the output of following SQL command: 1
select round(49.88);
(i) 49.88
(ii) 49.8
(iii) 49.0
(iv) 50
4 Given a Pandas series named “S1”, the command which will display the last 4 rows 1
is:
(i) print([Link](4))
(ii) print([Link](4))
(iii) print([Link](4))
(iv) print([Link](4))
5 Given the following series S1 and S2 1
Write the command to find the sum of S1 and S2.
6 To prevent unauthorized access to and/or from the network, a system known 1
as____________, can be implemented by hardware and or software.
7 In a DataFrame, Axis = 1 represents the__________elements. 1
8 Which of the following is not a type of network topology: 1
Star, Bus, Ring, Bug, Mesh
9 For web pages where the information is changed frequently, for example, stock 1
prices, weather information which out of the following options would you advise?
(i) Static web page
(ii) Dynamic web page
Justify your answer.
10 The avg() function in MySQL is an example of_____________. 1
(i) Math function
(ii) Text function
(iii) Date Function
(iv) Aggregate Function
11 The practice of taking someone else's work or ideas and passing them off as one's 1
own is known as_________.
12 In Pandas the function used to check for null values in a DataFrame is___________. 1
13 I can keep you signed in. 1
I can remember your site preferences.
I can give you locally relevant content.
Who am I?
14 Which amongst the following is not an example of browser? 1
(i) Chrome
(ii) Firefox
(iii) Avast
(iv) Edge
15 A mail or message sent to a large number of people indiscriminately without their 1
consent is called___________.
16 According to a survey, one of the major Asian country generates approximately 1
about 2 million tons of electronic waste per year. Only 1.5 % of the total e-waste gets
recycled. Suggest a method to manage e-waste.
17 The ____________command can be used to makes changes in the rows of a table in 1
SQL.
18 Write the SQL command that will display the current time and date. 1
19 _________________ network device is known as an intelligent hub. 1
20 Receiving irrelevant and unwanted emails repeatedly is an example of_______. 1
Section – II
Both the case study based questions (21 & 22) are compulsory. Attempt any four
sub parts from each question. Each sub question carries 1 mark.
Consider the following DataFrame “df” and answer any four questions from 21.1 –
21.5
rollno name UT1 UT2 UT3 UT4
1 Prerna Singh 24 24 20 22
2 Manish Arora 18 17 19 22
3 Tanish Goel 20 22 18 24
4 Falguni Jain 22 20 24 20
5 Kanika Bhatnagar 15 20 18 22
6 Ramandeep Kaur 20 15 22 24
21.1 Write down the command that will give the following output. 1
(i) print([Link])
(ii) print([Link]())
(iii) print([Link](axis=1))
(iv) print([Link], axis=1)
21.2 The teacher needs to know the marks scored by the student with roll number 4. Help 1
him to identify the correct set of statement/s from the given options :
(i) df1=df[df[‘rollno’]==4]
print(df1)
(ii) df1=df[rollno==4]
print(df1)
(iii) df1=df[[Link]=4]
print(df1)
(iv) df1=df[[Link]==4]
print(df1)
21.3 Which of the following statement/s will give the exact number of values in each 1
column of the dataframe?
(i) print([Link]())
(ii) print([Link](0))
(iii) print([Link])
(iv) print([Link](axis=’index’))
Choose the correct option:
a) both (i) and (ii)
b) only (ii)
c) (i), (ii) and (iii)
d) (i), (ii) and (iv)
21.4 Which of the following command will display the column labels of the DataFrame? 1
a) print([Link]())
b) print([Link]())
c) print([Link])
d) print([Link])
21.5 The class teacher wants to add a new column, the scores of Grade with the values, 1
‘A’, ‘B’, ‘A’, ‘A’, ‘B’, ‘A’ to the DataFrame. Help her choose the command to do so:
a) [Link] = [’A’,’B’,’A’,’A’,’B’,’A’]
b) df [‘Grade’] = [’A’,’B’,’A’,’A’,’B’,’A’]
c) [Link][‘Grade’] = [’A’,’B’,’A’,’A’,’B’,’A’]
d) Both (b) and (c) are correct
Consider the table STUDENT given below and answer any four questions from 22.1
– 22.5:
RollNo Name Class DOB Gender City Marks
1 Anand XI 06-06-1997 M Agra 430
2 Chetan XII 07-05-1994 M Mumbai 460
3 Geet XI 06-05-1997 F Agra 470
4 Preeti XII 08-08-1995 F Mumbai 492
5 Saniyal XII 08-10-1995 M Delhi 360
6 Neha X 08-12-1995 F Burdwan 324
7 Nishant X 12-06-1995 M Burdwan 429
22.1 State the command that will give the output as : 1
Name
Anand
Chetan
Geet
Priti
(i) select name from student where class=’XI’ and class=’XII’;
(ii) select name from student where not class=’XI’ and class=’XII’;
(iii) select name from student where city=”Agra” OR city=”Mumbai”;
(iv) select name from student where city IN(“Agra”, “Mumbai”);
Choose the correct option:
a) Both (i) and (ii).
b) Both (iii) and (iv).
c) Any of the options (i), (ii) and (iv)
d) Only (iii)
22.2 What will be the output of the following command? 1
Select * from student where gender =”F” order by marks;
22.3 Prachi has given the following command to obtain the highest marks: 1
Select max(marks) from student where group by class;
But she is not getting the desired result. Help her by writing the correct command.
a) Select max(marks) from student where group by class;
b) Select class, max(marks) from student group by marks;
c) Select class, max(marks) group by class from student;
d) Select class, max(marks) from student group by class;
22.4 State the command to display the average marks scored by students of each gender 1
who are in class XI?
(i) Select gender, avg(marks) from student where class= “XI” group by
gender;
(ii) Select gender, avg(marks) from student group by gender where
class=”XI”;
(iii) Select gender, avg(marks) group by gender from student having
class=”XI”;
(iv) Select gender, avg(marks) from student group by gender having class =
“XI”;
Choose the correct option:
a) Both (ii) and (iii)
b) Both (ii) and (iv)
c) Both (i) and (iii)
d) Only (iii)
22.5 Help Ritesh to write the command to display the name of the youngest student? 1
a)
select name,min(DOB) from student ;
b)
select name,max(DOB) from student ;
c)
select name,min(DOB) from student group by name ;
d)
select name,maximum(DOB) from student;
Part – B
Section – I
23 Consider a given Series named “M1”: 2
Term1 45
Term2 65
Term3 24
Term4 89
Write a Python Pandas program to create above series.
24 State any two differences between single row functions and multiple row functions. 2
OR
What is the difference between the order by and group by clause when used along
with the select statement? Explain with an example.
25 Consider the decimal number x with value 8459.2654. Write commands in SQL to: 2
(i) Round it off to a whole number.
(ii) Round it to 2 places before the decimal.
26 Consider the following Series object named “s_amt”: 2
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.
27 Anjali writes the following commands with respect to a table employee having fields, 2
empno, name, department, commission.
Command1 : Select count(*) from employee;
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.
28 Consider the following SQL string: “Preoccupied” 2
Write commands to display:
a) “occupied”
b) “cup”
OR
Considering the same string “Preoccupied”
Write SQL commands to display:
a) The position of the substring ‘cup’ in the string “Preoccupied”.
b) The first 4 letters of the string.
29 Consider the following DataFrame named “classframe” 2
Rollno Name Class Section CGPA Stream
St1 1 Aman IX E 8.7 Science
St2 2 Pritee X F 8.9 Arts
St3 3 Kartikey IX D 9.2 Science
St4 4 Lakshya X A 9.4 Commerce
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).
30 Expand the following terms related to Computer Networks: 2
a) SMTP
b) POP
c) FTP
d) VoIP
31 List any two health hazards related to excessive use of Technology. 2
32 Priyanka is using her internet connection to book a flight ticket. This is a classic 2
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
33 Consider two objects x and y. x is a list whereas y is a Series. Both have values 20, 3
40, 90, 110.
What will be the output of the following two statements considering that the above
objects have been created already
(i) print (x*2)
(ii) print(y*2)
Justify your answer.
34 What do you mean by Identity theft? Explain with the help of an example. 3
OR
What do you understand by Net Etiquettes? Explain any two such etiquettes.
35 Consider the following graph. Write the code to plot it. 3
OR
Draw the following bar graph representing the number of students in each class.
36 3
Consider the following relation named “Vehicles”
Write SQL commands based on above relation to:
(i) Display the average price of each type of vehicle having quantity more
than 20.
(ii) Count the type of vehicles manufactured by each company.
(iii) Display the total price of all the types of vehicles.
Section – III
37 Write a program in Python Pandas to create the following DataFrame batsman from a 5
Dictionary:
Perform the following operations on the DataFrame:
(i) Add both the scores of a batsman and assign to column “Total”.
(ii) Display the highest score in both Score1 and Score2 of the DataFrame.
(iii) Display the DataFrame.
38 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 e.g., 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
A01 Beena Mehta 30000 45.23 29-10-2019
A02 K. L. Sahay 50000 25.34 13-03-2018
B03 Nisha Thakkar 30000 35.00 18-03-2017
B04 Leela Yadav 80000 NULL 31-12-2018
C05 Gautam Gola 20000 NULL 23-01-1989
C06 Trapti Garg 70000 12.37 15-06-1987
D07 Neena Sharma 50000 27.89 18-03-1999
Write SQL queries using SQL functions to perform the following operations:
(i) Display salesman name and bonus after rounding off to zero decimal
places.
(ii) Display the position of occurrence of the string “ta” in salesman names.
(iii) Display the four characters from salesman name starting from second
character.
(iv) Display the month name for the date of join of salesman.
(v) Display the name of the weekday for the date of join of salesman.
39 A company in Mega Enterprises has 4 wings of buildings as shown in the 5
diagram :
Center to center distances between various Buildings:
W3 to W1 - 50m
W1 to W2 - 60m
W2 to W4 - 25m
W4 to W3 - 170m
W3 to W2 - 125m
W1 to w4 - 90m
Number of computers in each of the wing:
W1 - 150
W2 - 15
W3 - 15
W4 - 25
Computers in each wing are networked but wings are not networked The company
has now decided to connect the wings also.
(i) Suggest a most suitable cable layout for the above connections.
(ii) Suggest the most appropriate topology of the connection between the
wings.
(iii) The company wants internet accessibility in all the wings. Suggest a
suitable technology.
(iv) Suggest the placement of the following devices with justification if the
company wants minimized network traffic
(a) Repeater
(b) Hub/switch
(v) The company is planning to link its head office situated in New Delhi
with the offices in hilly areas. Suggest a way to connect it economically.