0 ratings0% found this document useful (0 votes) 303 views12 pages13.10 XII (IP) Informatics Practices-Model Question Paper
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content,
claim it here.
Available Formats
Download as PDF or read online on Scribd
PREBOARD EXAMINATION — (2020-2021)
SUBJECT~INFORMATICS PRACTICES (065)
DATE: 10-3-2021 MAX. MARKS: 70
CLASS: XII TIME: 3 HRS.
General Instructions:
1. This question paper contains two parts A.and B. Each partis compulsory.
2. Both Part A and Part B have choices.
3. Part-A has 2 sections:
a. Section —1is short answer questions, 10 be answered in one word or one line.
b. Section— I has two case studies questions. Each case study has 4 case-based sub- parts. An
examinee is to attempt any 4 out of the 5 subparts.
4. Part - B is Descriptive Paper.
5. Part- B has three sections
4. Section-Lis short answer questions of 2 marks each in which two question have internal options.
b. Section-Il is long answer questions of 3 marks each in which two questions have internal
options.
c. Section-IIlis very long answer questions of 5 marks each in which one question has internal
option.
6. All programming questions are 10 be answered using Python Language only
Part-A
Select the most appropriate option out of the options given for each question.
Attempt any 15 questions from question no I 10 21.
PARTA
SECTION-1
‘Attempt any 15 questions from questions 1 to 21
1, State whether True or False:
a. A Cookie is a small piece of data sent from a website and stored on the user’s computer by the
user’s web browser.
b. Digital footprint can be deleted
2, Fill in the blanks:
‘The function used to give title toa graph is
a. pltshow()
b. pltplot)
. pltstilte()
4. plttitle
Scanned with CamScan3. Write the output of the following SQL command.
Select round(458.46, -1);
a. 458
b.458.5
©. 459
4.460
4. Consider the following DataFrame DF,
Section Contribution
0 A 4500
1B 7000
2 C8000
3D 2000
To change the 1*column’s value at 2"! rowas ‘Z’ in DataFrame DF, we can write :
.
DF Section{1] =
DF.at[1,'Section’)
cc. DF.iat{1,0
d. All of the above
5. Given the following Seriest
A 100
B 200
Cc 300
D400
Write the Python command to double the value of Series! and store it in another series named
Series2,
6. Axes of a plot can be labelled using and, functions.
7. Website contains multiple,
8. Whatis the purpose of using ndim attribute?
a, Itretums the number of elements in the given data structure
b. It returns the Series object in the form of an ndarray
¢. It returns the number of dimensions of the given data structure
d. It retums the list of the indexes
9. Which Network topology has a centralized control of all nodes connected in thenetwork?
10. In URL, http:/vww.firstery.com/pr/main htm, which component identifies the path of a webpage?
a http
b. www firstery.com
cc. /pr/main.htm
d. None
ocanned with Vamocarn11. Which keyword will you use in the following query to display all the records of students whose name
start with S.
SELECT * from student where name, 'S%';
12. is any information about you or created by you that exists in digital fom,
either online or on an electronic storage device.
13. To skip 24, 4¢*and 6" row of CSV file, which argument will we use in read_csv()?
a. skiprows =[2,4,6]
b. skip_rows=[2,4,6]
cc. Skiprow=2,6,2]
d. None of these
14, Which of the following is not a valid plotting function of pyplot?
a. bar()
b. hist()
cc. histh()
d. barh()
15. Online personal accounts like Paytm account, PhonePe account etc. are examples of:
a. Digital property
b. Digital Wallets
c. Digital Certificates
d. Digital Signature
16. Which of the following is an act of ‘Plagiarism’?
a, Stealing a painting and selling it
b. Copying your friend’s essay and using it by own name
¢. Deleting your friend’s stored work on drive
4. Writing a Virus program
17. is a technology related health condition affecting eyesight.
18. Write the output of the following SQL. command:
SELECT left(‘Graduation 2021, 5);
a. uation 2021
b. Gradua
c. Gradu
d.
None of the above
ocanned with Vamocarn19. Consider the following table namely Employee:
Employee 1D [Name | Salary |
1001 Nisha 5500
1008 Meena 6500
1018 Rishi 5000
Which of the names will not be displayed by the below given query?
SELECT NAME FROM EMPLOYEE WHERE EMPLOYEE_ID > 1009;
20. Which networking device is used to amplify a network signal when it travels a long distance in
transmission media and due to resistance of media signal becomes weak.
a, Router
b. Switch
c. Repeater
d. Gateway
21. Which of the following protocol is not used by Email?
a. POP3
b. VoIP
c. SMTP
d. IMAP
SECTION -It
Both the case study-based questions (22 & 23) are compulsory. Attempt any four sub
parts from each question. Each sub question carries 1 mark.
22. Consider the following DataFrame Gr and answer any four questions from (i)-(v)
Name ‘Age
0 Aamir Khan AL
1 Nuzut Ad
2 Ishrar BL
3 Shahid AL
4 Furkan B2
5 Fatima Ad
6 Rashid AL
i) Choose the command that will give the following output.
Name Age
0 Aamir Khan AL
1 Nuzut Ad
2 Ishrar BI
3 Shahid AL
4 Furkan B2
ocanned with Vamocarna. print(Gr.iloc[0:5])
b. prin(Gr{0:5))
. Both a) and b)
4d. None of the above
ii) The teacher needs to add a column called Percentage with the following data
192,89, None,95,68, None,93]
Help her to identify the correct set of statement/s from the given options:
a. Gr.column{ Percentage’]=[92,89, None, 95,68.None ,93]
b. Gr['Percentage'}=[92,89, None, 95,68,None ,93]
¢. Gr.loe|'Percentage'}= [92,89,None,95,68,None,93]
d. Both (b) and (c) are correct
iii) Which of the following statement/s will drop the column ‘Age’?
a. del Grl'Age']
b.Gr.drop({'Age'), axis=I ,inplace=True)
¢. Both a) and b)
d. None of the above
iv) Which of the following command w
play the column labels of the DataFrame?
a. prin(Gr.columns())
b. prin(Gr.column())
. prin(Gr.column)
= 4. print(Gr.columns)
v) The class teacher wants to delete the first row. Help her choose the command to do so:
a, Gr.drop(0, axis =0, inplace=True)
b. Gr.drop(First row’, inplace=True)
¢. Gr. drop({0], axis=0, inplace=True)
4. Both (a) and (c) are correct
23. Consider the table TRAVEL given below and answer the following:
NO NAME DATE KM CODE Ni
101 JanishKin 2015-11-13 200 101 32
103 VedikaSahai 2016-04-21 100 103 45
105 ‘TarunRam 2016-03-23 350 102 42
102 JohnFen 2016-02-13 90 102 40
107 AhmedKhan 2015-01-10 75 104 2
104 Raveena «2016-05-28 80 105 4
ocanned with Vamocarn() Choose correct SQL query to give the following output
NO| NAME | TDATE | KM
101 | Janish Kin | 2015-11-13] 200
105| Tarun Ram | 2016-03-23 | 350
Select * from travel where km>200;
Select * from travel where km>=200;
Select no,name, tdate,km from travel where km>=200;
Select no,name, tdate,km from travel where km between 200 and 350;
eo oP
(i) Write a query to display maximum km from travel table.
(ii) Shahid has given the following command to arrange the data in ascending order of date.
Select * from travel where order by tdate;
But he is not getting the desired result. Help him by writing the correct command.
a. Select * from travel where order by tdate;
b. Select * from travel order by tdate;
c. Select * from travel in ascending order;
d. Select tdate from travel orderby tdate;
(iv) Write the query to count the number of codes in each code type from travel table.”
i, Select count(code) from travel;
ii, Select code, count(code) from travel group by code;
Select code, count(distinct code) from travel;
iv. Select code, count(distinct code) from travel groupby code;
Choose the correct option:
a. Both (ii) and (ii)
d. Only (ii)
(¥) Help John to write the command to display the name of the traveller and travel date whose travel
date is in the year 2016.
a. Select name,tdate from travel where year(tdate)=2016;
b. Select name,tdate from travel where tdate=2016;
2016;
d. Select name,max(tdate) from travel where year(tdate) ='2016',
c. Select name,tdate from travel where year(tdate)
PART.
SECTION—I
24, Consider a given Series, Series];
200 700
201 700
202 700
203 700
204 700
ocanned with Vamocarn‘Write a program in Python Pandas to create the series.
25. Find out whether any error in the following SQL command and if yes, correct the same.
Select * from employee group by dept where sum(salary) > 2000000;
26.a. If you add a new column using ALTER TABLE command, which value will be inserted in the new
column for the existing rows?
b. What is wrong with the following statement? Write the correct form of the SQL statement,
SELECT * FROM EMPLOYEE WHERE GRADE = NULL;
27.Consider the following Series object, §
P 95
Physics 89
Chemistry 92
Math = 95
a, Write the Python syntax which will display only IP.
b. Write the Python syntax to increase marks of
subjects by 10.
oR
Series object SI stores the charity contribution (Rs.) made by each section (given below):
a 4400
B 5600
c 7800
D 6350
Write a Python program to display which sections made a contribution more than Rs.5500.
28. Ishitha created a table namely student having following structure
Field Type ‘NULL, Key
StudentID Int No Primary key
Name Char(20) Yes
Class Char(5) Yes
Stream Char(5) Yes
Percentage Int No.
She wants to execute the following commands but MySQL showing error message. Explain why.
Insert into student(StudentID,Name,Class,Stream) values(44,"Ishan”, "XII", "Non-Med");
29. Jeet has to prepare a project on “Swachh Bharat Abhiyan”. He decides to gather information from the
Internet. He downloads three Web pages (Webpage1, Webpage2, Webpage3) containing information
on Swachh Bharat Mission. Answer the following questions in relation to this.
a. Whatkind of Cyber Crime can it be considered?
b. Which step should Jeet avoid from committing a Cyber Crime?
ocanned with Vamocarn30. Consider the following DataFrame, SECTION_XII
Name —_Rollno English Hindi Maths SSC Science
Zahid 155 45 87 67 70
Moein 2 67 65 90 87 56
Ishrat 378 76 98 90 78
Neha 4 9 87 78 45 87
Prateek 5 45 58 90 69 98
Bono
Write a Python code to create and display the DataFrame ‘SECTION_XII’
31. Expand the following terms:
a. FSF
b. FLOSS
c. IRC
d. RSI
32. Consider the string STR with value as “INFORMATICS PRACTICES”. Write the command in SQL to:
a, Print the last 4 characters of the string STR.
b. Display the count of characters in the string STR.
OR
Consider the string STR with value as “INFORMATICS PRACTICES”. Write the command in SQL to:
a. Convert the complete string into lower case.
b. Find the Position of the word “MAT” in the string.
33. Consider the given two code fragments. Will they produce the same output? Justify your answer.
i, import pandas as pd ii import pandas as pd
=19,10,11] list1=pd.Series(da
10,11)
objl=pd.Series(data=list! *2) objl=pd.Series(data=list!*2)
print(obj1) print(obj1)
SECTION-0
34. Write a Python program to display a horizontal bar chart of the popularity of the stalls in school fair
which is given below:
‘STALLS POPULARITY
Flower_Stall 22.2
Teecream_Stall_| 17.6
Duck_Pond 88
‘Craft_Stall 8
Tea_Stall| 77
ocanned with VamocarnThe ttle of the graph should be “Popularity of Food Stalls” and y and x axes should have titles as “Stalls” and|
‘Popularity’ respectively.
OR
Write a Python code to plot the Sales Percentage of Bags forthe last 6 months as shown in the figure given below:
Sales percentage of 6 months
35. Consider a Series object “ABC’, created using following statement:
ABC=pd Series({11,23,31,61,87,93], index=['a’, *b’, ‘e’, @’,‘e’, f'})
Based on the Series object, Answer the following:
a. Retrieve and print the last two elements.
b. What will be the output of the command?
prin(ABC{[‘b’, ‘d’, ‘T}]})
c. Print the series in reverse order.
36. Identify the term / concept:
i. Sudhir once opened an unknown website and entered his personal details such as Email ID,
Password, Bank Account Number etc. Now he has noticed his Email Inbox being flooded with
useless mails from that Site. What kind of Cyber Threat is this?
ii Any information available on the Internet, which is legally owned by the person who created it.
‘The owner has the exclusive rights to control the use of this information. This is
ji A filter that blocks unreliable and unauthorized information from the Internet before it reaches
your computer ora private network. It also helps to ensure computer privacy by restricting
external access by any unauthorized user.
OR
Define the following:
i. Cyber Crime
ii, Cyber Bullying
ocanned with Vamocarn37. Consider the table SALESMAN with the following data:
SNO SNAME SALARY | BONUS | DATEOF.JOIN
AOl__| Beena Mehta 30000 45.23 29-10-2019
A02_ [KL Sahay 50000 25.34 13-03-2018
B03 _| Nisha Thakkar | 30000 35.00 18-03-2017
B04 | Leela Yadav 80000 NULL 31-12-2018
COS _| Gautam Gola 20000 NULL 23-01-1989
C06 _| Trapti Garg 70000 12.37 15-06-1987
DO7_| Neena Sharma 50000 27.89 18-03-1999
Write the SQL commands for the following:
a. Display the name of the Salesman, position of occurrence of the string ‘na’ in salesman names.
b. Display the name of the salesman, five characters from salesman name starting from second
character.
¢. Display the name of the month for the date of join from the table.
SECTION,
38, Write a program in Python Pandas to create the following DataFrame Stationary:
PID PROD_NAME PROD_PRICE PROD_QTY
POL Notebook 85 500
Po2 Pencil Box 16 200
PO3 Water Bottle 129 50
PO4 ‘School Bag B9 70
Perform the following operations on the DataFrame :
a, Transfer the DataFrame to a csv file named “final.csv”
b. Add acolumn discount with value of 5% for all items in the DataFrame.
39. Consider the following table
TABLE : ITEMS
CODE INAME QTY PRICE COMPANY TCODE
1001 DIGITAL PAD 121 120 11000 XENITA ToD
1006 LED SCREEN 40 70 38000 SANTORA Toz
1004, CAR GPS SYSTEM 60 21800 GEOKNOW To.
1003. DIGITALCAMERA12X 160 8000 DIGICLICK To2
1005 PEN DRIVE 32 GB 600 1200 STOREHOME Tos
Write the SQL commands for the following:
ocanned with Vamocarn(a) To display the details of all the items in ascending order of item names.
(b) To delete a record whose price is more than 20000,
(©) To display the number of items, which are traded by each trader. The expected output of this
query should be
TOL 2
To2 2
TO3 1
(@) To increase the price by 1000if the company is either ‘Digiclick’ or ‘Storehome”
(©) To display all the details from the table where ‘N’ should be the third alphabet in the name of
the company.
OR
Consider a table CLOTHING with the following data:
PCode PName Brand Price Size Quantity
FT001__ FORMAL TROUSER SPYKAR 289932 15
RS009_- REGULAR SHIRT HIGHLAND 179942 12
LWJO10 LOW WAIST JEANS FLYING 329934 09
MACHINE,
FT0S7__ FORMALTROUSER RAYMOND 139930 18
PTO89 POLO TSHIRT NIKE 349944 19
RS542 REGULAR SHIRT UMBRO 1549 «56 1B
Write SQL queries to perform the following operations:
a) Display the Product Name and Price of items offered by Raymond.
b) Display the total quantity of Regular Shirts available in the table.
©) Display the maximum and minimum price of the itemsavailable in the table.
4) Display all the details from the table along with total amount which is Price * Quantity
e) Display the name, brand and price of all the items in descending order of price.
40. Consider the following:
ARBlock ‘Admin Block ‘Accounts Block ‘TTBlock
(0 Computers) (20 Computers) (11. Computers) {120 Computers)
Center to center distances between various Blocks:
HR to Admin Block : 150 Meter HR to IT Block : 75 Meter
HR to Accounts Block : 250 Meter Admin to IT Block : 130 Meter
Admin to Accounts Block :200 Meter Accounts to IT Block : 180 Meter
Computers in each Block are networked but Blocks are not networked with each other. The company
ocanned with Vamocarnhas now decided to connect the wings also.
i. Suggest the most appropriate network topology of the connection between the wings
Identify the block that can be designated as the Server for the Company.
‘Suggest the placement of the following devices with justification ifthe company
‘wants minimized network traffic
1. Repeater
2. Hub /switch
iv. Name the device that will be required to protect the network fromunwanted and
unauthorized accesses from outside the network.
v. The company is planning to link its head office situated in New Delhi with the offices in
hilly areas. Suggest a way to connect it economically.
perteeeeeetrend
ocanned with Vamocarn