Sample Question Paper Set-1
Sample Question Paper Set-1
CLASS XII
INFORMATICS PRACTICES (065)
TIME: 3 HOURS M.M.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 carries 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.
SECTION A
1. Which among the following network topologies has the highest transmission speed ? 1
i. LAN
ii. WAN
iii. MAN
iv. Both LAN and WAN have equal transmission speeds.
2. The practice of taking someone’s work or ideas and passing them off as one’s own is known as 1
.
i.Identity Theft ii. Spamming iii. Hacking iv. Plagiarism
3. Which of the following constitute e-waste? 1
i. Discarded computers ii. Damaged printers iii. Useless CDs iv. All of the above
4. Which is the subset of SQL commands used to manipulate Oracle Database Structures, 1
including tables?
i. Data Definition Language(DDL) ii. Data Manipulation Language(DML)
iii. Both of above iv. None
5. The SQL statement: 1
SELECT SUBSTR(‘abcdefghij’, INSTR(‘123321234,’2’,3,2),2 FROM DUAL;
Prints
(A) gh (B) 23 (C) bc (D) ab
6. Samyra’s continuous online classes and increasing use of computer made his mother worried 1
about his health. Which of the following point should not be suggested her mother to take care
of ?
(A) Sit in right posture (B)Take breaks and do some physical activity
(C) Keep the gadget above your height (D) Periodically rotate and watering eyes
7. Which of following is incorrect SQL? 1
(A) Select max(marks) from student; (B) Select sum(marks) from student;
(B) Select max(marks1,marks2) from student; (D) Select sum(marks1,marks2) from
student;
8. Which one of the following set of operations is a valid set of aggregate functions in SQL? 1
(A) COUNT,MAX,AVG,SUM (B) MAX,AVG,SUM,SELECT
(C) UNION,COUNT,MIN,DESC (D) AVG,MIN,MAX,ASC
9. Which MySQL aggregate functions is used to retrieve minimum value? 1
Page 1 of 7
(A) MAX( ) (B) MIN( ) (C) AVG( ) (D) MINIMUM( )
10. To display first five rows of a series object ‘S’, you may write: 1
(A) S.head() (B) S.Tail(5) (C) S.Head(5) (D) S.tail()
11. Which of the following statement is correct for importing pandas in Python? 1
(A) import pandas (B) import pandas as pd
(B) import pandas as pds (D) All of the above
12. Which of the following statement for creatingdataframe is valid? 1
(A) df=pd.dataframe(dict1) (B) df=pd.Dataframe(dict1)
(B) df=pd.dataFrame(dict1) (D) df=pd.DataFrame(dict1)
13. Which of the following statements is true for network hub? 1
(A) A hub connects different stations in a private network.
(B) It sends data packets to the intended recipient.
(C) It contains two ports: one for input and other for output.
(D) It works at the network layer.
14. In SQL, returns the current date and time? 1
(A) Date () (B) Time () (C) Current () (D) Now ()
15. Nitish has invented a new theory in computer science. He wants to protect it legally against 1
unauthorized use. He should take its:
(A) Copyright (B) Patent (C) Trademark (D) None
16. Who is known by the name of crackers in the context of computer security. 1
(A) Black Hat Hackers (B) White Hat Hackers
(B) Elite Hackers (C) Script Kiddie
17. Which of these definitions correctly describes a module?
(A) Denoted by triple quotes for providing the specification of certain program elements
(B) Design and implementation of specific functionality to be incorporated into a program
(C) Defines the specification of how it is to be used
(D) Any program that reuses code
18. A series By default have numeric data labels start from
(A) -0 (B) - 1 (C) - 3 (D) - 2
19. Which function is used to save the output of pyplot in the form of image file?
(A) savefig(‘filename’) (B) save_fig(‘filename)
(C) saveimg(‘filename’) (D) save_img(‘filename’)
Q20 and 22 are ASSERTION AND REASONING based questions. Mark the correct choice as
(A) Both (A) and (R) are true and (R) is the correct explanation for (A)
(B) Both (A) and (R) are true and (R) is not the correct explanation for (A)
(C) (A) is True but (R) is False
(D) (A) is false but (R) is True
20. Assertion (A): - The internet is a collection of interconnected computer networks, linked by 1
transmission medium such as copper wires, fiber- optic cables, wireless connections etc.
Reasoning (R):- World Wide Web connection of interconnected documents.
21. Assertion (A):pandas is an open source Python library which offers high performance , easy- 1
to-use data structure and data analysis tools.
Reasoning (R): - Developers and professionals are using the pandas library in data science and
machine learning.
SECTION B
22. Difference between website and webpage. 2
OR
Explain Bus and Star topology.
23. Adesh, a database administrator needs to display house wise total number of activities of ‘Ashoka’ 2
and ‘Tagore’ house. He is encountering an error while executing the following query:
SELECT HOUSE, COUNT (ACTIVITIES) FROM STUDENT ORDER BY DESC
Page 2 of 7
NAME;
Help her in identifying the reason of the error and write the correct query by suggesting the possible
correction (s).
24. What is the purpose of Group By clause in SQL? Explain with the help of suitable example. 2
25. Write a program to create a series from dictionary that stores classes (6,7,8,9,10) as 2
keys and number of students as values.
26. Mention any four steps to recycling and recovery under e-waste management. 2
OR
Write any four steps towards awareness about health concerns related to the usage of technology.
27. What will be the output of the following code: 2
import pandas ad pd import numpy as
num arr=num.array([31,47,121])
S1=pd.Series(arr, index=(1,11,111))
print(S1[111])
28. Write code statements for a dataframe df for the following – 2
(a)Delete an existing column from it.
(b) Delete rows from 3 to 6 from it
SECTION C
29. (A) Explain following terms. 3
(a) Phishing (b) Denial-of-service (c) Identity theft
OR
(B) What do you mean by a hacker? Mention their types (any two).
30. Consider the following dataframe “DF” 3
Student Fees
0 Aviral 40000
1 Anchit 45000
2 Ashiwini 43000
3 Kishan 44000
OR
Given the following Series1
A 100
B 200
C 300
D 400
E 500
Write the command to create above Series and then double the value in series and store in another
series named Series2
31 (A) Write the command to create the following table : “Student” 2+1
Field Name Data type Constraint
Rollno Integer (5) Primary Key
Sname Varchar(30)
Contactno Char(10) Not Null
(B) Write query to insert the following record in above created table.
Roll number — 1, Name–Amit, Contact number– 1234567890
Page 3 of 7
32. (A) Consider the tables ITEMS & COMPANY. Write SQL commands for the statements (i) to (iii) 3
Table : ITEMS
ID PNAME PRICE MDATE QTY
T001 Soap 12.00 2007-03-11 200
T002 Paste 39.50 2006-12-23 55
T003 Deodorant 125.00 2007-6-12 46
T004 HairOil 28.75 2007-9-25 325
T005 ColdCream 66.00 2007-10-9 144
T006 ToothBrush 25.00 2006-2-17 455
Table : COMPANY
ID COMP City
T001 HLL Mumbai
T008 Colgate Delhi
T003 HLL Mumbai
T004 Paras Haryana
T009 Ponds Noida
T006 Wipro Ahmedabad
i. To display PNAME, PRICE * QTY only for the city Mumbai.
ii. To display product name, company name & price for those items which IDs are equal to
the IDs of company.
iii. To delete the items produced before 2007.
OR
(B) Consider the following tables Stationery and Consumer. Write command in MySQL for (i) to
(iii).
Stationery
S_ID StationeryName Company Price
DP01 Dot Pen ABC 10
PL02 Pencil XYZ 6
ER05 Eraser XYZ 7
PL01 Pencil CAM 5
GP02 Gel Pen ABC 15
Consumer
C_ID ConsumerName Address S_ID
01 Good Learner Delhi PL01
06 Write Well Mumbai GP02
12 Topper Delhi DP01
15 Write & Draw Delhi PL02
16 Motivation Bangalore PL01
i. Write a query to display Consumer name, Address, Company, Price for those whose price is
not more than 10.
ii. Display the company whose consumers are located in Delhi or Mumbai.
iii. Display Stationery ID, Stationery name and Address of consumer order of Stationery Name.
SECTION D
33. Write a python program to draw a bar chart with the following information: 4
Page 4 of 7
City pollution
Kolkata 78
Delhi 91
Kanpur 88
Patna 90
Banglore 82
Page 5 of 7
35. Ravya Industries has set up its new center at Kaka Nagar for its office and web based activities. 5
The company compound has 4 buildings as shown in the diagram below:
Fazz Raj
Building Building
Jazz Harsh
Building Building
a) Write a statement to display Name, Designation and Salary columns from the above employee
DataFrame.
b) Write a statement to display Name and Salary columns from the above DataFrame.
c) Write a statement to display Bonus column only.
d) Write a statement to display all the information from Employee ids ‘E102’ to ‘E104’ (Both are
included)
e) Write a statement to display all information of Employee id ‘E102’ and ‘E105’.
Page 6 of 7
37. (A) Write suitable SQL query for the following:
i. Display ‘BIHARI’ from string ‘HUMANT BIHARI LAL INFORMATION
TECHNOLOGY’.
ii. Display the position of occurrence of string ‘VASTA’ in the string ‘AVIRAL
SRIVASTAVA’.
iii. Find reminder of 17 devided by 3.
iv. Display the month name from ’01-April-2022’.
v. Remove all the expected trailing spaces from a column name of the table ‘STUDENT’.
OR
(B) Explain the following SQL functions using suitable examples.
i. Write the UPDATE statement in MySQL to increase commission by 100.00 in the
“Commission” column in the ‘EMP’ table.
ii. Rewrite the following SQL statement after correcting the error(s). Underline the corrections
made.
INSERT IN STUDENT(RNO, MARKS) VALUEC5, 78.5);
iii. Mr. William wants to remove all the rows from INVENTORY table to release the storage
space, but he does not want to remove the structure of the table. What MySQL statement
should be used?
iv. A table FUN FOOD has 13 rows and 17 columns. What is the cardinality and degree of the
table?
v. Sarthak, a student of class XI created a table “CLASS”. Grade is one of the column of this
table. To find the details of students whose Grades have not been entered, he wrote the
following MySQL query, which did not give the desired result
SELECT * FROM CLASS WHERE GRADE = "NULL”
Help Sarthak to run the query by removing the errors from the query and write the correct
query.
Page 7 of 7