Informatics Practices - QP

You might also like

Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 7

Class XII

INFORMATICS PRACTICES (065)


QUESTION PAPER

Max Marks: 70 Time: 3 hrs

General Instructions:

1. This question paper contains two parts A and B. Each part is compulsory.
2. Both Part A and Part B have choices.
3. Part-A has 2 sections:
a. Section – I is short answer questions, to be answered in one word or one line.
b. Section – II has two case studies questions. Each case study has 4 case-based subparts. An
examinee is to attempt any 4 out of the 5 subparts.
4. Part - B is Descriptive Paper.
5. Part- B has three sections
a. Section-I is short answer questions of 2 marks each in which two questions have internal
options.
b. Section-II is long answer questions of 3 marks each in which two questions have internal
options.
c. Section-III is very long answer questions of 5 marks each in which one question has question
has internal option

Part - A
Section - I Attempt any 15 questions from questions 1 to 2 Mark
s
1 By default df.head() will display __________rows from the top. 1
2 To change the index of a Data Series we need to use ______ function. 1
3 Output of following program ___________________. 1
import numpy as np
d=np.array([10,20,30,40,50,60,70])
print(d[-5:])
4 Given a Pandas series called Sequences, the command which will display the first 4 rows is 1
__________________.
a. print(Sequences.head(4))
b. print(Sequences.Head(4))
c. print(Sequences.heads(4)
d. print(Sequences.Heads(4))
5 Result of ---- select power(2,3) is __________. 1
6 In a DataFrame axis=1 represents ________ 1
a. Columns b. Rows
7 For the following dataframe df, what will be the output of--- df.loc[2,'Age] 1

8 Result of --- select round(2.456,2) is ___________. 1


9 In SQL, what is the error in following query : 1
SELECT NAME,SAL,DESIGNATION WHERE DISCOUNT=NULL;
10 Which of the following is a DML command? 1
a) SELECT b) Update c) INSERT d) All of these
11 __________is a device that filters data packets in local area networks. 1
12 Name the primary law in India dealing with cybercrime and electronic commerce. 1
13 Protocol is used to send email ……………………………… 1
14 Which of the following is not a network device? 1
a. Hub b. Switch c. Mesh d. Router
15 It is an internet service for sending written messages electronically from one computer to 1
another. Write the service name.
16 Your friend Sunita complaints that somebody has created a fake profile on Twitter and 1
defaming her character with abusive comments and pictures. Identify the type of
cybercrime for these situations.
17 A collection of hyperlinked documents on the internet forms the ? 1
a. World Wide Web (WWW) b. E-mail system
b. Mailing list d. Hypertext markup language
18 Which of the following is not an intellectual property? (i) A poem written by a poet (ii) An 1
original painting made by a painter (iii) Trademark of a Company (iv) A remixed song
19 Which command is used to delete a table? (in SQL) 1
a. Delete b. drop c. cant be deleted d. remove
20 Distinct keyword used to (in SQL) ______ 1
a. print duplicate values
b. Remove duplicate values in the result
c. display unique values
21 Write the output 1
SELECT SUBSTR(“APSKOLKATA”,4,3);
Section -II 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 Given a data frame df as shown below--- 4

a. Write command to compute rename the indexes as code of the countries USA,
SPA, ITA, UK, FR, GER.
b. Add a column capital =['Washington', 'Madrid', 'Rome', 'Londan', 'Paris', 'Berlin']
c. Write command to compute median of the deaths Column.
d. Write command to print first three rows.
e. Write command to drop column Region

23 Consider the following table Teacher: 4

Write SQL commands to---


a. select record of teacher whose name starts with 'N'.
b. increase the salary of all the teachers by 10%.
c. display all the departments name.
d. display all the teachers whose salary is less than 50000.
e. display the name of the teachers who are getting salary between 40000 and
70000.
Part - B
Section – I
24 Consider a given Series , M1: 2

Write a program in Python Pandas to create the series.

25 Write a code to plot a bar chart to depict the pass percentage of students in CBSE exams 2
for the years 2015 to 2018 as shown below—

OR

What is series? Explain with the help of an example.

26 Consider the decimal number x with value 459.2654. Write commands in SQL to: 2
(i) round it off to a whole number
(ii) round it to 2 places before the decimal.
27 Shewani has recently started working in MySQL. Help her in understanding the difference 2
between the following :
(i) Where and having clause
(ii) Count(column_name) and count
28 Consider the following SQL string: “Preoccupied” 2
Write commands to display:
(i) “occupied”
(ii) “cup”

OR

Considering the same string “Preoccupied”. Write SQL commands to display:


(i) the position of the substring ‘cup’ in the string “Preoccupied”
(ii) the first 4 letters of the string
For the following DataFrame batsman: 2
29
Perform the following operations on the DataFrame :
(i) Add both the scores of a batsman and assign to column “Total”
(ii) Display the highest score in both Score1 and Score2 of the DataFrame.

30 Answer the following (SQL)— 2


a. Write query to trim the left spaces from the sting ‘ hello world’.
b. What is the purpose to use distinct keyword.
31 Explain any two ways in which technology can help students with disabilities. 2
32 Give the full forms of the following (i) HTTP (ii) FTP (v) VoIP (vi) SSH 2
33 Identify the type of cyber crime for the following situations: 2
(i) A person complains that Rs. 4.25 lacs have been fraudulently stolen from his/her
account online via some online transactions in two days using NET BANKING.
(ii) A person complaints that his/her debit/credit card is safe with him still some
body has done shopping/ATM transaction on this card.
Section –II
34 Explain the role of online social media campaigns, crowd-sourcing and smart mobs in 3
society.
OR
Ms Samtha has many electronics gadgets which are not usable due to outdated hardware
and software. Help her to find any three best ways to dispose the used electronic gadgets.
35 Write a output for SQL queries (i) to (iii), which are based on the table: STUDENT given 3
below

(i) SELECT COUNT(*), City FROM STUDENT GROUP BY CITY HAVING COUNT(*)>1;
(ii) SELECT MAX(DOB),MIN(DOB) FROM STUDENT;
(iii) SELECT NAME,GENDER FROM STUDENT WHERE CITY=”Delhi”;
36 Consider the following dataframe, and answer the questions given below: 3
import pandas as pd
df = pd.DataFrame({“Quarter1":[2000, 4000, 5000, 4400, 10000], "Quarter2":[5800, 2500,
5400, 3000, 2900], "Quarter3":[20000, 16000, 7000, 3600, 8200], "Quarter4":[1400, 3700,
1700, 2000, 6000]})
(i) Write the code to find mean value from above dataframe df over the index and
column axis.
(ii) Use sum() function to find the sum of all the values over the index axis.
(iii) Find the median of the dataframe df

OR

Find the output of the following code:


import pandas as pd
data = [{'a': 10, 'b': 20},{'a': 6, 'b': 32, 'c': 22}]
#with two column indices, values same as dictionary keys
df1 = pd.DataFrame(data, index=['first', 'second'], columns=['a', 'b'])
#With two column indices with one index with other name
df2 = pd.DataFrame(data, index=['first', 'second'], columns=['a', 'b1'])
print(df1)
print(df2)
37 Write code to draw a histogram over the list of marks given to 20 students in a class out of 3
20. marks=[12,8,14,16,12,13,15,7,6,17,14,12,18,20,15,18,14,16,13]. Use label no of
students and marks.
Section –III
38 Write code to create the following dataframe having marks in 5 subjects for 3 students 5
using dictionary—

Write code for the following —


a. to add a new column Satrughna having marks=[90,60,70,80,40]
b. to add the sixth subject marks His=([59,67,78,89]
c. to delete column ‘Ram’

39 MyPace University is setting up its academic blocks at Naya Raipur and is planning to set up 5
a network. The University has 3 academic blocks and one Human Resource Center as
shown in the diagram below:

Center to Center distances between various blocks/center is as follows:

Number of computers in each of the blocks/Center is as follows:

a. Suggest the most suitable place (i.e., Block/Center) to install the server of this
University with a suitable reason.
b. Suggest an ideal layout for connecting these blocks/centers for a wired
connectivity.
c. Which device will you suggest to be placed/installed in each of these
blocks/centers to efficiently connect all the computers within these
blocks/centers.
d. Suggest the placement of a Repeater in the network with justification, if any.
e. Which device will be used to protect the data in the LAN.

40 A departmental store MyStore is considering to maintain their inventory using SQL to 5


store the data. As a database administer, Abhay has decided that :

• Name of the database - mystore


• Name of the table - STORE
• The attributes of STORE are as follows:
ItemNo - numeric
ItemName – character of size 20
code - numeric
Quantity – numeric

a. Identify the attribute best suitable to be declared as a primary key.


b. Write the degree and cardinality of the table STORE.
c. Insert the following data into the attributes ItemNo, ItemName and SCode
respectively in the given table STORE. ItemNo = 2010, ItemName = “Note Book”
and Scode = 25.
d. Write a query to change the quantity of sharpener to 120.
e. Write a query to add one column price.

OR

Write SQL commands for the queries (i) to (iii) and output for (iv) & (v) based
on a table COMPANY and CUSTOMER .

COMPANY
CID NAME CITY PRODUCTNAME
111 SONY DELHI TV
222 NOKIA MUMBAI MOBILE
333 ONIDA DELHI TV
444 SONY MUMBAI MOBILE
555 BLACKBERRY MADRAS MOBILE
666 DELL DELHI LAPTOP

CUSTOMER
CUSTID NAME PRICE QTY CID
101 Rohan Sharma 70000 20 222
102 Deepak Kumar 50000 10 666
103 Mohan Kumar 30000 5 111
104 SahilBansal 35000 3 333
105 NehaSoni 25000 7 444
106 SonalAggarwal 20000 5 333
107 Arjun Singh 50000 15 666

a. To display those company name which are having price less than 30000.
b. To display the name of the companies in reverse alphabetical order.
c. To increase the price by 1000 for those customer whose name starts with ‘S’
d. SELECT PRODUCTNAME,CITY, PRICE FROM COMPANY,CUSTOMER
WHERE COMPANY.CID=CUSTOMER.CID AND PRODUCTNAME=”MOBILE”;
e. SELECT AVG(QTY) FROM CUSTOMER WHERE NAME LIKE “%r%;

You might also like