CLASS XII
IP SAMPLE PAPER (065) (SET - 2)
SESSION - 2020-21
Max Marks: 70 Time: 3 Hrs.
General Instructions:
- This question paper contains two parts A and B. Each part is compulsory.
- Both Part A and Part B have choices.
- Part-A has 2 sections:
- Section – I is short answer questions, to be answered in one word or one line.
- 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.
- Part – B is Descriptive Paper.
- Part – B has three sections:
- Section – I is short questions of 2 marks each in which two questions have internal options.
- Section – II is long answer questions of 3 marks each is which two questions have internal options.
- Section – III is very long questions of 5 marks each in which one question has internal option.
Part – A |
Section – I Attempt any 15 questions from 1 to 21 |
1 |
State whether True or False:
|
Ans |
|
2 |
Fill in the blanks: A ________ is a summarization tool for discrete or
continuous data.
|
Ans |
Histogram |
3 |
Write the output of the following SQL command. SELECT MONTHNAME(‘2021-02-03’) |
Ans |
February |
4 |
Which of the following is not a descriptive statics
function?
|
Ans |
Add() |
5 |
Given the following Series A1 and A2: A1
A2
Write the command to find the sum of Series A1 and A2 |
1 |
Ans |
print(A1 + A2) |
6 |
Which argument must be set with plotting functions for
legend() to display the legends?
|
Ans |
Label |
7 |
Unauthorized monitoring of other people’s communications
is called _____________. |
Ans |
Eavesdropping |
8 |
In a DataFrame, Axis = 0 represents the __________
elements. |
Ans |
Row |
9 |
Which portion of the URL below records the directory or
folder of the desired resource? http://www.somestore.com/firstfloor/shoes.htm
|
Ans |
Firstfloor |
10 |
The first page that you normally view at a web site is its:
|
Ans |
Home page |
11 |
For Web pages where the information is changed frequently,
for example, stock prices, weather information which out of the following
options would you advise?
Justify your answer. |
Ans |
Dynamic web page |
12 |
Which of the following is not an aggregate function?
|
Ans |
With |
13 |
Any fraudulent business practice that extracts money from
an unsuspecting, ignorant person is called a _____________. |
Ans |
Scam |
14 |
___________ is a popular data-science library of Python. |
Ans |
Pandas |
15 |
Which amongst the following is not an example of browser?
|
Ans |
Avast |
16 |
Website store the browsing activity through _________. |
Ans |
Cookies |
17 |
According to a survey, one of the major Asian country
generates approximately about 2 million tones of electronic waste per year.
Only 1.5% of the total e-waste gets recycled. Suggest a method to manage
e-waste. |
Ans |
Buy environmentally
friendly electronic Donate used
electronics to social programs Reuse, refurbish
electronics Recycling e-waste Any other for the
correct answer to considered |
18 |
To sort the rows of the result table, the __________
clause is specified. |
Ans |
ORDER BY |
19 |
Write the SQL command that will display the current time
and date. |
Ans |
SELECT NOW();
|
20 |
The address of location of the document on the world wide
web is called its ________. |
Ans |
URL
|
21 |
The original code written by programmers for a software is
known as ____________. |
Ans |
Source code |
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. Consider the following DataFrame df and answer any four
questions from (i) to (v).
|
||||||||||||||||||||||||
(i)Write down the command that will give the following
output. City Mumbai Maxtemp 40 Mintemp 32 Rainfall 41.8 dtype: object
|
||||||||||||||||||||||||
b. print(df.max()) |
||||||||||||||||||||||||
(ii) Write down the command that will give the following
output. City
DelhiBengaluruChennaiMumbaiKolkata Maxtemp 174 Mintemp 128 Rainfall
178.1 dtype: object
|
||||||||||||||||||||||||
print(df.sum()) |
(iii) |
Which of the following command will display the column
labels of the DataFrame?
|
Ans |
c. print(df.columns |
(iv) |
Which of the following statements will give the exact
number of values in each column of the dataframe?
Choose the correct
option:
|
Ans |
a. both (1) and (2) |
(v) |
Add a new column, the values of Moderate
[55.6,45.8,33.7,67.2,65.3], to DataFrame. Identify the correct command.
|
Ans |
b. df[‘Moderate] =
[55.6,45.8,33.7,67.2,65.3] |
23 |
Consider the table STUDENT given below:
|
(i) |
Write the command that will give the output:
|
|||||
Ans |
SELECT NAME FORM STUDENT WHERE CITY = ‘AGRA’ OR CITY =
‘MUMBAI’; OR SELECT NAME FROM STUDENT WHERE CITY IN(‘AGRA’, ‘MUMBAI’); |
|||||
(ii) |
Display the output of the following command? SELECT * FROM STUDENT WHERE GENDER = ‘F’ ORDER BY MARKS; |
Ans |
|
(iii) |
Prachi has given the following command to obtain the
highest marks SELECT MAX(MARKS) FROM STUDENT WHERE GROUP BY CLASS; But she is not getting the desired result. Help her by
writing the correct command. |
Ans |
SELECT CLASS, MAX(MARKS) FROM STUDENT GROUP BY CLASS;
|
(iv) |
State the command to display the average marks scored by
students of each gender who are in class XI?
Choose the correct option:
|
Ans |
Both (ii) and (iv)
– option b correct |
(v) |
Help Ritesh to write the command to display the name of
the youngest student? |
1 |
Ans |
SELECT NAME,
MAX(DOB) FROM STUDENT; |
|
|
Part – B Section – I |
|
24 |
Write the output of the following code: import numpy as np array1 = np.array( [10,12,14,16,18,20,22] ) array2 = np.array( [10, 12, 15, 16, 12,20,12] ) a = (np.where(array1 = = array2)) print(array1[a]) |
2 |
Ans |
[10, 12, 16, 20] |
|
25 |
State any two differences between single row functions and
multiple row functions. OR What is the difference between order by and group by
clause when used along with the select statement? Explain with example |
2 |
||||||||||||||||||||
Ans |
Differences between
single row functions and multiple row function: (i)
Single row functions work on one row only whereas
multiple row functions group rows. (ii)
Single row functions return one output per row whereas
multiple row functions return only one output for a specified group of rows.
OR The order by clause
is used to show the contents of a table/relation in a sorted manner with
respect to the column mentioned after the order by clause. The contents of
the column can be arranged in ascending or descending order.
The group by clause
is used to group rows in a given column and then apply an aggregate function
eg. Max(), min() etc. on the entire group.
|
|
28 |
Shanya khanna is using a table Employee. It has the
following columns:
Admno, Name, Agg, Stream [Column Agg contains Aggregate marks] She wants to display highest Agg obtained in each Stream. She wrote the following statement: SELECT STREAM, MAX(AGG) FROM EMPLOYEE ; But she did not get the desired result. Rewrite the above
query with necessary changes to help her get the desired output. |
2 |
Ans |
SELECT STREAM,
MAX(AGG) FROM EMPLOYEE GROUP BY STREAM ; |
|
29 |
Consider the following SQL string: “Preoccupied” Write the commands to display:
OR Considering the same string “Preoccupied” Write the SQL command to display:
|
2 |
Ans |
(a) SELECT SUBSTR(“PREOCCUPIED”, 4) ;
OR SELECT SUBSTRING(“PREOCCUPIED”, 4) ;
OR SELECT MID(“PREOCCUPIED”, 4) ;
OR SELECT RIGHT(“PREOCCUPIED”, 8) ; (b) SELECT SUBSTR(“PREOCCUPIED”, 6, 3) ; OR SELECT SUBSTRING (“PREOCCUPIED”, 6, 3) ; OR SELECT MID(“PREOCCUPIED”, 6, 3 ); OR
|
|
30 |
Consider the following DataFrame, sales
Write commands to:
|
2 |
|||||||||||||||||||||||||
Ans |
|
|
31 |
Expend the following terms related to Computer Networks:
|
2 |
Ans |
|
|
32 |
List any two health hazards related to excessive use of
Technology. |
2 |
Ans |
The continuous use
of devices like Smartphoes, computer desktop, laptops, head phones etc. cause
a lot of health hazards if not addressed. These are:
|
|
33 |
Nivedita has recently shifted to new city and new school.
She does not know many people in her new city and school. But all of a
sudden, someone is posting negative, demeaning comments on her social
networking profile, school site’s forum etc. She is also getting repeated mails from unknown people.
Every time she goes online, she finds someone chasing her online.
|
2 |
Ans |
|
|
|
Section – II |
|
34 |
Consider two objects x and y. x is a list whereas y is a
Series. Both have values 20, 40, 90, 110. What will be the output of the following two statements
considering that the above objects have been created already.
|
3 |
Ans |
[20, 40, 90, 110, 20, 40, 90, 110]
1 80 2 180 3 220
|
|
35 |
Describe the following security issue and suggest a way of
protecting against it.
OR What do you understand by Net Etiquettes? Explain any two
such etiquettes. |
3 |
Ans |
OR Net Ettiquets refers to the proper manners and behavior we
need to exhibit while being online. These include:
Or any other relevant
answer. |
|
36. Write a code to plot the speed of a passenger train as shown in the figure given below: 3
OR
Draw the following bar graph representing the number of students in each class.
Ans |
import
matplotlib.pyplot as plt import numpy as np x = np.arange(1, 5) plt.plot( x, x*
1.5, label = ‘Normal’) plt.plot( x, x*
3.0, label = ‘Fast’) plt.plot( x, x/3.0,
label = ‘Slow’) plt.legend() plt.show()
OR
import
matplotlib.pyplot as plt Classes = [‘VII’,
‘VIII’, ‘IX’, ‘X’] Students = [40, 45,
35, 44] plt.bar(Classes,
Students) plt.show()
|
37 |
Consider the following table ‘GAMES’. Table : GAMES
Write SQL commands to:
|
3 |
Ans |
|
|
|
Section – III |
|
|||||||||||||||||||||||||
38 |
Write a program in Python Pandas to create the following
DataFrame batsman from a Dictionary:
Perform
the following operations on the DataFrame:
|
5 |
Ans |
import pandas as pd d1 = {B_No’ :
[‘Sachin Tendulkar’, ‘MS Dhoni’, ‘Rishabh Pant’, Hardik Pandya’], ‘Score1’ : [90, 70, 65, 55], ‘Score2’ : [80, 85, 56, 78], ‘Score3’ : [75, 95, 78, 67] }
df = pd.
DataFrame(d1) print(df) df[‘Total’] =
df[‘Score1] + df[‘Score2’] + df[‘Score3]
print (“Maximum
Scores are:”, max(df[‘Score1’], max(df[‘Score2’, max(df[‘Score3] ) )
|
|
39 |
Write the SQL functions which will perform the following
operations:
OR In a Database Company, there are two tables given below: Table:SALES
Table: LOCATION
Write SQL queries for the following:
|
5 |
hello sir, how r u
ReplyDelete