0% found this document useful (0 votes)
59 views5 pages

XII IP CHN 02 QP

Uploaded by

Surjith S
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)
59 views5 pages

XII IP CHN 02 QP

Uploaded by

Surjith S
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/ 5

KENDRIYA VIDYALAYA SANGATHAN, CHENNAI REGION

PRE BOARD EXAMINATION 2023-24 12INF02 QP


CLASS XII SUBJECT: INFORMATICS PRACTICES (065)
TIME: 03 Hours M.M.:70

General Instructions:
1. This question paper contains five sections, Section A to E.
2. All questions are compulsory.
3. Section A have 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 Which of the following devices can connect different sub networks? 1
a) Hub b) Switch c)Repeater d)Router
2 Digital footprints are stored in local web browser in the form of ___________ 1
a) Browsing history
b) cookies
c) passwords
d) all of the above
3 To display last five rows of a Series S 1
a) S.Head( )
b) S.Tail(5)
c) S.Head(5)
d) S.tail( )
4 The _________ function works with data of multiple rows at a time and returns aggregate value. 1
a) SUM( ) b)AVG( ) c)MAX( ) d) COUNT( )
5 A _______ is used to connect dissimilar networks. 1
a) WAN b) MAN c) LAN d) PAN
6 Which of the following is not a built- in function? 1
a) SUM b)AVG c)MAX d)TOTAL
7 FOSS stands for ____ 1
a) Free and open source software
b) Free and outsource software
c) Free and original software
d) Free and outstanding software
8 For which of the command the output will be MPUT 1
a) Select substr (‘COMPUTER’,3,4)
b) Select str (‘COMPUTER’,3,4)
c) Select substr (‘COMPUTER’,4,3)
d) Select str (‘COMPUTER’,4,3)
9 Which of the following is not an attribute of pandas data frame? 1
a) Length b) T c)Size d)shape
10 Which attribute is used to get total number of elements in a Series? 1
a)itemsize b)size c)shape d)ndim
11 The substr( ) function in MYSQL is an example of ________. 1
a)Date function b)Text function c)Math function d)None of these
12 ___________ is defined as a crime in which computer is the medium of crime. 1
a) Computer crime b) Cyber crime c) Digital crime d) none of these
13 In MYSQL _______ option causes a group function to consider only unique values of the 1
argument expression.
a) DESC b)ORDER BY c) DISTINCT d) none of these
14 Which of the following constitute e- waste? 1
a) Discarded computers
b) Damaged printers
c) Useless CDs
d) All of the above
15 To remove the trailing space from data values in a column of MySQL table, we use 1
a) Left() b) Right() c) Trim() d)Rtrim()
16 _________ means unauthorized use of other’s trademark on products and services. 1
a) Copyright Infringement
b) Trademark Infringement
c) Plagiarism
d) Patent
17 Assertion (A): Internet cookies are text files that contain small pieces of data, like a username, 1
password and user’s preferences while surfing the internet.

Reason (R): To make browsing the Internet faster & easier, its required to store certain
information on the server’s computer.

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
18 Assertion (A): head ( ) function returns first n rows from the object based on position. 1

Reason (R): n is the selected number of rows whose default value is 3.

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
SECTION B
19 How switch is different than hub? Why it is called intelligent hub? 2
Or
What do you mean by a web browser?
20 The python code written below has syntactical errors. Rewrite the correct code and underline the 2
corrections made.
import pandas as pd
S1 = Pd.Series( [1,2,3,4] )
S2 = pd.Series( [5,6,7,8] )
df = pd.Dataframe(s1,s2)
Print(DF)
21 Consider the given SQL string: 2
“Informatics Practices Exam”
Write suitable SQL queries for the following:
i. Returns the position of the first occurrence of the substring “Pra” in the given string.
ii. To extract first five characters from the string
22 What will be the output of the following code: 2
>>>import pandas as pd
>>>A=pd.Series(data=[16,25,45,20])
>>>print(A<30)
23 What is identity theft? Give example 2

24 Complete the given Python code: 2


import pandas as ____
____ = [ [ “Aman”,45], [“Ankit”, 56], [“Avni”,67] ]
DF = pd.___________( L1,columns = [ “Name”,”Marks”], index=[1,2,3])
print(____)
25 Briefly explain the purpose of the following: 2
i. ROUND( )
ii. SQRT( )
SECTION C
26 Based on the SQL table STUDENT, write suitable queries for the following: 3

Sid SName Class House


1001 Aman 12A RED
1002 Sunil 12B RED
1003 Rohith 12A GREEN
1004 Malavika 12A BLUE

i. To display all information of the students of 12A in descending order of Sid


ii. To display Sid, SName, House of those students whose name is less than 6 characters
long.
iii. To insert a new row in the table STUDENT (1005,’Dhivya’,’12B’, ‘GREEN’)
OR
Predict the output of the following queries based on the table STUDENT given above:

i. SELECT COUNT * FROM STUDENT;


ii. SELECT COUNT (DISTINCT HOUSE) FROM STUDENT ;
iii. SELECT LENGTH (SName) FROM STUDENT;

27 Write a Python code to create a DataFrame ‘Stock’ by using dictionary: 3


Name Wages
0 Kavya 250
1 Ananya 150
2 Malini 185
3 Raja 320
28 Predict the output of the following SQL queries 3
i. SELECT RTRIM (“ ALL THE BEST “);
ii. SELECT RIGHT (‘INFORMATICS’,5);
iii. SELECT SUBSTR(‘START UP INDIA’,7,7);
29 Mr. Ravi who is a business man faced the following situations. Help him to identify the type of 3
crime happened to him?
i. His laptop was controlled by somebody in an unauthorized way.
ii. Ravi email id has been used and sent mails to his email contacts in the name of Ravi.
iii. Data in the laptop are destroyed & corrupting the system process
OR
What are the impacts of E-waste on the environment?
30 Consider the given DataFrame df: 3
Q1 Q2 Q3 Q4
0 5000 8000 12000 18000
1 10 20 30 40
Write suitable Python statements for the following:
i. Add a column called Q5 with the following data: [2000, 44].
ii. Remove the column Q2 & Q4.
iii. Remove the first and second rows from DataFrame.
SECTION D
31 Shreya, a database administrator has designed a database for a clothing shop. Help her by 4
writing answers of the following questions based on the given table:

TABLE: CLOTH
CCODE CNAME SIZE COLOUR PRICE DOP
C001 JEANS XL BLUE 990 2022-01-21
C002 T SHIRT M RED 599 2021-12-12
C003 TROUSER M GREY 399 2021-11-10
C004 SAREE FREE GREEN 1299 2019-11-12
C005 KURTI L WHITE 399 2021-12-07

i. Write a query to display cloth names in lower case.


ii. Write a query to display the lowest price of the cloths.
iii. Write a query to count total number of cloths purchased of medium size.
iv. Write a query to count year wise total number of cloths purchased.
32 Consider the following dataframe “DF”: 4
A B C
0 1 2 3
1 5 6 8

Answer the following statements:


i. Write a statement to change values of column “C” with this new value [4, 9].
ii. Write a statement to change all the values of column “B” to 0
iii. Write a statement that will return the result (2,3)
iv. Write the output of the statement: DF.size( )
SECTION E
33 Write suitable SQL queries for the following: 5
i. Display 7 characters extracted from 7th left character onwards from the string
‘INDIA SHINING’.
ii. Display the position of occurrence of string ‘COME’ in the string ‘WELCOME
WORLD’.
iii. Round off the value 23.78 to one decimal place.
iv. Display the remainder of 100 divided by 9
v. Remove all the extracted leading and trailing spaces from a column userid of the
table ‘USERS’.
OR
Consider the table SALESMAN with the following data:

SNO SNAME SALARY BONUS DOJ


A01 AKASH 25000 106.25 2019-10-14
A02 ANKITA 15000 67.33 2012-08-23
B02 BINAYA 12500 52.41 2015-02-03
B03 NEESHA 35000 NULL 2012-10-08
C07 LALITA 10600 45.78 2021-03-17

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 highest salary and lowest salary.

34 Mr.Vinod is the administrator of a school computer network. Help him to take appropriate 5
decision to achieve computer security and safe online access.
(i) Suggest a device to be used to filter network traffic to/from school network to
provide network society.
(ii) Which software he can use to get protection from viruses and spyware.
(iii) Tell him what he has to disable if possible in browser so that online patterns are not
tracked.
(iv) Suggest an active protection mechanism so that he can find a solution to spam.
(v) Suggest one active protection solution to PC intrusion.
35 Plot the following data using a line plot: 5

Day 1 2 3 4 5 6 7
Tickets sold 2000 2800 3000 2500 2300 2500 1000

 Before displaying the plot display “ Monday, Tuesday, Wednesday, Thursday, Friday,
Saturday, Sunday” in place of Day 1,2,3,4,5,6,7
 Change the color of the line to ‘Magenta’.

OR
Write short notes for the following customization options available in plotting:
i. title()
ii. plot()
iii. legend()
iv. xlabel() , ylabel()
v. grid()

You might also like