Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                

Ip Sample Paper 1

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

AGARWAL VIDYA VIHAR, SURAT

ACADEMIC SESSION
KENDRIYA VIDYALAYA (2023-24)
SANGATHAN JAMMU REGION
SAMPLE PAPER SET-1
CLASS XII SUB:-INFORMATICS PRACTICES(065)
Time: 3 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 03 Long Answer type questions carrying 05 marks each.
7. Section E has 02 questions carrying 04 marks each. One internal choice is given in Q35
against part c only.
8. All programming questions are to be answered using Python Language only.

SECTION A
1 Internet is an example of: 1
(a) LAN
(b) MAN
(c) WAN
(d) PAN
2 Which of the following is violation of IPR? 1
(a) Licensing
(b) Digital footprint
(c) Phishing
(d) Plagiarism
3 E-waste management in India is done as per guidelines of 1
(a) NITI Aayog
(b) Ministry of Commerce
(c) Central Pollution Control Board(CPCB)
(d) National Green Tribunal(NGT)
4 Which aggregation function does not give useful information when applied on non 1
numeric attribute?
(a) Count
(b) Min
(c) Avg
(d) Max
5 If column “Name ” contains data set(“arun”,”varun”,”tarun”). What will be output 1
after execution of given query. Select sum(name) from students;
(a) 0
(b) Error
(c) arun varun tarun
(d) None of above.
6 “P” in GPL stands for:- 1
(a) Product
(b) Public
(c) Private
(d) Proprietry.
7 Which SQL statement count the unique cities from ‘city’ attribute of table ‘bank’. 1
(a) SELECT DISTINCT COUNT(CITY) FROM BANK;
(b) SELECT COUNT(DISTINCT CITY) FROM BANK;
(c) SELECT DISTINCT COUNT(*) FROM BANK;
(d) SELECT COUNT(CITY) FROM BANK;

1
8 Which one of the following functions is used to find sum of numeric values of 1
attributes?
(a) Sum()
(b) Total()
(c) Count()
(d) Avg()
9 To display the first 10 rows of series ‘S’ we may write : 1
(a) S.Head()
(b) S.head(10)
(c) S.Head(10)
(d) S.tail()
10 Which of the following statement will import dataframe from pandas library? 1
(a) import DataFrame from pandas
(b) from pandas import DataFrame
(c) import DataFrame from Pandas
(d) from Pandas import DataFrame
11 Which of the following is an aggregation function? 1
(a) ROUND()
(b) UCASE()
(c) NOW()
(d) SUM()
12 Which of the following functions is used to import a dataframe from csv file ? 1
(a) read_csv()
(b) import_csv()
(c) to_csv()
(d) export_csv()
13 What can be done from browser settings? 1
(a) Change home page
(b) Set default browser.
(c) Clear cookies
(d) All of the above
14 Which SQL function is used to display length of string values from attributes? 1
(a) Len()
(b) Length()
(c) Sum()
(d) None of the above
15 What will be considered as violation of IPR? 1
(a) Plagiarism
(b) Copyright Infringement
(c) Trademark Infringement
(d) All of the above
16 __________ is the legal term to describe terms under which people are allowed to 1
use the copyrighted material.
(a) Licensing
(b) Copyright
(c) Patent
(d) Trademark
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
17 ASSERTION: Websites keep track of users with the help of cookies. 1

2
REASON: Cookies are small text files that stores user information and send it to
server when browser makes request again.
18 ASSERTION: Data can easily be interpreted/visualised in python in form of line 1
graph, bar graph and histograms.
REASON: To visualise data matlotlib.pyplot needs to be imported in python
program
SECTION B
19 Write steps for hosting a website. 2
OR
Explain the types of network.
20 Madhu, a database administrator needs to display class wise maximum marks of all 2
classes above 8th class. She is encountering an error in following query.
SELECT CLASS,MAX(MARKS) FROM STUDENT GROUP BY CLASS
WHERE CLASS>8;
Help her in identifying error and write correct query by suggesting possible
corrections.
21 What is purpose of GROUP BY clause in SQL. Explain with suitable example. 2
22 Write a program to create a series using numpy array that stores capitals of some 2
countries. Give appropriate index while creating series.
23 Discuss e-waste management strategies. 2
OR
What is an IPR? Give examples of IPR.
24 What will be the output of following code: 2
import pandas as pd
s=pd.Series({1:1,2:4,3:9,4:16})
print(s[s%2==0])
25 Carefully observe the following code: 2
import pandas as pd
Eng Math Hindi
Ayush 92 88 93
Piyush 86 89 98
Nitin 73 81 92
d1={‘Eng’:92,”Math”:88,’Hindi’:93}
d2={‘Eng’:86,”Math”:89,’Hindi’:98}
d3={‘Eng’:73,”Math”:81,’Hindi’:92}
df = pd.DataFrame([d1,d2,d3],index=[‘Ayush’,’Piyush’,’Nitin’])
print(df)
(i) List the column names of dataframe df.
(ii) List the index name of dataframe df.
SECTION C
26 Write outputs for SQL queries (i) to (iii) which are based on the given table BANK: 3
ACCNO ANAME CITY BALANCE LASTUPDATEDON
101011 Ramesh Jammu 1000.67 2022-11-06
101316 Suresh Srinagar 9025.76 2022-11-01
101512 Mehak Delhi 8053.43 2022-11-06
101011 Kashish Jammu 7061.55 2022-10-10
(i) SELECT SUBSTR(ACCNO,3,2), CITY FROM BANK WHERE
BALANCE>5000;
(ii) SELECT ROUND(BALANCE,1),ANAME FROM BANK WHERE
LENGTH(ANAME)>5;
(iii) SELECT YEAR(LASTUPDATEDON), ACCNO FROM BANK
WHERE BALANCE>1000;
27 Write python code to create a dataframe df (runs scored by batsman in last three 3
years) with appropriate row labels from the dictionary given below:

3
{‘Virat’:[1000,962,1035],’Rohit’:[635,580,602],’Surya’:[1200,1008,1258]}
28 Consider the given dataframe df: 3
Year State Population
0 2017 Punjab 10.5
1 2018 HP 10.3
2 2019 Rajasthan 11.5
3 2020 Gujrat 10.8
4 2021 Haryana 10.9
(i) Add a column ‘debt’ with value 10 for each state(row).
(ii) Add new state MP with population 10.5
(iii) Remove the column debt.
29 Priya has received an SMS on mobile, asking her to provide the details of her old 3
debit card in order to get new one. She clicked on the link in the message and entered
the details of her debit card assuming that this message was from her bank.
(i) Which cyber crime happened with her?
(ii) What immediate action should she take to handle it?
(iii) Is there any law in India to handle such issues. Discuss briefly.
OR
What are cyber crimes? Name a few cyber crimes and is there any law in India which
guards its citizens against cyber crimes?
30 Based on the table STUDENT given here, write suitable SQL queries for the 3
following:
RollNo Name Class Gender Height Weight
1 Amit XI M 168 72
2 Ashok XII M 169 71
3 Arun X M 163 70
4 Diksha XII F 159 61
5 Akanksha XI F 156 60
6 Sita XI F 162 63
7 Gita XI F 157 58
8 Ram X M 159 59
(i) Display total number of male and female students.
(ii) Display gender wise minimum weight.
(iii) Display class wise tallest student
OR
What are aggregation functions? Name all the aggregation functions. Write
examples for all the aggregation functions.
SECTION D
31 Write suitable SQL query for the following: 5
(i) Display 3 characters extracted from the 5th left character from string
“INFORMATICS”.
(ii) Display the position of occurrence of string ‘WORLD’ in string “HELLO
WORLD”.
(iii) Round off the value 23.52 to zero decimal place.
(iv) Display the remainder of 50 divided by 3.
(v) Remove all the expected leading spaces from the column ‘NAME’ of
table ‘STUDENT’.
OR
Explain the following SQL functions using suitable examples:
(i) LCASE()
(ii) TRIM()
(iii) INSTR()
(iv) MONTHNAME()
(v) MOD()

4
32 Hi Speed Technologies Ltd. is a Delhi based organisation which is expanding its 5
office setup to Chandigarh. At Chandigarh office they are planning to have 3
different blocks for HR, Accounts and Logistics related work. Each block has
number of computers which are required to be connected in a network for
communication, data and resource sharing.
Delhi Chandigarh Office
Head Office HR Block Accounts Block

Logistics Block

As a network consultant, you have to suggest the best network related solutions for
them for issues/problems raised in (i) to (v), keeping in mind the distances between
various blocks/locations and other given parameters.

Shortest distances between various blocks/locations:


HR Block to Accounts Block 400m
Accounts Block to Logistics Block 200m
Logistics Block to HR Block 150m
Delhi Head Office to Chandigarh Office 270 km

Number of computers installed at various blocks are as follows:


HR Block 70
Accounts Block 50
Logistics Block 40

(i) Suggest the most appropriate block/location to house the server in the
Chandigarh office(out of the three blocks) to get the best and effective
connectivity. Justify your answer.
(ii) Suggest the cable layout to efficiently connect various blocks with in
Chandigarh office.
(iii) Suggest the network device to use within various blocks to connect
computers.
(iv) Suggest a device/software and its placement that would provide data
security for the entire network of Chandigarh office.
(v) Which of the network type, would it be?
33 Write python code to plot a bar chart for Library Books as shown below: 5

Also give suitable python statement to save this chart.


OR

5
Write a program to plot a line chart based on the given data to depict the runs scored
by a batsman in 5 innings.
Innings = [1,2,3,4,5]
Runs = [102,88,98,146,52]
SECTION E
34 Pallavi, a database administrator has designed a database for cars showroom. Help 1+1+2
her by writing answers to the following questions based on the given table:
SALE
InvoiceNo CarId CustId SaleDate PaymentMode EmpId SalePrice
101 D01 C01 2019-01- Credit Card E04 613247.00
24
102 S01 C02 2018-12- Online E01 590321.00
12
103 S02 C04 2019-01- Cheque E10 604000.00
25
104 D01 C01 2018-10- Bank Finance E07 659982.00
15
105 E01 C03 2018-12- Credit Card E02 369310.00
20
(i) Write a query to display invoice number and name of month in which car is
purchased.
(ii) Write a query to display highest price .
(iii) Write query to display all the information in descending order of sale price.
OR(for part iii only)
Write query to display the number of cars purchased through each payment
method.
35 Mr. Ajay, a data analyst has designed a dataframe df that contain data about marks 1+1+2
obtained by students in different subjects. Answer the following questions:
Accountancy Economics IP
Ayush 92 82 72
Karan 87 89 87
Tarun 95 88 97
(a) Predict output of following python statement:
(i) df.shape
(ii) df[1:]
(b) Write python statement to display the marks of ayush and tarun.
OR(for part (b) only)
Write python statement to compute the sum of marks of all the subjects of
given dataframe and add it as another column.

You might also like