0% found this document useful (0 votes)
72 views6 pages

Xii Ip PB1 2021

This document contains instructions for a 70 mark Informatics Practices exam consisting of two parts - Part A and Part B. Part A has two sections - short answer questions and two case study questions with subparts. Part B consists of three sections - short answer questions worth 2 marks each, long answer questions worth 3 marks each, and very long answer questions worth 5 marks each. All programming questions must be answered using Python. The document provides sample questions and cases for the exam.

Uploaded by

kvntpcsktpr
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)
72 views6 pages

Xii Ip PB1 2021

This document contains instructions for a 70 mark Informatics Practices exam consisting of two parts - Part A and Part B. Part A has two sections - short answer questions and two case study questions with subparts. Part B consists of three sections - short answer questions worth 2 marks each, long answer questions worth 3 marks each, and very long answer questions worth 5 marks each. All programming questions must be answered using Python. The document provides sample questions and cases for the exam.

Uploaded by

kvntpcsktpr
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/ 6

KENDRIYA VIDYALAYA NTPC SHAKTINAGAR

INFORMATICS PRACTICES (065)


Time: 3 Hours M. Marks: 70
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 5 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
a. Section-I is short answer questions of 2 marks each.
b. Section-II is long answer questions of 3 marks each.
c. Section-III is very long answer questions of 5 marks each.
6. All programming questions are to be answered using Python Language only
Part-A
SECTION - I
Select the most appropriate option out of the options given for each
question. Attempt any 15 questions from question no 1 to 21.
1. Name the attribute that returns the number of elements of a Series. 1
a. Series.itemsize b. Series.shape c. Series.size d. Series.values
2. In a DataFrame, axis= 1 ,represents the_____________ elements. 1
a. Rows b. Plot c. Columns d. Graph
3. Which topology requires a multipoint connection on a single cable? 1
4. Given the following Series S1 and S2: 1

S1 S2
A 10 A 80
B 40 B 20

C 34 C 74

D 60 D 90

Write the command to find the sum of series S1 and S2


5. Network device which connects dissimiler networks (different protogal)
a. Hub. b. Router. c. Bridge. d. Gateway 1
6. The internet is an example of
a. LAN. b.MAN. c. WAN. d. All of the above 1
7. A network having a span with in a building is called a __________ 1
8. A Primary key column 1
a. Can have NULL values b. Can have duplicate values c. Both (a) and (b)
d. Neither (a) nor (b)
9. ………describes the number of data points that fall within a specified range of values in histogram. 1
10. An act of stealing others Intellectual Property without their consent of without citing the source is called
…………….. 1
11. ______________ method in Pandas can be used to change the index of rows andcolumns of a Series
or Dataframe : 1
a. rename() b. reindex() c. reframe() d. none of the above
12. Which of the following is a SQL aggregate function?
a. Left. b. Avg. c. Join. d. Len 1
13. Function count () in SQL is a/an ___________function. 1
14. Cyber-attack that uses disguised email as a weapon
a. Spamming b. Phishing c. Hacking d. Bulling 1
15. The SQL Built-in function ________ computes the number of rows in a table. 1
16. Which of the following removes data in a table?
a. Remove. b. Drop. c. Delete. d. All of the above 1
17. Which command helps to open the database for use?
a. Use. b. Open c. Distinct d. create 1
18. The _______allows us to perform tasks related to data manipulation.
a. DDL. b. DML. c. TCL d. None of the above 1
19. We can delete an element from a series using 1
a. empty() b. delete() c. rsub() d. drop()
20. The default order of ORDER BY clause is _________________. 1
21. Patterns in MySQL are described using two special wild card characters such as
________and ______________. 1
Section-II
Both the Case study based questions are compulsory. Attempt any 4 sub parts from each
question. Each question carries 1 mark.

22. DataFrame is already created here. Write the answer for any four questions from (i)- (v) mentioned
below.

import pandas as pd
data = {'name': ['James', 'Anna', 'Janet', 'Yogi', 'Robin', 'Amal', 'Mohan'],
'city': ['Mexico City', 'Toronto', 'Prague', 'Shanghai','Manchester',
'Cairo', 'Osaka'],
'age': [41, 28, 33, 34, 38, 31, 37],
'score': [88.0, 79.0, 81.0, 80.0, 68.0, 61.0, 84.0]}
row_labels = [101, 102, 103, 104, 105, 106, 107]
df = pd.DataFrame(data=data, index=row_labels)
print(df)

i. Display the city of all the students.


(i) print(df['city'])
(ii) print(df.city)
(iii)print(df.iloc[:,1])
(iv) print(df.iloc[:,0])
Choose the correct answer
a. Both (i) and (ii) b. (i),(i),and (ii) c. Only (iv) d. All of the above 1

ii. Display the city, age and score of all the students. 1
(i) print(df('city','age','score'()
(ii) print(df.iloc[1:4])
(iii)print(df[['city','age','score']])
(iv) print(df.iloc[:,1:4])

Choose the correct statement


a. Both (i) and (ii) b. Only (iii) c. Both(iii) and (iv) d. Only (iv)

iii. Display the details of the student 103 1


(i) print(df.loc[103,1])
(ii) print(df.loc[103])
(iii)print(df.loc[103,:])
(iv) print(df.iloc[2,:])

Choose the correct statement


a. (ii) , (iii) and (iv) b. Only (iii) c. Both(iii) and (iv) d. Only (iv)

iv. Display the details of the students 104 to 107 1


print(df.loc[104:107])
print(df.iloc[3:])
print(df.iloc[104:107])
print(df.loc[3:])
Choose the correct statement
a. Only (iii) b. Both (i) and (iii) c. Both(iii) and (iv) d. Only (iv)
v. Display the city in which Robin lives. 1
(i) print(df.city[105])
(ii) print(df.iloc[‘Robin’]
(iii)print(df.iloc[4,1:2])
(iv) print(df.city[‘Robin’]

Choose the correct statement


a. (i),(iii),(iv) b. Both (i) and (iii) c. Both(ii) and (iii) d. All of the above

23. Answer the following based on Client table

(a) Identify the attribute best suitable to be declared as a primary key 1


(b) Write the cardinality and degree of the table Client. 1
(c) Insert the following data into the attributes C_Id, and City respectively in the given table
Client.
Cid =20, City =“Puducherry". 1
(d) Mani Sharma wants to remove data from the table Client from the database Product.
Which command will he use from the following:
a)DELETEFROM client;
b)DROPTABLE client;
c)DROPDATABASE Product;
d)DELETE store FROM Product; 1
e) Which field contains only numeric values in Client table. 1

PART B
Section-I
24. Consider a given Series , M1:
Marks
Term1 45

Term2 65

Term3 24

Term4 89

Write a program in Python Pandas to create the series. 2


25. List logical operator used in SQL. Write the query for any one logical operator. 2
26. Write the difference between Char and Varchar in SQL with example. 2
27. Write the syntax and example for SELECT command in SQL. 2
28. Consider the given 2 series s and s1: 2
29. List any two transmission medium for wired and wireless connection. 2
30. What is the difference between 3G and 4G technology?(Any 2) 2
31. How many switching techniques are there? Explain any one. 2
32. Expand the following terms
a. SMTP. b. CDMA. c. FTP. d. VoIP 2
33. What is the use of DISTINCT keyword in SQL? Give example. 2
OR
Differentiate between Web server and web browser. Write any two popular web browsers.
SECTION - II
34. Give the output of the following sql statement based on table GRADUATE: 3

i) Select MIN(AVERAGE) from GRADUATE where SUBJECT=“PHYSICS”;


ii) Select SUM(STIPEND) from GRADUATE WHERE div='II';
iii) Select AVG(STIPEND) from GRADUATE where AVERAGE>=65;
35. 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 already been created: 3
a. print (x*2) b. print(y*2)
Justify your answer.
36. What do you mean by Identity theft? Explain with the help of an example. 3
OR
What do you understand by Net Etiquettes? Explain any two such etiquettes.
37. Consider the following graph . Write the code to plot it. 3
SECTION - III

38.

Ravya industries has setup its new center at Shakti Nagar for its office and web based activities. The
company compound has 4 buildings as shown in the diagram above: 5
(i)Suggest the most suitable place (i.e. School/Center) to install the server of this university with
suitable reason
ii)Suggest an ideal layout for connecting these school/center for a wired connectivity
(iii)Suggest the placement of switch with suitable reason:
(iv)The organization is planning to link its sale counter situated in various parts of the same city, which
type of network out of LAN, MAN or WAN will be formed? Justify.
(v) which topology is best suit for this network?
39. Write a program in Python Pandas to create the following DataFrame “batsman” from a Dictionary: 5
B_NO Name Score1 Score2

1 Sunil Pillai 90 80

2 Gaurav Sharma 65 45

3 Piyush Goel 70 90

4 Kartik Thakur 80 76

Perform the following operations on the DataFrame :


1) Add both the scores of a batsman and assign to column “Total”
2) Display the highest score in both Score1 and Score2 of the DataFrame.

40. Write the SQL commands for (a) to (e). 5

a) List the names of those students who obtained DIV I sorted by NAME.
b)Display a report, listing NAME, STIPEND, SUBJECT and amount of stipend received in a
year assuming that the STIPEND is paid every month.
c)To count the number of students who are either PHYSICS or COMPUTER SC graduates.
d) To insert a new row in the GRADUATE table: 11,“KAJOL”, 300, “computer sc”, 75, II
e) Write a query to display highest stipend from GRADUATE table.

You might also like