12 IP QUESTION PAPER
12 IP QUESTION PAPER
AZAMGARH
HALF YEARLY/PRE BOARD EXAMINATION – I (2022-2023)
M.M: 70 STUDENT’S NAME: ……………………..…...........……............. CLASS: XII
TIME: 3 hours ROLL NO: ………..… SUB: Informatics Practices(065)
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.
PART A
01 The main computer in any network is called as 1
a. Client
b. Server
c. Hub
d. Switch
02 Sending the email to any cc means 1
SELECT name FROM stu WHERE subject LIKE ‘_______ Computer Science’;
Which one of the following has to be added into the blank space to select the subject which
has Computer Science as its ending string?
a) $ b) _ c) || d) %
05 If column “Marks” contains the data set {25, 35, 25, 35, 38}, what will be the output after the 1
execution of the given query?
a) SELECT DISTINCT
b) SELECT UNIQUE
c) SELECT DIFFERENT
d) All of the above
09 An attribute in a relation is foreign key if it is the _________key in any other relation. 1
a) Candidate
b) Primary
c) Super
d) Sub
10 Pandas mainly used for 1
a) Data Recovery
b) Data Backup
c) Data Visualizations
d) Data Analysis
11 Which of the following statement is not correct for Pandas? 1
a) sequence
b) ndarray
c) tuple
d) all of these
13 An application that can be accessed via a web browser, over a network connection is called: 1
a. Web-based application
b. Server-based application
c. Both a) and b)
d. None of the above
14 Which of the following queries contains an error? 1
a) Select * from emp where empid = 10003;
b) Select empid from emp where empid=10006;
c) Select empid from emp;
d) Select empid where empid=1009 and lastname=’GUPTA’;
15 With SQL, how can you return the number of not null record in the Project field of 1
“Students” table?
a) SELECT COUNT (Project) FROM Students
b) SELECT COLUMNS (Project) FROM Students
c) SELECT COLUMNS (*) FROM Students
d) SELECT COUNT (*) FROM Students
16 A______ is property of the entire relation, which ensures through its value that each tuple is 1
unique in a relation.
a) Rows
b) Key
c) Attribute
d) fields
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 (A): Digital footprint is the trail of data we leave behind when we visit any website 1
(or use any online application or portal) to fill-in data or perform any transaction.
Reason (R): While online, all of us need to be aware of how to conduct ourselves, how best
to relate with others and what ethics, morals and values to maintain.
18 Assertion (A): pandas is an open source Python library which offers high performance, 1
easy-to-use data
structures and data analysis tools.
Reason (R): Professionals and developers are using the pandas library in data science and
machine learning.
PART B
19 What is the difference between STAR and BUS topologies? 2
OR
Why we use a domain name address in place of IP address of the Server to access any web
site?
20 Anjali writes the following commands with respect to a table employee having fields, 2
empno, name, department, commission.
Command1: Select count (*) from employee;
Command2: Select count(commission) from employee;
She gets the output 4 for the first command but get an output 3 for the second command.
Explain the output with justification.
21 Make difference between DELETE and DROP command. Explain with suitable examples of 2
each.
22 Write a python code to create a dataframe with appropriate headings from the list given 2
below:
['S101', 'Amy', 70], ['S102', 'Bandhi', 69], ['S104', 'Cathy', 75], ['S105','Gundaho', 82]
23 What do you understand by e-waste management? Explain. 2
OR
Explain Digital Rights Management. How can we protect our content?
24 Predict the output of the following code fragments. 2
x=np.array([1,2,3])
y=np.array([3,2,1])
z=np.concatenate([x,y])
print(z)
25 Write one python program to find the following from the given dataframe DF: 2
Rollno Name Age Marks
11 Aruna 18 68
12 Mohini 14 47
13 Kiya 13 78
14 Lakshmi 16 87
15 Ravisha 14 60
a) Maximum marks and minimum marks
b) sum of all the marks
PART C
26 A Gift Gallery has different stores in India. Database Administrator Abhay wants to maintain 3
database of their Salesmen in SQL to store the data, He has decided that
Name of the database: GiftGallery
Name of the table: Salesman
Attributes of the tables: Scode – Numeric, Sname – Character 25, Address - Character 25,
Dojoin - Date, Sales – Numeric and Area – Character 10
Consider the following records in ‘Salesman’ table and answer the given questions:
Number of computers:
Block A 32
Block B 150
Block C 45
Head office 10
b. Suggest the most suitable place to house the server with justification.
e. The organization is planning to provide a high-speed link with its head office situated in
Mumbai using a wired connection. Which of the following cables will be most suitable for
this job?
33 Write a Python program to draw a line as shown below using given axis values with suitable 5
label in the x axis, y axis and a title.
OR
34 Write SQL queries for (i) to (iv) which are based on the tables. 1+1+2
Table: ACCOUNT
ANO ANAME ADDRESS
Table: TRANSACT
(ii)To display the ANO and AMOUNT of all Deposits and Withdrawals done in the month of
October 2017 from table TRANSACT.
(iii)To display the last date of transaction (DOT) from the table TRANSACT for the
Accounts having ANO as 103.
To display all ANO, ANAME and DOT of those persons from tables ACCOUNT and
TRANSACT who have done transactions less than or equal to 3000.
35 Suppose a data frame contains information about student having columns rollno, name, class 1+1+2
and section. Write the code for the following: