0% found this document useful (0 votes)
151 views12 pages

12pb24ip01 QP

Uploaded by

duttarounak046
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)
151 views12 pages

12pb24ip01 QP

Uploaded by

duttarounak046
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/ 12

12PB24IP01

KENDRIYA VIDYALAYA SANGATHAN ERNAKULAM REGION


PRE BOARD EXAMINATION 2024-25
CLASS XII INFORMATICS PRACTICES (065) (NEW)
Max Marks: 70 Time: 3 hrs
____________________________________________________________________________________
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.No Section-A (21 x 1 = 21 Marks) Marks

1 State whether the following statement is True or False: 1


DataFrame is size mutable.

2 Which among the following is an example for aggregate function 1


a)LEFT( )
b)TRIM( )
c)AVG( )
d)MID( )

3 Which among the following devices cannot connect dissimilar networks together? 1
a)Router
b)Gateway
c)Modem
d)Bridge

4 Which among the following clauses can be used to sort the result based on specific 1
columns of a database table?
a)sort
b)sort_values
c)Where
d)Order By

5 Identify the SQL command to change the data in a table 1


a)ALTER
b)MODIFY
c)UPDATE
d)INSERT

Page 1
12PB24IP01

6 Plagiarism refers to 1
a)The act of using someone else's work
b)The act of using someone else's work without proper attribution
c)Using someone else’s idea with their permission
d)None of the above

7 Which of the following python statements can be used to delete/remove a column named 1
‘grade’ of the DataFrame, ‘student’?
a)del student[‘grade’]
b)drop student[‘grade’]
c)student . drop ‘grade’
d) None of the above

8 Which among the following can be used to create a scatter chart? 1


a)plot( )
b)scatter( )
c)both a and b
d)None of these

9 State whether the following is True or False 1


“In SQL, WHERE clause cannot apply conditions on a group of records”

10 CSV stands for 1


a)Computer Stored Values
b)Comma Separated Values
c)Comma Stored Values
d)None of the above

11 To find the cardinality of the database table, student, we can use 1


a)select count( ) from student;
b)Select count( * ) from student;
c)Select count(student) from student;
d)Select count(rows) from student;

12 Which among the following is called an intelligent hub? 1


a)Passive Hub
b)Router
c)gateway
d)Switch

13 The dataFrame ‘Df’ has 10 rows. How many rows will be displayed if the following 1
statement is executed ?
Statement: Df.head( )
a)0
b)10
c)5
d)Error

Page 2
12PB24IP01
14 Bulk email by an identified or unidentified source is 1
a)Spam
b)Fishning
c)Worm
d)Cookie

15 Which among the following can be used to create a DataFrame? 1


a)Series
b)Dictionary
c)NumPy Array
d)All the above

16 Match the following SQL functions/clauses with their descriptions: 1

SQL Function Description

P AVG( ) 1 Combines the Records with identical values

Q WHERE 2 Returns the average of the values of a


column

R CONCAT( ) 3 Applies conditions on individual rows

S GROUP BY 4 Combines the given strings/texts

a)P-2, Q-3, R-1, S-4


b)P-2, Q-3, R-4, S-1
c)P-3, Q-4, R-2, S-1
d)P-4, Q-3, R-2, S-1

17 Fill in the blank: 1


data = { 'Alice': {'Math': 85, 'Science': 90}, \
'Bob': {'Math': 78, 'Science': 82}, \
'Charlie': {'Math': 92, 'Science': 88} }
If you create a DataFrame from the above dictionary using pd.DataFrame(data), what will be
the index of the resulting DataFrame?

A) Math, Science
B) Alice, Bob, Charlie
C) 0, 1, 2
D) {'Math': 85, 'Science': 90}

18 Which among the following is the best suitable for comparing performance across different 1
categories?
a)BAR Chart
b)Line Chart
c)Scatter Chart

Page 3
12PB24IP01
d)None of the above

19 The largest WAN is called______ 1


a)MAN
b)Back Bone Network
c)Internet
d)Intranet

Q-20 and Q-21 are Assertion (A) and Reason (R) Type questions. Choose the correct option
as:
(A) Both Assertion (A) and Reason (R) are true, and Reason (R) is the correct explanation of
Assertion (A)

(B) Both Assertion (A) and Reason (R) are true, but Reason (R) is not the correct explanation
of Assertion (A)

(C) Assertion (A) is True, but Reason (R) is False

(D) Assertion (A) is False, but Reason (R) is True

20 Assertion (A): In SQL, UPDATE is a Data Definition Language (DDL) Command.


Reason (R): DDL commands are used to create, modify, or remove database structures, such
as tables.

21 Assertion (A): We can add a new value in an existing Series object. 1

Reason (R): DataFrames are size mutable.

Section-B (7 x 2 = 14 Marks)

22 a)How is the series different from the numpy array? 2

OR
b)Name any two libraries of Python. Explain the importance of those libraries.

23 What are the significance of IT Act 2000? 2

24 Consider the string: "Informatics Practices". 2


Write suitable SQL queries for the following:
I. To extract and display 5 characters from the third character onwards.
II. Display the last 5 characters after converting it to capital letters.

25 a) What is IoT? Explain its applications? 2


OR
b)What is the purpose of SWITCH in a network?

26 Explain how redundancy can be avoided in a database? Explain with the help of an example 2

27 What is data privacy? What type of information are collected by websites that you visit? 2

28 a)Rohith wrote the following code to create a Pandas DataFrame from a dictionary of 2

Page 4
12PB24IP01
dictionaries. However the code is having some mistakes. Identify the errors, correct
and underline the corrections

import Pandas as pd
data = { 'John ' = {'Age': 28, 'City': 'New York', 'Salary': 50000}, \
'Anna' = {'Age': 24, 'City': 'London', 'Salary': 60000}, \
'Mike' = {'Age': 32, 'City': 'San Francisco', 'Salary': 70000} }
df = Data.Dataframe(Data).T

print(DF)

OR
b)Complete the given Python code to get the required output as :

Name English Maths


1 Alice 85 90
2 Bob 78 88
3 Charlie 92 95
4 David 65 70

Code:
import _____________

data = [ ['Alice', 85, 90], ['Bob', 78, 88], ['Charlie', 92, 95], ['David', 65, 70] ]

df = pd.____ (____ , columns=['Name', 'English Marks', 'Maths Marks'], index=______)

print(df)

Q.No Section-C (4 x 3 = 12 Marks) Marks

3
29 A university student, Sarah, submits a research paper for her final assignment. After grading, the
professor discovers that several sections of Sarah's paper closely resemble published articles
without proper citation. Upon further investigation, it is revealed that Sarah used an online tool
that copies content from others' work and publications, believing it would help her in
documentation. However, she did not adequately check for proper citations or originality in her
final submission.

1. Is this an example of Plagiarism? Justify your answer.

2. What kind of plagiarism is this?

3. How can plagiarism be avoided?

Page 5
12PB24IP01
30 a)Write python code to create the below given dataframe, ‘student’, using a dictionary of 3
series.

English Maths
Alice 85 90
Bob 78 88
Charlie 92 95
David 65 70
OR
b)Write a Python Program to create a Pandas Series, ‘student’ as given below using a numpy
array
Alice 85
Bob 90
Charlie 78
David 88
Eve 92
dtype: int64

31 I Write an SQL statement to create a table named ‘Nations’ , with the following specifications: 2

Field Name Data type, size Keys

Sno varchar(5) Primary Key

name Varchar(10) Not null

Capital Varchar(4)

Currency decimal Default : 10.50

population numeric
II. Write a SQL statement to add the following data to the Nations table. 1
N101, Russia, Moscow, 89.50, 14

32 I)Consider the following database tables: 3


Table1 Customers, which stores CustomerID, CustomerName, ContactEmail
Table2: Orders, which stores OrderID,CustomerID,OrderDate,OrderAmount, for all the
customers
Note: Attribute names are written within brackets. Table: Customers
CustomerID CustomerName ContactEmail

101 Avinash Raju av@gmail.com

103 Sandhya Kumari sn@gmail.com

102 Salman Faris sf@gmail.com

104 Ann Frank af@gmail.com

105 Ritu Chatterjee rc@gmail.com

Page 6
12PB24IP01

Table :Orders

OrderID CustomerID OrderDate OrderAmount

896 104 2024-11-10 1000.00

898 102 2024-11-12 905.90

899 104 2024-11-12 1230.00

900 105 2024-11-12 780.00

901 103 2024-11-13 670.00

Write appropriate SQL queries for the following:


a)Display Customer ID and total Order amount of all the customers.
b)Display order ID and OrderAmount in the increasing order of order amount.
c) Display customer name and order date for each order placed by all the customers.

OR
II)Consider the tables

Table1: Products which stores ProductID,ProductName,Category,Price

Table2:Sales which stores SaleID,ProductID,SaleDate,Quantity

Table; Products

ProductID ProductName Category Price

10 Horlics Health 215.00

11 Britania kaju Food 25.00

12 Boost Health 230.00

13 Elite Cake Food 50.00

Table:Sales

SaleID ProductID SaleDate Quantity

S10 10 2024-11-01 2

S11 10 2024-11-01 10

S12 12 2024-11-01 5

S13 13 2024-11-02 20

Page 7
12PB24IP01

Write appropriate SQL queries for the following:


a)Display average price of different categories of products.
b)Display different categories of products(without repeating the category)
c)Find name, quantity sold for all the products on 2024-11-02.

Q.No Section-D (2 x 4 = 8 Marks) Marks

33 Consider the following Python program that generates a bar chart which represents the 4
turnover of 5 companies in the year 2024 which is as given below . Some code is missing. Fill
the missing lines.

Company Turnover
(in Lakhs

A 1500

B 2000

C 2500

D 3000

E 3500

import ______________#Statement 1
companies = ['A', 'B', 'C', 'D', 'E']
turnover = [1500, 2000, 2500, 3000, 3500]
colors = ['blue', 'orange', 'green', 'red', 'purple']
plt.bar(companies , ________ , color=colors, width=.20)#statement 2
plt._________('Companies') #Statement 3
plt.ylabel('Turnover (in Lakhs)')
plt.___________('Performance in 2024')# statement 4
plt.legend(companies, title='Companies', loc='upper left')
plt.show()
Output:

Page 8
12PB24IP01

i)Write the suitable code for the import statement in the blank space in the line marked as
Statement-1.

ii)Refer to the graph shown above and fill in the blank in Statement 2 with suitable Python
code.

iii)Fill in the blank in Statement 3 with the name of the function to set the label on the x-axis.

iv)Refer the graph shown above and fill the blank in Statement 4 with suitable Chart Title.

34 a)Pratish l, who works as a database designer, has developed a database for managing 4
Employees. This database includes a table Emp whose column (attribute) names are
mentioned below:
Eno - code to identify the employees uniquely
Ename - to store the name of employees
Job - to store the job code
Salary - to store monthly salary

Table: Emp

Eno Ename Job Salary

101 Pratish MGR 100000

102 Sudha MGR 95000

103 Sunil ASST 55000

104 Maya ASST` 57000

a)Write SQL query to display Employee names in lowercase.


b)Write SQL query to display the highest salary among the Employees.
c)Write SQL query to display the name and job of all the employees sorted by Salary in
descending order.
d)Display all the details if salary is not paid.

Page 9
12PB24IP01

OR
b)Mr. Rohit has created a database for managing a sports event. The database includes a
table named Events whose column (attribute) names are mentioned below:

Eid: Shows the unique code for each event.


Ename: Specifies the event name
Sname: Specifies the name of the stadium in which it will take place
Teams: Indicates the number of teams
Date: Specifies the date of event.
Table: Event
Eid Ename Sname Teams Date

10 Football CSN Stadium 6 2024-11-16

11 Basketball KLR Stadium 4 2024-11-16

12 Kho-Kho VSR Stadium 8 2024-11-16

Write the output of the following SQL Queries.


i)SELECT MID(Ename, 1,3) FROM Event WHERE Teams > 4;
ii)SELECT UPPER(CONCAT(Ename, Sname)) FROM Events;
iii)SELECT * FROM Event WHERE Ename LIKE “%a%;
iv)SELECT SUM(Teams) FROM Event;

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

35 Digital University of Kerala is opening a new campus in Mysore with 4 different blocks, 5
named A, B, C, D . Its HeadQuarters is in Delhi.

Mysuru Campus

Block A Block B

Block D
Block C

Page 10
12PB24IP01

The shortest distances between the departments/offices are as follows:

Block A to Block B 95 metres

Block A to Block C 120 metres

Block A to Block D 90 metres

Block C to Block D 80 metres

Block D to Block B 120 metres

Block B to Block C 130 metres

Headquarters to Mysuru 2000 KM

Number of computers in each block is as given in the table given below:

Block A 85

Block B 90

Block C 120

Block D 95

Headquarters 50

University is planning to interconnect all the computers in each block, interconnect all the
blocks of Mysuru campus and to connect the Mysuru campus with Headquarters in Delhi.

Answer the following based on the above data.

i) Suggest the block in Mysuru Campus in which the server can be installed.
Justify your answer.
ii) Suggest a suitable layout to interconnect all the blocks of Mysuru campus together.
iii)Between which all blocks, if connected directly, repeaters are required?
iv) In which all blocks of Mysuru campus, HUB or SWITCH is required in your opinion?
v) Which topology is the most suitable if all the blocks are interconnected?

Page 11
12PB24IP01
36 Consider the following DataFrame, Result, created by a Data Analyst , to analyse the result of 5
some students.

Roll Eng Maths IP


Tom 1 10.0 10.5 12.0
Sam 2 12.0 12.1 11.2
Jam 3 11.0 9.8 12.3
Lam 4 10.3 10.8 14.4
Mam 5 9.8 10.3 13.2

Write Python statements for the DataFrame ‘Result’ to:

i)Display the index of all the rows

ii)Display all the rows from the second row to fourth row.

iii)Delete the column, ‘Roll’ from the dataframe

iv)Display the datatypes of each column

v) Save the dataframe as a csv file. Named Result.csv

37 a)Write suitable SQL query for the following(column name and table name are specified): 5

i)To display the total number of rows in the Exams table

ii) To display the last character of the Ename column of the Exam table in
uppercase.

iii)To display the number characters in the data of the column Sname in the customer table

iv)To display the maximum value in the salary column of the Employees table.

v). To determine the count of non null values in Score column in the Games table

OR

b)Write suitable SQL query for the following:

i) Display the current date and time


ii)Display the first 3 characters of the string ‘hello world’ in lowercase
iii)Display the position of ‘Practices’ in ‘Informatics Practices’
iv)Display the strings, ‘Hello’ ,‘World’ after combining them
v) Display the year part from the current date.

Page 12

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy