0% found this document useful (0 votes)
74 views8 pages

Xii Ip QP

Uploaded by

saranakash0228
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
74 views8 pages

Xii Ip QP

Uploaded by

saranakash0228
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 8

(SET 1)

KENDRIYA VIDYALAYA SANGATHAN, LUCKNOW REGION


PRE-BOARD EXAMINATION CLASA XII (2023-24)
SUBJECT: INFORMATICS PRACTICES (065)
M.M.: 70 TIME: 3 Hrs.

GENERAL INSTRUCTIONS:

1. This question paper contains five sections, Section A to E.


2. All questions are compulsory.
3. Section A has 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 02 questions carrying 04 marks each.
7. Section E has 03 questions carrying 05 marks each.
8. All programming questions are to be answered using Python Language only.

Q.No. Section-A Marks


1 Which among the following is not a multiple row function in SQL? 1
i. SUM()
ii. COUNT()
iii. AVG()
iv. TOTAL()

2 A is a device that connects the organisation’s network with the 1


outside world of the Internet.
i. Hub
ii. Modem
iii. Gateway
iv. Repeater
3 Given a Pandas series called Sequences, the command which will display the 1
first 4 rows is .
a. print(Sequences.head(4))
b. print(Sequences.Head(4))
c. print(Sequences.heads(4)
d. print(Sequences.Heads(4))
4 Copyright, Patent and Trademark comes under: 1
i. Intellectual Property Right
ii. Individual Property Right
iii. Industrial Property Right

1
iv. International Property Right

5 If column “salary” contains the data set (45000, 5000, 55000, 45000, 55000), what 1
will be the output after the execution of the given query?
SELECT AVG (DISTINCT salary) FROM employee;
a. 38500
b. 40000
c. 41000
d. 35000
6 Name the SQL function which returns output in form of characters. 1
a. NOW() b. MONTH()
c. MONTHNAME() d. WEEKNAME()
7 Violating the intellectual property rights of a copyright holder is known as 1
a. Encryption b. Digital footprint
c. Offline phishing d. Copyright infringement
8 I can keep you signed in. 1
I can remember your site preferences.
I can give you locally relevant content. Who am I ?
9 Which amongst the following is not an example of browser? 1

A.Chrome b.Firefox c.Avast d.Edge

10 Predict the output of following query. 1


SELECT MONTHNAME(“2023-10-07”);
i. 10
ii. OCTOBER
iii. JULY
iv. 07

11 Name the online activity that enables us to publish website or web application on the 1
internet
a. Web server b. Web Browser
c. Web Hosting d. None
12 In histogram describe the number of data points that 1
fall within a specified range.
i. x and y label
ii. range()
iii. bin
iv. x and y ticks

13 Which of the following pandas function is useful to read data from a CSV file? 1
i. tocsv()
ii. to_csv()
iii. read_csv()
iv. writecsv()

2
14 The avg() function in MySql is an example of . 1
a. Math function
b. Text function
c. Date Function
d. Aggregate Function.

15 If a column MARKS of table EXAM contains values (99, 87, 84, NULL, 88), what 1
will be output of following query?
SELECT COUNT(MARKS) FROM EXAM;
i. 5
ii. 4
iii. NULL
iv. Error

16 To iterate over vertical subsets of a dataframe,-----functions can be used. 1


i. iterate()
ii. iterrows()
iii. itercols()
iv. iteritems()

17 Assertion (A):- To use the Pandas library in a Python program, one must import it. 1
Reasoning (R): - The only alias name that can be used with the Pandas library is
ip.
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.

18 Assertion(A): User cannot download any image directly from google and use in their 1
content.
Reasoning(R): The images are subject to copyrights.
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.

SECTION-B
19 Create a line chart to show the data of overs and runs scored by two teams. 2

Team/Over 1 2 3 4 5 6 7 8 9 10

INDIA 8 9 7 12 15 16 18 4 22 23

PAKISTAN 9 8 11 9 14 12 14 9 12 15

OR
Create a bar graph to display number of students registered in classes

3
11A, 11B, 11C, 11D.

20 Briefly explain the basic concepts of a web server and web browser. 2

OR
Surabhi is doing a course in networking. She is unable to understand the concept of
URL. Help her by explaining it with the help of suitable example.
21 Consider the given SQL string: 2
“Bestofluck@2024_EXAM”
Write suitable SQL queries for the following:
i. Returns the position of the first occurrence of the substring “_” in the given
string.
ii. To extract first five characters from the string.

22 Write a program in to create a series ‘Emp’ using a dictionary having Employee name as 2
key and salary as value with following data –
EmployeeName Salary
Amit 11000
Rajeev 7500
Dinesh 12500
Akshit 8000
23 Write 4 steps to manage E-Waste. 2
24 What is the purpose of the following clauses in a select statement? 2
a. ORDER BY
b. GROUP BY
OR

Differentiate between the following statements:


a. ALTER and UPDATE
b. DELETE and DROP
25 Consider the following table STUDENT and write SQL queries to the questions that 2
follows.
SID SNAME CLASS ADMYEAR HOUSE No.of
Student
S101 Aman 12 2016 Blue 501
S102 Mitul 11 2015 Red 400
S103 Reena 12 2018 Green 306
S104 Mohit 11 2022 Yellow 356
S105 Deepa 12 2023 Blue 509
S106 Rohit 11 2011 Red 552

a. To display house wise number of students.

4
b. To display names of students in descending order of year of admission.

SECTION-C
26 Write the name of the functions to perform the following operations: 3
a. To display the day like “Monday”, “Tuesday”, from the date when
India got independence.
b. To display the specified number of characters from a particular
position of the given string.
c. To display the name of the month in which you were born.
OR
Write the output produced by the following SQL commands:
a. SELECT YEAR(“1979/11/26”),MONTH(“1979/11/26”);
b. SELECT LEFT("INDIA",3), RIGHT("Computer Science",4);
c. SELECT MID("Informatics",6,3), SUBSTR("Practices",3);
27 For a given string “KVSROLucknowPB2024”. Write suitable 3
queries for following.
a. To extract ‘2024’ form the string.
b. To print the string in lower case letters.
c. To extract word ‘Lucknow’ from the string.

28 Shubham wants to perform following operations in SQL. Help him to write queries. 3
a. To create a database School.
b. To create a table named STUDENT with following attributes.
RollNo Name Class Section DOB House
Numeric Characters For Character Date Character
character
values in
Roman

29 Consider the following table Product and answer the questions. 3


PCode PName UPrice Manufacturer
P01 Washing Powder 120 Surf
P02 Toothpaste 54 Colgate
P03 Soap 25 Lux
P04 Tooth paste 65 Pepsodent

P05 Soap 38 Dove


P06 Shampoo 245 Dove
Write SQL Queries to
a. Add a new column Discount to the table Product.
b. Increase the price by 12 per cent for all the products manufactured by Dove.
c. List the Product Code, Product name and price in descending order of their
product name.

5
OR
Write output of following SQL statements.
a. SELECT PName, avg(UPrice) FROM Product GROUP BY Pname;
b. SELECT COUNT (DISTINCT PName) FROM Product;
c. SELECT PName, MAX(UPrice), MIN(UPrice) FROM Product GROUP BY
PName;

30 Write missing statements in following code. 3


import as plt # To import required module
date=["25/12","26/12","27/12"]
temp=[8.5,10.5,6.8]
plt. (date, temp) #To plotting line chart of temp versus date
plt._ () # To display the figure
SECTION-D
31 The data of students opted Science, Commerce and Humanities in Kendriya 4
Vidyalayas is as follows.

Stream Science Commerce Humanities


Students 1522 1388 890

Write a code to present it using a bar plot giving suitable title and label to chart.

32 Consider the given DataFrame df: 4


Q1 Q2 Q3 Q4
0 5000 8000 12000 18000
1 10 20 30 40

Write suitable Python statements for the following:


a. Add a column called Q5 with the following data [2000,44].
b. Add a new record with appropriate values.
c. Remove the column Q2, Q4.
d. Remove first and second rows from DataFrame.
SECTION-E
33 Consider the following data frame df 5

a. Display all product except product no 101 and 102


b. Display all the product details of record no 102,104 and 106.

6
c. Display name and dept details of all records of DataFrame
d. Display dept and age details of 101 and 104 records of DataFrame:
e. Display all the names of DataFrame.

OR
Write SQL queries for following.
a. To print cube of 5.

b. To print length of string “Informatics Practices”.


c. To remove leading spaces from string “ Query ”.
d. To print current date and time.
e. To print remainder of operation 10 divided by 3.

34 “Let’s Learn” is an educational NGO. It is setting up its new campus at Mumbai for 5
its Web-Based activities. The campus has 4 compounds as shown in the diagram
below:

Resource Compound Training Compound

Main Compound Finance Compound

Number of Computers:

MAIN TO RESOURCE 50m

MAIN TO TRAINING 40m

MAIN TO FINANCE 90m

RESOURCE TO TRAINING 25m

RESOURCE TO FINANCE 45m

TRAINING TO FINANCE 200m

Distance Between various compound are:

7
MAIN COMPOUND 5
RESOURCE COMPOUND 15
TRAINING COMPOUND 150
FINANCE COMPOUND 20

1. Suggest a cable layout of connections between the compounds.


2. Suggest the most suitable topology of the connection between the wings.
3. Suggest the most suitable place (i.e. compound) to house server for this NGO. Also
provide a suitable reason for your suggestion.
4. Which networking device will you suggest to be procured by the company to
interconnect all the computers of various Compounds of MUMBAI campus?
5. What is the type of network that will be formed when NGO connects its
international office situated in Delhi?
35 Write Python code to plot a bar chart for Indian player performance in a match: 5

Also give suitable python statement to save this chart.


OR
Write a python program to plot a line chart based on the given data
Match=[1,2,3,4]
Goals=[2,4,6,8]

…………………………………………..…………………………………………………………………..

You might also like