0% found this document useful (0 votes)
107 views14 pages

IP Question Paper Class XII

The document provides instructions for the Kerala Common Model Examination in Informatics Practices for class 12. It contains details about the exam such as duration of 3 hours and maximum marks of 70. It also lists the 5 sections - A to E and mentions the number and type of questions in each section. Section A contains 18 one mark questions, Section B contains 7 two mark questions, Section C contains 5 three mark questions and so on. All programming questions must be answered in Python.

Uploaded by

SIBI
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
107 views14 pages

IP Question Paper Class XII

The document provides instructions for the Kerala Common Model Examination in Informatics Practices for class 12. It contains details about the exam such as duration of 3 hours and maximum marks of 70. It also lists the 5 sections - A to E and mentions the number and type of questions in each section. Section A contains 18 one mark questions, Section B contains 7 two mark questions, Section C contains 5 three mark questions and so on. All programming questions must be answered in Python.

Uploaded by

SIBI
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 14

Registration No:

ALL KERALA COMMON MODEL EXAMINATION


INFORMATICS PRACTICES (065)
CLASS XII (2023 – 24)

TIME : 3 Hours MAX. 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 01 mark each.
4. Section B has 07 Very Short Answer type questions carrying 02 marks each.
5. Section C has 05 Short Answer type questions carrying 03 marks each.
6. Section D has 02 questions carrying 04 marks each.
7. Section E has 03 questions carrying 05 marks each.
8. All programming questions are to be answered using Python Language only.

SECTION A

1. A circuit board mounted on the motherboard of a computer that acts as an [1]


interface between the computer and the network is called
______________.
i. Router
ii. NIC
iii. Gateway
iv. Modem
2. When e-waste such as electronic circuit boards are burnt for disposal, the [1]
elements contained in them create a harmful chemical called ________,
which causes respiratory disorders and brain damage.
i. Lead
ii. Beryllium
iii. Cadmium
iv. Mercury
3. Technology not protected by copyright and available to everyone, is [1]
categorized as:
i. Shareware
ii. Open Source
iii. Proprietary
iv. Experimental
4. You are the sports leader of the 'ABC Public School'. On sports day, you [1]
have to calculate the average of the scores obtained by different games.

You have been given the column ‘Score’ in the table 'SPORTS', which
contains the scores of different games as (5, NULL, 2, 5).

What will be the output when calculating the average of the scores
obtained by different games?

i. 4
ii. 3
iii. 3.5
iv. 5

5. Riya, a student in class XII, has downloaded a CSV file from the internet [1]
for her project. However, she does not want the previous data, which is in
the first five rows of the file, for her data analysis. She wants to skip the
previous data while importing the CSV file into the dataframe. Help her to
skip the first 5 rows of the CSV file by choosing the right argument in
read_csv().
i. skip_rows = 5
ii. noread - 5
iii. skiprows = 5
iv. skip - 5

6. Which of the following SQL query is use to retrieve the string ‘INDIA’ from [1]
the text “&& INDIA &&”.
i. SELECT TRIM('&&') FROM '&& INDIA &&';
ii. SELECT TRIM('&&' FROM '&& INDIA &&');
iii. SELECT TRIM('&& INDIA &&' FROM '&&');
iv. SELECT TRIM('&&INDIA&&');

7. Firewalls are used to protect against ________. [1]


i. virus attacks
ii. fire attacks
iii. unauthorized access
iv. data driven attacks

8. Ramandeep is a young woman with great aspirations and has a good team [1]
of like - minded people. She along with her team members started a
company to sell handicrafts online and also designed a logo for their
company. What type of intellectual property does this logo represent?
i. Patents
ii. Trademark
iii. Design
iv. Copyright

9. Predict the output of the following query: [1]


SELECT INSTR('SEVEN POINT', 'e');
i. 2
ii. ‘E’
iii. 1
iv. 0

10. What will be the output of the following? [1]

>>> import pandas as pd


>>> seriesMnths = pd. Series([ 1,2,3,index=[ "Jan", "Feb", "Mar")
>>> seriesMnths[ 1]

i. Index Error
ii. 2
iii. Feb
iv. Jan

11. Which of the following is not a text function in SQL? [1]

i. length( )
ii. instring( )
iii. substr( )
iv. left( )

12. The first network is [1]


i. Internet
ii. NSFnet
iii. NET
iv. ARPANET

13. What is the significance of the statement "HAVING COUNT (emp_id)>2" in [1]
the following MySQL statement?
SELECT name, COUNT (emp_id),emp_no FROM department GROUP BY
name HAVING COUNT (emp_id)>2;
i. Selecting those rows whose total emp_id>2
ii. Both filter out all rows whose total emp_id below 2 and selecting
those rows whose total emp_id>2
iii. Filter out all rows whose total emp_id below 2
iv. None of these

14. Rahul wants to disable cookies in his browser. Under which of the [1]
following browser settings options/panels can Rahul disable the cookies?
i. Home Panel
ii. Search Panel
iii. Privacy and Security Panel
iv. General Panel

15. The manufacturer of any electronic equipment will be “personally” [1]


responsible for the final safe disposal of the product when it becomes an e-
waste.

The above guidelines for proper handling and disposal of e-waste have
been issued by whom?

i. Information Technology Act


ii. Department of Information Technology
iii. Central Pollution Control Board
iv. The Environment Protection Act

16. Out of the following, which function cannot be used for customization of [1]
charts in Python?
i. xlabel()
ii. color()
iii. title()
iv. xticks()

17. Assertion (A): Pandas.head() is an attribute of the Python data structure. [1]
Reason (R): It is used to display the first/top 5 records of any
series/dataframe.
i. Both A and R are true and R is the correct explanation of A.
ii. Both A and R are true but R is not the correct explanation of A.
iii. A is true but R is false.
iv. A is false but R is true.

18. Assertion (A): Privacy of sensitive data can be implemented by [1]


encryption.
Reason(R): Encryption hides (Encodes) the details of the Actual data.

i. Both A and R are true and R is the correct explanation of A.


ii. Both A and R are true but R is not the correct explanation of A.
iii. A is true but R is false.
iv. A is false but R is true.

SECTION B

19. Mention any four differences between Internet & WWW. [2]
OR
Lia is doing a course in Web Technologies. As a part of her project, she
needs to extend and modify the functionality of her web browser. She has
opted to use add-ons or plug-ins to boost the performance of the browser.
However, she doesn’t know the difference between these tools. Help her
understand the difference between add-ons and plug-ins with an example.

20. Consider the given dataframe ‘num’: [2]

Fill in the blanks to get the given output:


a.

print(num.loc[ ____________ , ____________ ])

b.

print(num.iloc[______________ , _____________])
21. Consider the following table BOOK. [2]
Give the output of the following SQL commands on the basis of the above
table BOOK.
SELECT LEFT (Publication, 1) FROM BOOK WHERE Price > 280;

22. Ruhi has just designed a website for her boutique ‘Grace’ in HTML [2]
language and now she needs a web address for the page. Briefly discuss
about URL and its components to uniquely identify web resources with a
suitable example.

23. Complete the given Python code to get the required output as “Italy” from [2]
the given dataframe ‘populations’:

import pandas as ps
pop = [ [ ’Italy’,61,0.83],[ ’Spain’,46,0.63],[ ’Greece’,11,0.15] ]
populations = _______________(pop, _______ = [ ’Country’, ’Population’ ,
’Percent’],
________ = [ 1,2,3])
print(populations.loc[ ________________)

24. Kaushal writes the following commands with respect to a table student [2]
having fields name, rollno, marks and records of 5 students.
Command1 : select count(marks) from student;
Command2 : select count(*) from student;
He gets the output as 4 for the Command1 and 5 for Command2. Explain
the output with justification.
25. Kavyanjali, a chemical analyst, needs to arrange data of few elements in [2]
the form of two series containing symbols and their atomic numbers
respectively. Thereafter, the data of these two series has to be arranged
and displayed in the form of Data Frame as shown below:

SECTION C
26. Consider the following records in ‘STUDENT’ table and answer the given [3]
questions:

Admno Name Class DOB House Gender

20150001 Dimple Varma 10 2002-07-29 Green Female

20140212 Mohit Bhardwaj 11 2003-12-01 Red Male

20130216 Mukesh Sharma 9 2001-01-29 Red Male

20190227 Rahul Arora 10 NULL Blue Male

20120200 Swapnil Bhatt 11 2003-07-05 Red Female

i. Write SQL query that will give the output as:


4
ii. Write command for the following:
To change the class of Mukesh Sharma with admission number
20130216 to 10.
iii. What is the cardinality of the table 'STUDENT'?
Also identify the most suitable column of the STUDENT table to
make as primary key.
OR
Predict the output of the following queries based on the table ‘STUDENT’
given above:
i. SELECT MID(Name,LENGTH(House)-1,2) FROM STUDENT;
ii. SELECT DAY(DOB) FROM STUDENT WHERE Class > 10;
iii. SELECT INSTR(House, RIGHT(Gender,1)) AS 'INSTRING' from
STUDENT;

27. Write python code to create a Dictionary ‘dict’ to store rollno, name and [3]
marks of three students. Convert dict into DataFrame df and display the
DataFrame df.
28. In the database ‘Hospital’, create a table named ‘patient’ based on the [3]
following specifications:

Column Name Data Type Constraints


PID Varchar Primary Key
PName Varchar
Gender Char Not Null

Also write SQL statement for the following:


i. Add a new column Rec_ID of integer data type.
ii. Change the constraint from not null to null in the column Gender.
29. Riti received a message that she needs to update the KYC for her Bank [3]
Account; therefore, she should upload her Aadhar Card, Bank Account
Number, and OTP to the link given in her message. Answer the following
questions:

i. Should Riti upload the documents and give the OTP on the link?
ii. What is the act mentioned in the message known as?
iii. Under which act can she lodge a complaint with the relevant
authorities?
iv. Suggest her any two precautionary measures that she should take
in the future while being online to avoid any such situations.

OR

Kartik is fond of playing computer games. What are the different health
hazards that can occur due to excessive use of computer or smart phone
screens, and how can the health hazards be addressed?
30. Consider the given DataFrames ‘Stock’ [3]

Write suitable Python statements for the following:


i. Add a column called “Price” with the following data:
[300,20,50,40,15]
ii. Add a new product “ruler” with a product ID as 6, 5 number of
quantities, and a price of Rs 8.
iii. Rename the column “Price” as “UnitPrice”.
SECTION D

31. Imagine you are assigned to be the HR manager of a multinational [4]


company. The company uses an SQL database to track employee details
in a table named ‘EMP’. The ‘EMP’ table has columns for ‘EID’ (Primary
Key), ‘EName’, ‘DOJ'(Date of Joining), 'Salary', and ‘Dept’.
The following scenarios represent different human resource management
tasks:
i. Salary Increment: After the revised pay scale, the ‘Salary’ of
employees, with ‘EID’ “E115” and “E332” named “Anurag” and
“Prabhaker” respectively, should be increased by 5%.
ii. Number of Employees: You need to get the total number of
employees in each department.
iii. Employee Availability Check: You need to check the availability
of employees who joined before November 17, 2016 in the
‘ADMIN’ department.
iv. Average Salary: You need to display the average salary for
those departments that have more than 15 employees.

32. Mr. Sharma, a game developer, has plotted a chart to estimate the
distribution of two different ratings of the various games available in the
Play Store, as shown below:

He is trying to write the following statements to plot the graph. Help Mr.
Sharma to fill up the blanks with Python code to get the desired output.

import pandas as pd
__________________ # statement 1
df = _________( # statement 2
{'Games':['Subway','Surfer','Temple Run','Candy Crush','Bottle
Shot','Runner Best'], 'Rating1':[15,5,6,18,20,15],
'Rating2':[25,10,28,45,32,30] } )

_______ (kind = 'bar', x = 'Games', y = ____________) # statement 3 & 4


mat.xlabel('Games')
mat.ylabel('Rating')
mat.title('Ratings of Games')
mat.show()
i. Choose the correct Python statement to import the library to plot the
bar graph in statement 1.
ii. Choose the correct Python statement to create the dataframe in
statement 2.
iii. Choose the correct Python statements in statements 3 and 4,
respectively, to plot a bar graph from the dataframe created.
OR
(Option for part iii only)

Write the Python statement to export the dataframe created to the CSV file
named “DATA”, which is in the “D” drive.

SECTION E

33. Write suitable SQL queries for the following: [5]


i. To calculate the exponent for 5 raised to the power of 6.
ii. To retrieve the current year.
iii. To round off the value 8659.8953 to the nearest hundered.
iv. To display the position of ‘-‘ from the string "Israel-Hamas
Conflicts".
v. To convert the text in the 'Item_Name' column of the 'ITEM' table
to uppercase.
OR
Observe the given tables carefully and attempt the following questions:
Table : Student
Roll No Name Class Section Registration_ID
11 Mohan XI 1 IP-101-15
12 John XI 2 IP-104-15
21 Sohan XII 1 CS-103-14
22 Meena XII 2 CS-101-14
23 Juhi XII 2 CS-102-10

Table: Project
Registration_ID ProjectNo
IP-101-15 101
IP-104-15 103
CS-103-14 102
CS-101-14 105
CS-102-10 104

i. Identify the column based on which both tables can be related or


joined. Also, justify your answer.
ii. Write the SQL query to list the names of the students with their
project numbers in descending order.
iii. Write the SQL query to find the total number of students in each
class.
iv. Write the SQL query to retrieve six characters extracted from the
fourth left character onwards from the ‘Registration_ID’ of the
“Student” table.
v. Write the SQL query to remove the leading and trailing spaces
from the names of the students.
34. Learn Together is an educational NGO. It is setting up its new campus at [5]
Jabalpur for its web - based activities. The campus has four compounds as
shown in the diagram below:
Centre to centre distance between various compounds as per
architectural drawing (in meters) is as follows:

Expected number of computers in each compound are as follows:

i. Suggest a cable layout of connections between the compounds.


ii. Suggest the most suitable place (i.e. compound) to house the
server for this NGO. Also, provide a suitable reason for your
suggestion.
iii. Suggest the placement of the following devices with justification:
a. Repeater
b. Hub/Switch
iv. The NGO is planning to connect its international office situated
in Mumbai, which out of the following wired communication link,
will you suggest for a very high-speed connectivity?
a. Optical Fibre
b. Telephone analog line
c. Ethernet cable
d. None of these
v. Which protocol or service will be most helpful to conduct live
interactions between experts from Mumbai office and people at
the Jabalpur campus?

35. The table below shows the marks of two students for the four-unit tests for [5]
academic session 2022-2023. Plot a line graph for each student with test
names on the X axis, marks on the Y axis, and a legend in the upper right
of the chart. Also, save the figure obtained.

OR
You are provided with the following data on the number of students who
participated in a programming competition over the years:

Create a bar graph to visualize the growth of participants over the years.
Give appropriate labels and also save the figure obtained.

You might also like