0% found this document useful (0 votes)
38 views9 pages

QP-1PB-IP-2024 Set 1

The document is a preboard exam paper for Class 12 Informatics Practices, consisting of 37 questions divided into five sections with varying marks. It includes multiple-choice questions, programming tasks, SQL queries, and case studies, all requiring knowledge of Python, data handling, and database management. The exam has a total duration of 3 hours and is worth 70 marks.

Uploaded by

Saradha S
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)
38 views9 pages

QP-1PB-IP-2024 Set 1

The document is a preboard exam paper for Class 12 Informatics Practices, consisting of 37 questions divided into five sections with varying marks. It includes multiple-choice questions, programming tasks, SQL queries, and case studies, all requiring knowledge of Python, data handling, and database management. The exam has a total duration of 3 hours and is worth 70 marks.

Uploaded by

Saradha S
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/ 9

PREBOARD EXAM (2024-25)

CLASS 12
SUBJECT- INFORMATICS PRACTICES (065)
TIME: 03 HOURS M.M.: 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.
SECTION A 21*1=21

1. State True or False 1


A Pandas Series object can be thought of as a column or a row, essentially

2. Any work / information that exist in digital form idea on internet or on an 1


electronic device, is known as ___________property.
i. License property
ii. Digital property
iii. Source code property
iv. Software property
3. Rajesh is a young man with great aspirations and has a good team of like-minded 1
people. he along with his team members started a company to sell handicrafts
online and also designed a logo for their company. What type of intellectual
property does this logo represent?
(i) Patents (ii) Copyright (iii) Design (iv) Trademark
4. Which of the following is the correct output of the following SQL command? 1
SELECT ROUND (7876.4568, 2) ;

(i) 7876.46 (ii) 7876.45 (iii) 7900 (iv) 7900.4568

5. Which of the following returns number of non-NaN values of Series? 1


a) count b) size c) index d) values

6. Primary law in India for matters related to e-commerce and cybercrime is : 1


(i) IT Act 1995 (ii) IT Act 2000 (iii) IT Act 1998 (iv) IT Act 2010

7. Write the output of the following code ? import pandas as pd 1


seriesMnths=pd.Series([2,3,4],index=['Feb','Mar','Apr']) print(seriesMnths[1])
a. 2 b. Mar c. Feb d. 3
8. Ravi, a Database Administrator, needs to display the total pay of workers from 1
those departments which have more than five employees. She is experiencing
a problem while running the following query:

SELECT DEPT, SUM(SAL) FROM EMP WHERE COUNT(*) > 6


GROUP BY DEPT;

Which of the following is a correct query to perform the given task?

i. SELECT DEPT, SUM(SAL) FROM EMP WHERE COUNT(*) > 6


GROUP BY DEPT;
ii. SELECT DEPT, SUM(SAL) FROM EMP HAVING COUNT(*)>
6 GROUP BY DEPT;
iii. SELECT DEPT, SUM(SAL) FROM EMP GROUP BY DEPT
WHERE COUNT(*) > 6;
iv. SELECT DEPT, SUM(SAL) FROM EMP GROUP BY DEPT
HAVING COUNT(*) > 6;
9. By default, the plot() function of Matplotlib draws a ______ plot. 1
(A) histogram (B) column (C)bar (D)line

10. To display the first 3 rows of series ‘S’ we may write : 1


(i) S.Head()
(ii) S.head(3)
(iii) S.Head(3)
(iv) S.tail()

11. 1
Manish wants to select all the records from a table named “Students” where
the value of the column “FirstName” ends with an “a”. Which of the following
SQL statement will do this?
a. SELECT * FROM Students WHERE FirstName = ‘a’;
b. SELECT * FROM Students WHERE FirstName LIKE ‘a%’;
c. SELECT * FROM Students WHERE FirstName LIKE ‘%a’;
d. SELECT * FROM Students WHERE FirstName = ‘%a%’;

12. A DataFrame object is a collection of _________ type of data. 1


i. Homogenous
ii. Heterogenous
iii. Hybrid
i. iv. None of the above
13. Identify the networking device responsible for routing data packets based on 1
their destination addresses.
i. Modem
ii. Hub
iii. Repeater
iv. Router

14. In SQL, the HAVING clause is used to apply filter on groups formed by the 1
clause.
a. order by b. Group by C. From d. all the above
15. Which of the following Python statements is used to import data from a CSV 1
file into a Pandas DataFrame (Note: pd is an alias for pandas)?
(A) pd.open_csv('filename.csv')
(B) pd.read_csv('filename.csv')
(C)pd.load_csv('filename.csv')
(D)pd.import_csv('filename.csv')

16. Which of the following topologies is very efficient and all nodes are connected 1
to a central hub?
(i) Star (ii) Tree (iii) Bus (iv) Ring

17. To compare data values of commission earned by salesmen over a year, which 1
of the following type of graph should preferably be used?
(i) Line (ii) area (iii) bar (iv) scatter

18. Which of the following is not a web browser ? 1


(i) Opera (ii) Google Chrome (iii) Linux (iv) Mozilla Firefox

19 If the substring is not present in a string, the INSTR() returns: 1


(i) – 1 (ii) 1 (iii) NULL (iv) 0

Q-20 and Q-21 are Assertion (A) and Reason (R) Type questions. Choose the
correct option as:
20 Assertion (A): The count(*) will yield a single value while round() will yield 1
number of values equal to the cardinality of the table.
Reason(R): The count(*) is a multiple rows function and round() is a single
row function.
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
21 Assertion (A): We can add two series objects using addition operator (+) or 1
calling explicit function add() .
Reason (R): While adding two series objects index matching is implemented
and missing values are filled with NaN by default..
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 7*2 =14 MARKS

22 a) What is Series data structure of Python Pandas? Explain with example. 2


OR
b) What are the libraries available in python .Give Example.

23. What is Copyrights in digital world? 2

24. Consider the given SQL string: 2


“IP12@Best of Luck!”
Write suitable SQL queries for the following:
i. Returns the position of the first occurrence of the substring “Best” in
the given string.
ii. To extract first five characters from the string.

25. What do you mean by plagiarism? Why it is a punishable offence? 2


OR

What do you understand by Netiquettes? Explain any two such etiquettes

26. Differentiate between Candidate Key and Primary Key in the context of
2
Relational Database Model.
27. Mention two health concerns associated with excessive use of Digital Devices. 2

28. Complete the given Python code to get the required output as: Hyundai 2
import _________ as pd
di = {'Nexon': 'TATA', 'I20':
'Hyundai', 'Swift': 'Maruti Suzuki’,
'Fortuner':'Toyota'}
NP = ___________. Series( _____ )
print(NP[ ___________ ])

OR
The python code written below has syntactical errors. Rewrite the correct code
and underline the corrections made.
import pandas as pd
df={"T":["arushi","Robin","Priya"],"Time":[4,4,3]}
df= pd.DataFrame(df)
print(df)

SECTION C 4*3 =12

29. Rakhi's family is replacing their old computer and peripheral with a new one. 3
She decide to throw the old computer in a nearby empty field/plot.
I. Explain any one potential environmental hazard associated with
improper e-waste disposal.
II. Suggest one responsible way to Rakhi's family for proper disposal of
their old computer.
III. Describe the importance of recycling in e-waste management.
30. Write a Python program to create the following DataFrame using a list of
dictionaries.
Course Fee
0 Computer 40000
1 A.I 45000
2 Web Design 35000
3 Networking 30000
OR
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.

Pen 20.0
Pencil 10.0
Eraser 5.0
31. 2+1
Table Name- doctors
Write SQL commands to perform the following tasks:

(a) Create a table 'Doctor' with the following structure:


(a) Insert data in the table. (data can choose any data in table as per table.)

Field Name Data Type Key


Doc_ID Char(4) Primark Key
Doc_Name Varchar(30)
Doc_Speciality Varchar(30)
MobileNo Varchar(10)
Address Varchar(30)
Salary Integer

32. A relation Vehicle is given below : 3

Write SQL commands to:


(i) Display the average price of each type of vehicle having
quantity more than 15.
(ii) Count the type of vehicles manufactured by each company.
(iii) Display the total price of all the types of vehicles.

OR
Consider the following tables GAMES and PLAYER. Write SQL commands for
the statements to (iv) and give outputs for SQL queries.

TABLE : GAMES

I.SELECT COUNT(DISTINCT Number) FROM GAMES;


II. SELECT MAX(ScheduleDate),MIN(ScheduleDate) FROM GAMES;
III .SELECT AVG(PrizeMoney) FROM GAMES;

SECTION D CASE STUDY QUESTIONS

33. Class XII student is doing program in python to generate bar chart. help this 4
students to complete the code -
Consider the following program and answer any four question from (i) to (v) :

import _______ as plt


plt.bar ([2,3,4,8,1],[2,4,7,3,5], label= _____ )
plt.legend( )
plt.xlabel(____ )
plt.ylabel(‘Height’)
plt._______ (‘Vertical Bar Chart’)

1. Which Module will be imported in Line 1 for above code ?


2. Name the label that can be used to represent the bar chart in Line 2 .
3. Which message is best suited for xlabel ?
4. Which method will take place at Line 6 for setting heading on the top of Chart ?
34 Consider the table STUDENT given below. Write commands in MySQL TABLE 4

(i) To count the number of students to Science Stream.


(ii) SELECT AVG(AggMarks) FROM STUDENT WHERE Stream=‘Science’;
(iii) SELECT COUNT (DISTINCT Stream) FROM STUDENT;
(iv) SELECT MIN(AggMarks) FROM STUDENT;

STUDENT

OR

Aamr is a database designer, has developed a database for a shop. This database
includes a table Grocer whose column are given .

(i) Display Item name along with Month (in number) when it was purchased for
all the items.
(ii) Display Item name along with year in which it was purchased for all the
items.
(iii) Display Item Id, Date of Purchase and day name of week (e.g. Monday) on
which it was purchased for all the items.
(iv) Display the name of the months on which Rice was purchased.

SECTION E
35. Knowledge Supplement Organisation has set up its new centre at Mangalore for its 5
office and web based activities. It has 4 blocks of buildings as shown in the diagram
below:

BLOCK
Block B
A BLOCK
D

BLOCK
C

Black A to Block B 50 m

Block B to Block C 150 m

Block C to Block D 25 m

Block A to Block D 170 m

Block B to Block D 125 m

Block A to Block C 90 m

Number of Computers

Black A 25
Block B 50
Block C 125
Block D 10

(a) Suggest a cable layout of connections between the blocks.


(b) Suggest the most suitable place (i.e. block) to house the server of this
organisation with a suitable reason.
(c) Suggest the placement of the following devices with justification
(i) Repeater
(ii) Hub/Switch
(d) The organization is planning to link its front office situated in the city in a hilly
region where cable connection is not feasible, suggest an economic way to
connect it with reasonably high speed?
(e) Suggest a best suitable topology for cable layout of connections between the
blocks.
36 Consider the DataFrame df shown below. Df = Students 5
STU_ID NAME PASS_ PER
YEAR
0 101 SANJAY 2001 90

1 102 AJAY 2005 88

2 103 RAKHI 2010 75

3 104 VINEET 2015 65

4 105 MAHESH 2015 96

Write Python statements for the DataFrame df to:


I. Print the first two rows of the DataFrame df.
II. Display name of all the students.
III. Remove the column per.
IV. Display the data of the 'name' column from indexes 2 to 4 (both included)
V. Rename the column name 'name' to 'title'.

37. 5
Write suitable SQL query for the following:
I. To display the average score from the result column (attribute) in the
student table
II. To display the last three characters of the registration_number column
(attribute) in the Vehicles table. (Note: The registration numbers are
stored in the format UP-26-BB-9988
III. To display the data from the column (attribute) username in the Users
table, after eliminating any leading and trailing spaces.
IV. To display the maximum value in the salary column (attribute) of the
Employees table.
V. To add one other column (attribute ) in Student table APAR_ID having
data types integer and size 15 with primary key .
OR

Write suitable SQL query for the following:

I. Round the value of 12345.678 to two decimal places.


ii. Calculate the remainder when 122 is divided by 6.
iii. Display the number of characters in the word 'Dehradun in capital '.
iv. Display the first 6 characters from the word 'Informatics Practices'.
V. display details from 'email' column (attribute), in the 'Students' table, after
removing any leading and trailing spaces.

You might also like