Pb_ Qp Xii Ip 2024-25_set32
Pb_ Qp Xii Ip 2024-25_set32
Pb_ Qp Xii Ip 2024-25_set32
A. Dictionary’s values
B. Dictionary’s keys
C. Inner Dictionary’s keys
D. Outer Dictionary’s keys
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.
i. select instr('Kendriya@Vidyalaya.nic.in','@');
ii. select substr('cbse@exams.2025',8,3);
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.
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:
OR
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.
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.
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