0% found this document useful (0 votes)
24 views

Sample Paper 5_IP_12

The document is an Informatics Practices sample paper for Class XII, consisting of multiple sections with various types of questions including multiple choice, short answers, and programming tasks, all focused on Python and SQL. It includes general instructions, a breakdown of marks, and specific questions related to data management, e-waste, and programming concepts. The paper aims to assess students' understanding of computer science and informatics practices through practical and theoretical questions.

Uploaded by

balkrishnas691
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)
24 views

Sample Paper 5_IP_12

The document is an Informatics Practices sample paper for Class XII, consisting of multiple sections with various types of questions including multiple choice, short answers, and programming tasks, all focused on Python and SQL. It includes general instructions, a breakdown of marks, and specific questions related to data management, e-waste, and programming concepts. The paper aims to assess students' understanding of computer science and informatics practices through practical and theoretical questions.

Uploaded by

balkrishnas691
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/ 8

About Us Website: https://www.learnpython4cbse.

com/ Feedback 8076665624

Learnpython4cbse Youtube Channel:


Inspiring Success SuperNova@learnpython4cbse
PYTHON ONLINE CLASSES COMPUTER SC. INFORMATICS PRAC. SAMPLE PAPERS PYTHON MCQs

INFORMATICS PRACTICES (065)


SAMPLE PAPER - 5
Timen: 03:00 Hrs CLASS - XII Maximum Marks: 70
General instructions:
 This question paper contains five sections, Section A to E.
 All questions are compulsory.
 Section A has 18 questions carrying 01 mark each.
 Section B has 07 Very Short Answer type questions carrying 02 marks each.
 Section C has 05 Short Answer type questions carrying 03 marks each.
 Section D has 02 questions carrying 04 marks each.
 Section E has 03 Long Answer type questions carrying 05 marks each
 All programming questions are to be answered using Python Language only.
SECTION - A
1 There are numerous websites, which provide search facility for searching the contents on 1
a) Internet b) Website
c)Web Page d) LAN
2 It is an act of copying another person’s data idea, words or work and pretended that they are our 1
own.
a) Copyright b) Virus
c) Plagiarism d) IPR
3 Feasible method(s) to manage e-Waste. 1
a) Reducing
b) Reusing
c) Recycling
d) All of these
4 Which type of values will not considered by SQL while executing the following statement? 1
SELECT COUNT(column name) FROM INVENTORY;
a) Numeric value
b) Text value
c) Null value
d) Date value
5 In column “Margin “contains the data set(2.00,2.00,NULL,4.00,NULL,3.00,3.00) what will be the 1
output of after the execution of the given query?
SELECT AVG(Margin) FROM SHOP;
a) 2.9 b) 2.8 c)2.00 d) All of these
6 ‘P’ in IPR stands for 1
a) Proprietary

Page 1 of 8 Website: https://www.learnpython4cbse.com/


About Us Website: https://www.learnpython4cbse.com/ Feedback 8076665624

Learnpython4cbse Youtube Channel:


Inspiring Success SuperNova@learnpython4cbse
PYTHON ONLINE CLASSES COMPUTER SC. INFORMATICS PRAC. SAMPLE PAPERS PYTHON MCQs

b) Platform
c) Patent
d) Property
7 Which of the following is not a category of MySQL functions? 1
a) Text Functions
b) Mathematical Functions
c)Statistical Functions
d) Arithmetic Functions
8 What is the output of the following SQL Command : 1
SELECT ROUND(458.45,-1)
a) 460
b) 450
c) 458
d) 500
9 Which of the following function is the correct syntax of LCASE() function? 1
a) LCASE(row_name)
b) LCE(column_name)
c) LCASE(str/column_name)
d) None of the above
10 To display Third Element of a Series object S, you will write : 1
a) S[:3]
b) S[2]
c) S[3]
d) S[:2]
11 Which of the following statement is wrong in context of DataFrame? 1
a) Two dimensional size is Mutable
b) Can perform Arithmetic operators on rows and columns.
c) Homogeneous tabular data structure
d) Create Dataframe from numpy ndarray
12 Which attribute is not used with Dataframe? 1
a) size
b) column
c) empty
d) type
13 An online discussion group that allow direct live communication is known as 1
a) e-mail
b) Hyperlink
c) Chat group
d) Web Crawler

Page 2 of 8 Website: https://www.learnpython4cbse.com/


About Us Website: https://www.learnpython4cbse.com/ Feedback 8076665624

Learnpython4cbse Youtube Channel:


Inspiring Success SuperNova@learnpython4cbse
PYTHON ONLINE CLASSES COMPUTER SC. INFORMATICS PRAC. SAMPLE PAPERS PYTHON MCQs

14 Which function extracts the date value from a date. 1


a) CURRENT( )
b) NOW( )
c) SYSDATE( )
d) DATE( )
15 What is the name of the IT law that India is having in the Indian Legislature? 1
a) India’s Technology(IT) Act,2000
b) India’s Digital Information Technology(DIT),Act,2000
c) India’s Information Technology(IT),Act ,2000
d) The Technology Act,2008
16 Which of the following are automatically granted to creators and authors? 1
a) Copyright
b) Patent
c) Trademark
d) Netiquette
Q17 and 18 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
17 ASSERTION (A): E-waste can be toxic and harmful for nature 1
REASONING(R): E-Waste that do not organically break down can, over time, can seep directly into
the environment
18 ASSERTION(A): drop() function removes data from a Dataframe temporarily. 1

REASONING(R): Axis parameter is compulsory with drop() function.


SECTION - B
19 What is a Website and Webpage? 2
OR
What is a network? Why is it needed?
20 Gopi Krishna is using a table Employee .it has the following Columns: 2

Code,Name,Salary,Deptcode
SELECT Deptcode,MAX(Salary) FROM Employee;
He wants to display maximum salary department wise. But he did not get the desired result.
Rewrite the above query with necessary change to help him get the desired result.
21 How are NULL values treated by aggregate functions? 2
22 Consider the given Series object Subject: 2

Page 3 of 8 Website: https://www.learnpython4cbse.com/


About Us Website: https://www.learnpython4cbse.com/ Feedback 8076665624

Learnpython4cbse Youtube Channel:


Inspiring Success SuperNova@learnpython4cbse
PYTHON ONLINE CLASSES COMPUTER SC. INFORMATICS PRAC. SAMPLE PAPERS PYTHON MCQs

ndex Marks
English 75
Hindi 78
Math 82
Science 88

Write a program in python pandas to create this series using a dictionary.


23 Name the methods for proper treatment of e-waste. 2
OR
What is meant by digital footprint and how to manage it suggest any two guidelines.
24 What will be the output of the following code: 2
>>>import pandas as pd
>>>nums=pd.Series([9,8,7,6,5],index=range(0,10,2))
>>>print(nums[1:3]
25 Consider the code given below and answer the following question: 2
Ld=[{'a',10,'b':20},{'a':5,'b':10,'c':20}]
df=pd.DataFrame(Ld)
print(df)
i) Write the missing import statement in the above code.
ii) How many columns will be there in the dataframe.
SECTION - C
26 Write a python code to create a DataFrame with appropriate column headings 3
from the list given below:
[[201,’Gurmeet’,95],[202,’Praveen’,89],[203,’Suman’,97],[204.’Yogesh’,91]]
27 Consider the given DataFrame ‘Fees’: 3
Cname Fee
0 XII 3500
1 XI 3000
2 X 2700
3 VII 1800
Write suitable Python statements for the following:
i. Add a column called ‘Section’ with the following data:
[‘A’,’B’,’C’,’D’].
ii. Add a new Class Name named ‘IX' having price 1800.
iii. Remove the column ‘Section’.
28 Write SQL commands for the statements (i) to (iii) which are based on the given table PERSON. 3

Page 4 of 8 Website: https://www.learnpython4cbse.com/


About Us Website: https://www.learnpython4cbse.com/ Feedback 8076665624

Learnpython4cbse Youtube Channel:


Inspiring Success SuperNova@learnpython4cbse
PYTHON ONLINE CLASSES COMPUTER SC. INFORMATICS PRAC. SAMPLE PAPERS PYTHON MCQs

PID SNAME FNAME GEN CITY PINCODE SALARY


1 SHARMA GEET F UDHAMWARA 182141 50000
2 SINGH SURINDER M KUPWARA 193222 75000
3 JCOB PETER M BHAWANI 185155 45000
4 ALVIS THOMAS M AHMED NAGAR 380025 50000
5 MOHAN GAURAV M COOLANGATTA 390026 33000
6 AZMI SIMI F NEW DELHI 110021 40000
7 KAUR MANPREET F UDHAMWARA 182141 42000
i) SELECT SUM(SALARY) FROM PERSON WHERE GEN=’F’;
ii) SELECT GEN,COUNT(*) FROM PERSON GROUP BY GENDER;
iii) SELECT MOD(SALARY,4000) FROM PERSON WHERE CITY=‘UDHAMWARA’;
29 Samridh has recently changed his school so he is not aware of the people, but someone is posting 3
negative demeaning comments on his social media profile.
He is also getting repeated mails from unknown people. Every time he goes online, he finds
someone chasing him online.
i. Samridh is a victim of ___________.
ii. The action that Samridh should take to handle it.
iii. .......................... is a set of moral principles that governs the behavior of a group or individual
and regulates the use of computers.
OR
What do you understand by plagiarism? Why is it a punishable offence?
Mention any two ways to avoid plagiarism.
30 Consider a table “Salesman” with the following data: 3
Table : Salesman

Sno Sname Salary Bonus DOJ


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
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 month name for the date of join of salesman.
(iii) Display the minimum salary of the Salesman .
OR
What is the purpose of GROUP BY clause in MySQL? How is it different from ORDER BY clause?
SECTION - D
31 Naveen, a database administrator has designed a database for a Computer Stock. 4
Help her by writing answers of the following questions based on the given table:

Page 5 of 8 Website: https://www.learnpython4cbse.com/


About Us Website: https://www.learnpython4cbse.com/ Feedback 8076665624

Learnpython4cbse Youtube Channel:


Inspiring Success SuperNova@learnpython4cbse
PYTHON ONLINE CLASSES COMPUTER SC. INFORMATICS PRAC. SAMPLE PAPERS PYTHON MCQs

TABLE: Stock
Pid Pname Category Qty Price
1 Keyboard IQ 15 450
2 Mouse IQ 10 350
3 Wi-fi router NW 5 2600
4 Switch NW 3 3000
5 Printer O 4 17000
i. Write a query to display product name in upper case.
ii. To display the records in descending order of the price.
iii. To display category and category wise highest price of product.
OR (Option for part iii only)

To display category and category wise total quantities of product.


32 Mr. Ankit is working in an organization as data analyst. He uses Python Pandas and Matplotlib for 4
the same. He got a dataset of the passengers for the year 2010 to 2012 for January, March and
December. His manager wants certain information from him, but he is facing some problems.
Help him by answering few questions given below:

Year Month Passengers


0 2010 Jan 25
1 2010 Mar 50
2 2012 Jan 35
3 2010 Dec 55
4 2012 Dec 65
A. Predict the output of the following python statement:
i. df.tail(3)
ii. df[df.Passengers>50]
iii. Write Python statement to display the data of year column of indexes 1 to 3.
OR (Option for part iii only)
Write the Python code to rename the name of the column name is ‘mon_name’in place of
“Month” in the above Dataframe.
SECTION - E
33 Write suitable SQL query for the following: 5
i. Display 7 characters extracted from 7th left character onwards from thestring ‘INDIA SHINING’.
ii. Display the position of occurrence of string ‘COME’ in the string
‘WELCOME WORLD’.
iii. Round off the value 78.779 to 2nd decimal place.
iv. Display the remainder of 149 divided by 6.
v. Remove all the expected leading and trailing spaces from a column useridof the table ‘USERS’.
OR

Page 6 of 8 Website: https://www.learnpython4cbse.com/


About Us Website: https://www.learnpython4cbse.com/ Feedback 8076665624

Learnpython4cbse Youtube Channel:


Inspiring Success SuperNova@learnpython4cbse
PYTHON ONLINE CLASSES COMPUTER SC. INFORMATICS PRAC. SAMPLE PAPERS PYTHON MCQs

Explain the following SQL functions using suitable examples.


i. LENGTH()
ii. TRIM()
iii. NOW()
iv. DAYNAME()
v. POWER()
34 Trine Tech Corporation (TTC) is a professional consultancy company. The company is planning to 5
set up their new offices in India with its hub at Hyderabad.
As a network adviser, you have to understand their requirement and suggest them the best
available solutions. Their queries are mentioned as (i) to (v) below.
Physical location of the blocks of TTC

(i)Which will be the most appropriate block, where TTC should plan to install their server?
(ii) Draw a block to block cable layout to connect all the buildings in the most appropriate manner
for efficient communication.

Page 7 of 8 Website: https://www.learnpython4cbse.com/


About Us Website: https://www.learnpython4cbse.com/ Feedback 8076665624

Learnpython4cbse Youtube Channel:


Inspiring Success SuperNova@learnpython4cbse
PYTHON ONLINE CLASSES COMPUTER SC. INFORMATICS PRAC. SAMPLE PAPERS PYTHON MCQs

(iii) Which of the following device will be suggested by you to connect each computer in each of
the buildings?
(a) Switch (b) Modem (c) Gateway
(iv) The company is planning to connect its admission office in Hyderabad which is more than
1000 km from company. Which type of network will be formed?
(v) What will be the best possible connectivity out f the following you will suggest to connect the
new setup of offices in Bangalore with its London based office.
a) Satellite Link b) Infrared c) Ethernet
35 Mr. Sharma is working in a game development industry and he was comparing the given chart on 5
the basis of the rating of the various games available on the play store.

Write the python code for the above graph and Also give suitable python statement to save this
chart.
OR
Write a python program to plot a line chart based on the given data to
depict the pass percentage of students in CBSE exams for the years 2015 to
2018 as shown below.
Year=[2015,2016,2017,2018]
Pass_Percentage=[82,83,85,90]

Page 8 of 8 Website: https://www.learnpython4cbse.com/

You might also like