Informatics Practice-Xii - Practice Paper

You might also like

Download as pdf or txt
Download as pdf or txt
You are on page 1of 7

PRACTICE PAPER

CLASS XII
INFORMATICS PRACTICES (065)
Time Allowed: 3 hrs Maximum Marks: 70

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 1 mark each.
4. Section B has 7 Very Short Answer type questions carrying 2 marks each.
5. Section C has 5 Short Answer type questions carrying 3 marks each.
6. Section D has 2 questions carrying 4 marks each.
7. Section E has 3 questions carrying 5 marks each.
8. All programming questions are to be answered using Python language only.

SECTION A
1. Which of the following statements is false about topologies?
(i) In bus topology, several devices are connected to a main long cable.
(ii) A fully connected mesh network has n(n-1)/2 links, where n is the total number of connecting nodes.
(iii) Tree topology cannot be implemented when bus and star topology are not implemented individually.
(iv) In ring topology, signal is transmitted only in one direction. (1)
2. _______________________ is the primary law in India to deal with cybercrime. (1)
3. Which of the following is not a concern caused due to the overuse of technology?
(i) Social Isolation (ii) Loss of attention
(iii) Computer Vision Syndrome (iv) Anaemia (1)
4. Which of the following commands will give the output as 10?
(i) SELECT MONTH ("1993-10-09");
(ii) SELECT DATE ("09-10-1993");
(iii) SELECT MONTH ("1993-09-10");
(iv) SELECT MONTHNAME ("1993-10-09"); (1)
5. What will be the output of the following function?

SELECT ROUND (99.02355,3);
(i) 99.0235 (ii) 99.023
(iii) 99.02355 (iv) 99.024 (1)
6. IPR stands for
(i) Intellect Property Rights (ii) Internet Privacy Rights
(iii) Information Privacy Rights (iv) Intellectual Property Rights (1)
7. Which one of the following is the correct syntax to read a csv file named “student.csv” in pandas alias
pd?
(i) pd.read("student.csv") (ii) pd.read.csv("student")
(iii) pd.read_csv("student") (iv) pd.read_csv("student.csv") (1)
8. Which command is used to remove the entire table ‘HARDWARE’ from the database?
(i) DROP TABLE HARDWARE; (ii) DELETE TABLE HARDWARE;
(iii) TRUNCATE TABLE HARDWARE; (iv) REMOVE TABLE HARDWARE; (1)

Practice Paper A.1


9. Predict the output of the following query:

SELECT UPPER(LEFT(MONTHNAME('2023-12-10'),5));
(i) OCTOB (ii) DECEM
(iii) Decem (iv) EMBER (1)
10. Which of the following commands will show the total number of rows and columns present in a DataFrame
named as df?
(i) df.size (ii) df.shape
(iii) df.Shape (iv) df.shape() (1)
11. The unique identifier in a table that is not allowed to have duplicate or null values is called a
_______________________.
(i) Primary key (ii) Foreign key
(iii) Alternate key (iv) Candidate key (1)
12. Which of the following functions is used in pandas to display the first five rows of a specific column in a
DataFrame (df)?
(i) df.show(5) (ii) df.head()
(iii) df.tail(5 ) (iv) df.display(5) (1)
13. Which of the following chemicals can be categorized as electronic waste?
(i) Lead (ii) Cadmium
(iii) Mercury (iv) All of these (1)
14. In SQL, the equivalent of LCASE()is:
(i) LOWER() (ii) LOWERCASE()
(iii) UCASE() (iv) UPPER() (1)
15. _______________________ is used for accessing and storing emails from mail servers over a TCP/IP
connection.
(i) SMTP (ii) HTTP
(iii) POP3 (iv) IMAP (1)
16. Digital footprints should be properly managed as they can reveal a lot of personal information about you
which, once shared, can’t be erased or controlled. (True/False) (1)
Q17 and 18 are ASSERTION AND REASONING based questions. Mark the correct choice as
(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 (1)
17. Assertion (A): A Network Interface Unit (NIU) is an interpreter that helps establish communication between
a server and client.
Reasoning (R): NIU has a 12-digit address known as MAC address, which is written as 00 : B0 : E5 : 14 : B8

: 46 , where the first half represents serial number assigned to the adapter by the manufacturer and the
second half represents the ID number of the adapter manufacturer. (1)
18. Assertion (A): A DataFrame is a one-dimensional, tabular data structure in pandas.
Reasoning (R): DataFrame is like a spreadsheet or an SQL table, where data is organized in the form of rows

and columns. (1)

A.2 Informatics Practices with Python–XII


SECTION B
19. Identify the electronic device in the given diagram. Write its function in brief.

Weakened Signal Regenerated Signal

OR
Identify the following devices—
(i) It is used to connect dissimilar networks.
(ii) It is a network device which works on different protocols within a network. (2)
20. The Python code written below has syntactical errors. Rewrite the correct code and underline the corrections
made.

import pandas as pd
Terminal_marks=[{"Amit":98, "Rishabh":97, "Ravi":95}{"Amit":97, "Rishabh":93,
"Ravi":98}
df=pd.DataFrame(terminal_marks)
print(df)
df.lock['2']=[95,96,99]
print(Df) (2)
21. Write the suitable SQL queries for the given string “AMBULANCE” that:
(i) Returns the string as “ANCE”.
(ii) Returns the total number of characters in the given string (2)
22. Predict the output of the given Python code:
import pandas as pd
list=["I can do it!"]
s = pd.Series(list*4)
print(s) (2)
23. What is Software Licensing and Copyright? Write any one advantage of licensed software. (2)
24. Complete the given Python code to get the required output as:
b Shreya
c Kritarth
d Avni
dtype: object
b Shreya
c Kritarth
d Avni
e Mridul
dtype: object
import pandas as pd
s=pd.Series(["Raima", "______", "Kritarth", "Avni", "Mridul"],
_____=["a","b","c","d","e"])
print(s.iloc[____])
print(s.loc[____]) (2)

Practice Paper A.3


25. Observe the given tables named as “Client”, “Maintenance_Cost” and “Resultant”. Identify the SQL
operation applied on the table “Resultant”. Also write the SQL query for the same.
Table: Client Table: Maintenance_Cost Table: Resultant
ID NAME ID COST ID NAME COST
121 Kapil 126 5600 126 Manish 2400
126 Manish 134 2400 134 Puneet 7200
134 Puneet 180 7200
181 Prakash 133 3600
(2)
SECTION C
26. Based on the SQL table University_of_Melbourne, write suitable queries for the following:
Table: University_of_Melbourne

COURSE EXAMS_ACCEPTED DURATION NUMBER_OF_ FEES
(years) SCHOLARSHIPS (lakhs)
Data Science IELTS 1.5 2 29.87
Computer Science TOEFL 2 0 32.63
Industrial Leadership TOEFL 1.5 3 21.63
Information Technology IELTS 2 2 27.08
Management IELTS 1.5 1 25.28
(i) Display the courses with duration less than 2 years.
(ii) Display the record of courses in the ascending order of Fees.
(iii) Display the courses and the qualifying exam required for taking admission in the university for which
the fees is between 20 to 25 lakhs and number_of_scholarships is not equal to 0. (3)
OR
Predict the output of the following queries based on the table University_of_Melbourne given above:
(i) SELECT LEFT(COURSE,8) FROM University_of_Melbourne
WHERE EXAM_ACCEPTED = "TOEFL";
(ii) SELECT MIN(FEES) as "MINIMUM FEES" FROM University_of_Melbourne WHERE
EXAMS_ACCEPTED = "IELTS";
(iii) SELECT COUNT(COURSE), EXAMS_ACCEPTED FROM University_of_Melbourne
GROUP BY EXAM_ACCEPTED;
27. Create a DataFrame(df) in Python from the given list:

[["Mayur Vihar", "Semi-furnished", "1.0cr"], ["Saket", "Furnished","1.5cr"],
["Gurugram", "Furnished", "1.3cr"], ["Noida", "Unfurnished", "70lac"]]
Also give appropriate column headings as shown below:
Location Status Price
0 Mayur Vihar Semi-furnished 1.0cr
1 Saket Furnished 1.5cr
2 Gurugram Furnished 1.3cr
3 Noida Unfurnished 70lac (3)
28. Write MySQL statements for the following:
TABLE: CHOCOLATE_BOX

BOX_ID BOX_COLOUR COST
H123 RED 42
(i) To create a database named Chocolatiers.
(ii) To create a table given above named CHOCOLATE_BOX applying suitable constraints on the columns
of the table and inserting records for the same as shown above. (3)
A.4 Informatics Practices with Python–XII
29. Meenakshi, a 55-year-old lady, started using a social-media-based messaging application on her smartphone.
Meanwhile, she unknowingly clicked on a link floating on that application, after which she received a text from
her bank account asking for OTP. Based on the given information, answer the following questions:
(i) What suggestions would you give regarding such incidents?
(ii) What actions should Meenakshi take immediately?
(iii) Identify the type of cybercrime that she is a victim of. (3)
30. Consider the given DataFrame ‘Species’:
Name Height(m)
0 Kiara 2-3
1 Bidara 1-1.5
2 Balsa 2-3
3 Lame 3-4
(i) Rename the column ‘Name’ to ‘Local_Name’.
(ii) Add a column called ‘Numbers’ with data: [10, 100, 100, 30].
(iii) Delete the column ‘Height (m)’. (3)
SECTION D
31. Assume that you are a database administrator in a company and have been asked to give the output from
a database to make decisions based on it. Write the following SQL queries:
Table: Equipments

Equipment_Code Equipment_Name Department Installation_Date Total_Cost
ANAU11 Anaesthesia Anaesthesiology 2023-03-03 41000
Machine
ANAU13 Anaesthesia Anaesthesiology 2023-03-13 41000
Machine
BCCO12 Haematology Haematology Lab 2010-02-01 80000
Analyzer
CLAN04 Chemistry Analyzer Operating Room Nursing 2023-03-13 130000
COAG06 Coagulation Operating Room Nursing 2020-08-02 30000
Analyzer
(i) To display the year of the oldest installed equipment.
(ii) To display the name and cost of equipments department-wise.
(iii) To display the most expensive equipment.
(iv) To count the total number of equipments installed in the year 2023. (4)
32. A data researcher in a stock market analyzes the increment or decrement in percentage of stocks in 4 weeks
based on the DataFrame (df) given below:
Stocks Week1 Week2 Week3 Week4
0 Stock_1 24 3 10 -13
1 Stock_2 28 4 -8 4
2 Stock_3 16 12 -10 2
3 Stock_4 52 -25 15 10
Answer the following questions:
(i) Predict the output of the following Python statements:
(a) print(df.tail(2))
(b) print(df.iloc[1:2])
(ii) Write the Python statement to check for NaN values in DataFrame (df)
(iii) Replace the week4 percentage of Stock_2 with 8. (1+1+2)
OR
Display the column ‘Stocks’ as the index of the given DataFrame (df).

Practice Paper A.5


SECTION E
33. Write suitable SQL queries for the following:
(i) Returns the position of the substring “SUCCESS” from the given string “WORKING HARD IS THE ONLY
KEY TO SUCCESS, SHORTCUTS ARE FOR LOSERS”.
(ii) Returns the string in upper case.
(iii) To calculate the exponent for 5 raised to the power of -2.
(iv) Return the current date and time.
(v) To calculate the modulus of 35 and 45. (5)
OR
Write SQL queries to perform the following task:
Table: Weather

DAY MAX_TEMP MIN_TEMP FORECAST
Sun 36 24 Sunny and Hot
Mon 34 22 Sunny
Tue 30 20 Dry and Cloudy
Wed 32 21 Cloudy
Thu 27 16 Rain
Fri 30 20 Light showers
Sat 32 21 Cloudy
(i) To decrease the minimum temperature by 2 degrees.
(ii) To add a new column TEMP_DIFF (difference of maximum and minimum temperatures) of integer type.
(iii) Display the no. of days on the basis of forecast where forecast type ends with ‘dy’.
(iv) Insert the records for TEMP_DIFF column, created in above query.
(v) Find the average temperature throughout the week.
34. Korient Pvt Ltd, Noida has four blocks as shown in the below diagram and is now planning to set up a
network.
Korient Pvt Ltd

FABRIC TESTING QUALITY CONTROL


BLOCK BLOCK

MERCHANDISING
EDP / IT BLOCK
BLOCK

Distance between each block is given as follows:


BLOCK (from) BLOCK (to) DISTANCE
(in metre)
Merchandising Fabric Testing 50
Merchandising Quality Control 90
Merchandising EDP / IT 115
Fabric testing Quality Control 40
Fabric testing EDP / IT 45
Quality control EDP / IT 25

A.6 Informatics Practices with Python–XII


The number of computers in each block is as follows:
BLOCKS NUMBER OF COMPUTERS
Merchandising 17
Quality Control 42
EDP/IT 117
Fabric Testing 27
(i) Suggest the most suitable block to install the server. Justify your answer.
(ii) Suggest the ideal cable layout for connecting these blocks physically.
(iii) Which device would you suggest to connect each computer in each of the given blocks?
(iv) Suggest the placement of the ‘Repeater’ in the layout with a justification.
(v) The company is planning to connect the Noida Branch office to its Delhi Head office, which is 35 km
away. Which type of network will be formed? (5)
35. A training institute named Algorithm asked the students of batch IV to make projects based on their
domains.

120

100
NUMBER OF STUDENTS

80

60

40

20

0
Software Analysis Software Prediction
Testing Development

PROJECT DOMAINS

Write a suitable Python code to create Computer Science projects made by Batch IV Bar Chart as shown
above.
Also give a suitable Python statement to save this chart. (5)
OR
The basic pay of 10 employees is given below:
Basic_pay = [28000,55000,16000,48000,26000,60000,33000,50000,35000,65000]
Write a suitable Python code to create a histogram by specifying bin size based on the given data, along
with an appropriate chart title and both axis labels.
Also give a suitable Python statement to save this chart.

Practice Paper A.7

You might also like