Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
0% found this document useful (0 votes)
3 views11 pages

Pb_ Qp Xii Ip 2024-25_set32

Download as docx, pdf, or txt
Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1/ 11

केन्द्रीय विद्यालय संगठन आगरा संभाग

प्रथम प्री बोर्ड परीक्षा-2024-25


KENDRIYA VIDYALAYA SANGATHAN AGRA REGION
First Pre Board Examination-2024-25
CLASS: XII
INFORMATICS PRACTICES (065)
Time allowed: 3 Hours Maximum Marks: 70
General Instructions:
Please check this question paper contains 37 questions.
All questions are compulsory. However, internal choices have been provided in some
questions. Attempt only one of the choices in such questions
The paper is divided into 5 Sections- A, B, C, D and E.
Section A consists of 21 questions (1 to 21). Each question carries 1 Mark.
Section B consists of 7 questions (22 to 28). Each question carries 2 Marks.
Section C consists of 4 questions (29 to 32). Each question carries 3 Marks.
Section D consists of 2 case study type questions (33 to 34). Each question carries 4
Marks.
Section E consists of 3 questions (35 to 37). Each question carries 5 Marks.
All programming questions are to be answered using Python Language only.
In case of MCQ, text of the correct answer should also be written.

Q Section-A (21 x 1 = 21 Marks) Marks


No.
1 State whether True or False: 1
A Series is a two-dimensional labelled data structure.
2 The SQL function used to calculate the total sum of a column's values is: 1
A. COUNT()
B. SUM()
C. AVG()
D. TOTAL()

3 ‘V’ in VoIP stands for: 1


A. Volume
B. Voice
C. Virtual
D. Video
4 Which of the following is a DDL Command ? 1
A. Update
B. Select
C. Delete
D. Alter
5 _________ is the legal term to describe terms under which people are 1
allowed to use the copyrighted material.
A. Licensing
B. Copyright
C. Patent
D. Trademark
6 To display the 3rd, 4th and 5th columns from the 6th to 9th rows of a data 1
frame DF you can write
A. DF.loc[6:9, 3:5]
B. DF.loc[6:10, 3:6]
C. DF.iloc[6:10, 3:6]
D. DF.iloc[6:9, 3:5]
7 The command used to give a heading to a graph is _________ 1
A. plt.show()
B. plt.plot()
C. plt.xlabel()
D. plt.title()
8 State whether the following statement is True or False: 1
In SQL, the HAVING clause is used to apply filter on groups formed by the
GROUP BY clause.
9 Which of the following Python statements is used to save a Pandas 1
DataFrame to a CSV file?
A. pd.save_csv('filename.csv')
B. pd.write_csv('filename.csv')
C. pd.to_csv('filename.csv')
D. pd.export_csv('filename.csv')

10 The following is automatically granted to the creator or owner of any 1


invention.
A. Trademark
B. Copyright
C. License
D. Patent
11 Fill in the Blank 1
The PRIMARY KEY constraint uniquely identifies each --------------------in a
database table.
A. Column
B. Row
C. Value
D. Attribute

12 A __________ is a collection of interconnected _________ designed with a 1


goal in mind.
A. webpage, website
B. web browser, webpage
C. server, client
D. website, webpage
13 If a dataframe is created using a 2D dictionary, then the column labels are 1
formed from ____________:

A. Dictionary’s values
B. Dictionary’s keys
C. Inner Dictionary’s keys
D. Outer Dictionary’s keys

14 Sending a mass email claiming to be from a legitimate company in order to 1


steal financial information is known as:
A. Cyberstalking
B. Phishing
C. Cyberbullying
D. Hacking

15 Given a Pandas series called Sequences, the command which will display 1
the first 6 rows is __________________.
A. print(Sequences.head(6))
B. print(Sequences.Head(6))
C. print(Sequences.heads(6)
D. print(Sequences.Heads(6))
16 The avg() function in MySql is an example of ___________________. 1
A. Math function
B. Text function
C. Date Function
D. Aggregate Function
17 Fill in the Blank Boolean indexing in Pandas DataFrame can be used for 1
_______.
A. Creating a new DataFrame
B. Sorting data based on index labels
C. Joining data using labels
D. Filtering data based on condition
18 Which library is imported to draw charts in Python? 1
A. csv
B. matplotlib
C. numpy
D. (pandas
19 Which of the following topologies needs least cable length? 1
A. Star
B. Tree
C. Bus
D. d. None of the above
Q20 and Q21 are Assertion(A) and Reason(R) 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
20 Assertion (A):- We import matplotlib to create charts in python. 1
Reasoning (R): in matplotlib there is pyplot which is used to create 2d
charts.
21 Assertion(A): A database can have only one table in MySql.
Reasoning(R): When a piece of data is stored in multiple places in the
databases, then the scenario is called data redundancy.

Q Section-B ( 7 x 2=14 Marks) Marks


No.
22 (A) What will be the output of following code : 2
import pandas as pd
s=pd.Series({1:1,2:4,3:9,4:16})
print(s%2==0)
OR
(B) What is matplotlib and pyplot in python also write which method is used
to create bar chart in python?
23 What is netiquette? Write any 4 netiquette’s. 2
24 Predict the output of the following queries: 2

i. select instr('Kendriya@Vidyalaya.nic.in','@');
ii. select substr('cbse@exams.2025',8,3);

25 (A)Differentiate between webpage and website. 2


OR
(B)What is web hosting ?
26 Differentiate between Primary and candidate Key. 2
27 Answer the Following Questions 2

A. The technology which allow you to make voice calls using a


broad band internet connection.
B. If you are calling a regular phone number, the signal is
converted to regular telephone signal before it call
directly from a computer.
28 (A) Complete the given Python code to get the required output as follow: 2
Tamil Nadu Chennai
Uttar Pradesh Lucknow
Manipur Imphal

Code:
import ___________as pan
data = ['Chennai',' _________','Imphal']
index = ['Tamil Nadu','Uttar Pradesh','Manipur']
s = pan _______________
_________________
OR
(B) Sneha is writing a Python program to create a DataFrame using a list of
dictionaries. However, her code contains some mistakes. Identify the
errors, rewrite the correct code, and underline the corrections made.
import Pandas as pd
D1 = {'Name': ‘Rakshit’, 'Age': 25}
D2 = {'Name': 'Paul', 'Age': 30}
D3 = {'Name': 'Ayesha", 'Age': 28}
data = [D1,D2,D3]
df = pd.Dataframe(data)
print(df1)
Q Section-C ( 4 x 3 = 12 Marks) Marks
No.
29 Priya has received an SMS on mobile, asking her to provide the details of 3
her old debit card in order to get new one. She clicked on the link in the
message and entered the details of her debit card assuming that this
message was from her bank.
A. Which act under cybercrime happened with her?
B. What immediate action should she take to handle it?
C. Is there any law in India to handle such issues? Discuss briefly.
30 (A) Write a Python program to create the following DataFrame df using a 3
list of dictionaries.

OR
(B) Write a Python Program to create a Pandas Series as shown below
using a dictionary. Note that the left column indicates the indices and
the right column displays the data.

31 I. Write an SQL statement to create a table named STUDENTS, 2+1


with the following specifications:

II. Write SQL Query to insert the following data in the Students Table
as 101, Rahul, Sharma, 2010-08-18, 75.5

32 A. Write outputs for SQL queries (i) to (iii) which are based on the given 3
table Employee:
(i) Display First name along with joining date all the employees
who joined in February.
(ii) Display the details of all employees whose First names
contain more than 10 characters.
(iii) Display first 3 characters of Last names and First 3 characters of
First names of all employees.
OR
B. Write outputs for SQL queries (i) to (iii) which are based on the given
table Employee:

i. SELECT INSTR (LNAME, ‘a’) FROM EMPLOYEE WHERE


DEPARTMEN! = ‘HR’
ii. SELECT POW(DAY(JOINING_DATE),MONTH(JOINING_DATE))
FROM EMPLOYEE WHERE SALARY =200000;
iii. SELECT * FROM EMPLOYEE WHERE MID(LNAME,4,2)= ‘gh’;

Q Section-D ( 2 x 4 = 08 Marks) Marks


No.
33 Write Python code to plot a bar chart for Lux soap sales for three months. 4
Also give suitable python statement to save this chart.
34 4
A. Carefully observe the following table named ‘STATIONARY’:

Write SQL queries for the following:

(a) To display the records in decreasing order of price.

(b) To display category and category wise total quantities of


products.

(c) To display the quantity and its average quantity.

(d) To display category and category wise lowest price of the


product

OR

Consider the given table Medicine:

Write the output of the following SQL Queries.

I. Select LENGTH(MED_NAME) from MEDICINE where STOCK >


100;
II. Select MED_NAME from MEDICINE where month(DEL_DATE) = 4;
III. Select MED_NAME from MEDICINE where STOCK between 120
and 200;
IV. Select max(DEL_DATE) from MEDICINE;

Q Section-E ( 3 x 5 = 15 Marks) Marks


No.
35 5

Delhi

Z Z
1

Z Z4
The company is planning to form a network by joining these blocks.

i. Out of the four blocks on campus, suggest the location of the server that
will provide the best connectivity. Explain your response.

ii. For very fast and efficient connections between various blocks within the
campus, suggest a suitable topology and draw the same.

iii. Suggest the placement of the following devices with justification


(a) Repeater
(b) Hub/Switch

iv. The company plans to develop an interactive website that will enable its
employees to monitor their performance after login. Would you recommend
a static or dynamic website, and why?
v. The XYZ Media House intends to link its Mumbai and Delhi centers. Out
of LAN, MAN, or WAN, what kind of network will be created? Justify your
answer.

36 Consider the following DataFrame df: 5

Write Python statements for the DataFrame df to:


I. Print the first 4 rows of the DataFrame df.
II. Display Marks of all the students.
III. Remove the column Section.
IV. Display the data of the ' Roll no' column from indexes 2 and 4
V. Rename the column name 'Name' to ' Students Name'.
37 A. Ms. Sarkar is working on a MySQL table named ‘Resort’ having 5

following structure:
He needs to perform following task on the table: Suggest
suitable SQL function for the same. Also write the query to
achieve the desired task.

i. To display the 2nd and 3rd characters from the user_id column.
ii. To display the total no of characters in each city.
iii. To display last 3 digits extracted from the mobile numbers of users.
iv. To display the details of user whose city is in Mumbai, Delhi
v. To determine the count of rows in the Resort table

OR

B. Write suitable SQL query for the following-

i. Round the value (3256.14159) to 4 decimal places.


ii. Calculate the remainder when 527 is divided by 8.
iii. Display the number of characters in the word 'Agra'.
iv. Display the first 8 characters from the word 'Informatics
Practices'.
v. Display details from 'Address' column (attribute), in the
'Students' table, after removing any leading and trailing spaces

You might also like