XII IP QP (1)
XII IP QP (1)
XII IP QP (1)
a. Hub
b. Switch
c. Bridge
d. Gateway
Q17 and 18 are ASSERTION AND REASONING based questions. Mark the correct
choice as
a. Both A and R are true and R is the correct explanation for A
b. Both A and R are true and R is not the correct explanation for A
c. A is True but R is False
d. A is false but R is True
17 Assertion (A):- While creating a dataframe with a nested or 2D dictionary, Python interprets 1
the outer dictionary keys as the columns and the inner keys as the row indices.
Reasoning (R):- A column can be deleted using remove command.
18 Assertion (A): - Internet cookies are text files that contain small pieces of data, like a 1
username, password and user’s preferences while surfing the internet.
Reasoning (R):- To make browsing the Internet faster & easier, its required to store certain
information on the server’s computer.
SECTION B
19 List any four advantages of computer networks. 2
20 What is the purpose of IS NULL and IS NOT NULL operators? Give examples 2
21 What is the use of LIKE operator in SQL? Give example 2
22 Write a program to create the following series named M1 and index as following 2
Give the answer of the following questions on the basis of the above table.
(i) Write a query to display the substring of 3 characters of the name of each coach,
starting from second character, with their age.
(ii) Write a query to display coach name and year of joining
(iii) Write a query to display 3 characters from left of coach name.
27 Consider the Dataframe Humanoid 3
i. Write a command to display the records of the dataframe which have amount
greater than equal to 5000.
ii. How will you change the index from H_1,H_2,H_3 to 101,102,103
iii. Add a column called Sale_Price with the following data:
[6000,3700,2800]
28 Write the output of the queries (a) to (c) based on the table, Staff 3
given below:
Table: Staff
Id Name DOJ Dept Gender Exp
1 Aman 12-01-2006 Finance M 15
2 Dima 03-05-2016 Personnel F 5
3 Christin 15-11-2009 Sales F 12
a
4 Shem 20-12-2006 Sales M 15
5 Roshan 13-10-2013 Finance M 8
6 Danish 11-09-2013 Personnel M 8
7 Habeen 16-08-2011 Sales F 10
a
(a) Select avg(exp) from staff where gender = ‘F’;
(b) Select * from staff where gender =’M’ and dept like ‘P%’;
(c )Select upper(Name) from Staff where year(DOJ) < 2010 ;
29 Indu received an email from her bank stating that there is a problem with her account. 3
The mail provides instructions and a link, by clicking on that link she can login to her
account and fix the problems.
i) Which cybercrime happened with her?
ii) What immediate action should she take to handle it?
iii) Is there any law in India to handle such issues. Discuss briefly
OR
What do you understand by plagiarism? Why is it a punishable offence? Mention any
two ways to avoid plagiarism.
30 What is the purpose of GROUP BY clause in MySQL? How is it different from ORDER 3
BY clause?
OR
Consider a MySQL table ‘product’. Write the command for the following:
P_I
PROD_NAME PROD_PRICE PROD_QTY
D
P01 Notebook 85 500
P02 Pencil Box 76 200
P03 Water Bottle 129 50
P04 School Bag 739 70
(i) Display minimum PROD_QTY.
(ii) Display the value of each product where the value of each product is calculated
as PROD_PRICE * PROD_QTY
(iii) Display average PROD_PRICE.
SECTION D
31 Consider a table “Salesman” with the following data: 5
Write SQL queries using SQL functions to perform the following operations.
(i) Display salesman name and bonus after rounding off to zero decimal places.
(ii) Display the position of occurrence of the string “ta” in salesman names.
(iii) Display the four characters from salesman name starting from second character.
(iv) Display the month name for the date of join of salesman.
(v) Display the name of the weekday for the date of join of salesman.
OR
Write the SQL functions which will perform the following operations:
i) To display the day of month of current date.
ii) To remove spaces from the beginning and end of a string, “ Informatics Practices “
iii) To display the name of the day eg. Friday or Sunday from your date of birth, dob.
iv) To convert your name into Upper case.
v) To compute the mode of two numbers num1 and num2.
32 University of India is starting its first campus in a small town Parampur of central India 5
with its centre admission office in Delhi. The university has three major buildings
comprising of Admin Building, Academic Building and Research Building in the 5 km
area campus. As a network expert, you need to suggest the network plan as per (i) to
(v) to the authorities keeping in mind the distances and other given parameters.
(i) Suggest the authorities, the cable layout amongst various buildings inside the
university campus for connecting the building.
(ii) Suggest the most suitable place (i.e. building) to house the server of this
organisation, with a suitable reason.
(iii) Suggest an efficient device from the following to be installed in each of the buildings
to connect all computers. (a) Gateway (b) Modem (c) Switch
(iv) Write the name of protocol for establishing an online face to face communication
between the people in the ADMIN office of Parampur campus and Delhi Admission
Office?
(v)Which device can be installed for network security
33 Sharma is working in a game development industry and he wants to compare the given 5
chart on the basis of the rating of the various games available on the play store. Write a
Python code to get the following bar chart. Save the chart in png format.
OR
Write a Python code to get the following Line chart. Save the chart in png format.
SECTION E
34 Shreya, a database administrator has designed a database for a clothing shop. Help her by 1+1+2
writing answers of the following questions based on the given table:
Table: Cloth
35
1+1+2