0% found this document useful (0 votes)
68 views

12 IP QUESTION PAPER

Uploaded by

All In One
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)
68 views

12 IP QUESTION PAPER

Uploaded by

All In One
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/ 8

GD GLOBAL SCHOOL

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

a. Sending the mail with a carbon copy


b. Sending the mail without a carbon copy
c. Sending the email to all and hiding the address
d. All of the above
03 Which of the following reduce e-waste? 1

a. purchasing more and more gadgets


b. using them for a short time and then discarded
c. good maintenance
d. all of these
04 Consider the following query: 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?

SELECT MARKS (DISTINCT) FROM STUDENTS;

a) 25, 35, 25, 35, 38


b) 25, 25, 35, 35
c) 25, 35, 38
d) 25, 25, 35, 35
06 The term FLOSS is associated with: 1

a) Non-open source software


b) proprietary software
c) Open Source software
d) None of these
07 Which of the following sublanguages of SQL is used to query information from the data base 1
and to insert tuples into, delete tuples from, and modify tuples in the database?

a) DML (Data Manipulation Language)


b) DDL (Data Definition Language)
c) Query
d) Relational Schema
08 In SQL, which command is used to SELECT only one copy of each set of duplicable rows 1

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) Pandas is open source built in library


b) Pandas offers high-performance, easy to use data structures
c) Pandas provides tools for backup and recovery
d) Pandas provides tools for data analysis
12 You can create a Python pandas series using? 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:

i. State the command that will give the output as:


Sname
Sushant
Priya
ii. Which of the following commands will display the details of all sales record of North
Area, regardless of case (whether North / NORTH / north):
iii. Help Priya to display sname and sales of east and west areas
27 Consider a Dataframe ‘emp_df’ - 3

Name Age Salary


Shalini 25 32000
Gaurav 31 35000
Bhavya 29 37000
Divansh 28 27000
Write a Python code to display a line graph with names on x-axis and age on y-axis.
Give appropriate names for axis and title for the graph.

28 Write the code in pandas to create the following dataframes: 3


df1 df2
mark1 mark2 mark1 mark2
0 10 15 0 30 20
1 40 45 1 20 25
2 15 30 2 20 30
3 40 70 3 50 30
Write the commands to do the following operations on the dataframes
given above:
(i) To add dataframes df1 and df2.
(ii) To subtract df2 from df1
(iii) To rename column mark1 as marks1in both the dataframes df1 and df2.
(iv) To change index label of df1 from 0 to zero and from 1 to one.
29 Rishi has to prepare a project on “Swachh Bharat Shreshth Bharat”. He decides to get 3
information from the Internet. He downloads three web pages (webpage1, webpage 2,
webpage 3) containing information on the given topic.
1. He read a paragraph on from webpage 1 and rephrased it in his own words. He finally
pasted the rephrased paragraph in his project.
2. He downloaded three images of from webpage 2. He made a collage for his project using
these images.
3. He also downloaded an icon from web page 3 and pasted it on the front page of his project
report.
i. Step1 An Example of __________
a. Plagiarism
b. Paraphrasing
c. copyright infringement
d. Intellectual Property right
ii. Step 2 An act of __________
a. plagiarism
b. copyright infringement
c. Intellectual Property right
d. Digital Footprints
iii. Step 3 An act of _________
a. Plagiarism
b. Paraphrasing
c. copyright infringement
d. Intellectual Property right
OR
Explain the role of online social media campaigns, crowdsourcing and smart mobs in society.
30 Based on table CLUB given here, write suitable SQL queries for the following: 3

a. To show all information about the swimming coaches in the club.


b. To list names of all coaches with their date of appointment (DATOFAPP) in descending
order.
c. To display a report, showing coachname, pay, age and bonus (15% of pay) for all the
coaches.
OR
Explain each of the following with illustrations using a table
(i) Candidate Key (ii) Primary Key (iii) Foreign Key
PART D

31 Write suitable SQL query for the following: 5


i. Display 7 characters extracted from 7th left character onwards from the string ‘INDIA
SHINING’.
ii. Display the position of occurrence of string ‘COME’ in the string ‘WELCOME WORLD’.
iii. Round off the value 23.78 to one decimal place.
iv. Display the remainder of 100 divided by 9.
v. Remove all the expected leading and trailing spaces from a column userid of the table
‘USERS’.
OR
Explain the following SQL functions using suitable examples.
i. UCASE()
ii. TRIM()
iii. MID()
iv. DAYNAME()
v. POWER()
32 KVS consultants are setting up a secured network for their office campus at Gurgaon. They 5
are planning to have connectivity between 3 blocks and the head office at Mumbai. Answer
the questions (a) to (d) after going through the block positions in the campus and other
details, which are given below:

Distances between various buildings:

Block A to Block C 120m

Block A to Block B 55m

Block B to Block C 85m

New Delhi Campus to Head office 2060 Km

Number of computers:

Block A 32

Block B 150

Block C 45

Head office 10

a. Suggest a layout of connections between the blocks

b. Suggest the most suitable place to house the server with justification.

c. Suggest a connection medium to connect Gurgaon campus with head office.

d. Suggest the placement of the following devices with justification:

i)Switch ii) Repeater

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?

i) Optical Fiber ii) Co-axial Cable iii) Ethernet Cable

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

What will be the output of the following code:


import matplotlib.pyplot as plt
plt.plot([1,2,3],[4,5,1])
plt.show()
PART E

34 Write SQL queries for (i) to (iv) which are based on the tables. 1+1+2
Table: ACCOUNT
ANO ANAME ADDRESS

101 Nirja Singh Bangalore

102 Rohan Gupta Chennai

103 Ali Reza Hyderabad

104 Rishabh Jain Chennai

105 Simran Kaur Chandigarh

Table: TRANSACT

TRNO ANO AMOUNT TYPE DOT

T001 101 2500 Withdraw 2017-12-21

T002 103 3000 Deposit 2017-06-01

T003 102 2000 Withdraw 2017-05-12

T004 103 1000 Deposit 2017-10-22


T005 101 12000 Deposit 2017-11-06
(i)To display details of all transactions of TYPE Deposit from 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.

OR (OPTION FOR PART iii ONLY)

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:

(i) Add one more column as fee

(ii) Write syntax to transpose data frame.

(iii) Write python code to delete column fee of data frame.

OR (OPTION FOR PART iii ONLY)

Write the code to append df2 with df1

You might also like