Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                

Orange IP065 12 QP

Download as pdf or txt
Download as pdf or txt
You are on page 1of 9

SAMPLE QUESTION PAPER

Informatics Practices (065)


Class XII (Session 2024-25)
Time allowed: 3 Hours Maximum Marks: 70
General Instructions:
• This question paper contains 37 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 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 × 1 = 21) Marks

1. Within pandas, a missing value is denoted by __________. 1


(A) Null
(B) Blank
(C) NaN
(D) Zero

2. A ____________ is a device that connects different networks and routes data packets 1
between them.
(A) Hub
(B) Bridge
(C) Gateway
(D) Repeater

3. What will be the output produced on the execution of the following MySQL statement? 1
SELECT MOD(9,0);
(A) 0
(B) NULL
(C) NaN
(D) 9

4. Suman wants to display the average commission of salesmen who have achieved the target 1
of more than 25000 from each city. She is experiencing a problem while running the
following query:
SELECT CITY, AVG(COMM)
FROM SALESMAN
GROUP BY CITY
WHERE TARGET > 25000;

[1]
Which of the following is a correct query to perform the given task?
(A) SELECT CITY, AVG(COMM)
GROUP BY CITY
FROM SALESMAN
WHERE TARGET > 25000;
(B) SELECT CITY
GROUP BY COMM
FROM SALESMAN
WHERE TARGET > 25000;
(C) SELECT CITY, AVG(COMM)
FROM SALESMAN
GROUP BY CITY
WHERE TARGET > 25000;
(D) SELECT CITY, AVG(CITY), COMM
FROM SALESMAN
WHERE TARGET > 25000
GROUP BY CITY;

5. On the burning of e-waste such as electronic circuit boards, a harmful chemical called 1
________ is created, which causes skin diseases, allergies, and an increased risk of lung
cancer.
(A) Hydrogen
(B) Beryllium
(C) Chlorine
(D) Oxygen

6. In Python, when a DataFrame is created using a dictionary, keys of the dictionary are set as 1
____________ of DataFrame.
(A) Column names
(B) rows
(C) either columns or rows
(D) neither columns nor rows

7. Which Python library is specifically designed for visualizing data and plotting 2D arrays? 1
(A) pandas
(B) numpy
(C) csv
(D) matplotlib

8. Which of the following MySQL functions serves the same purpose as the UCASE() function? 1
(A) UPPERCASE()
(B) CAPITALCASE()
(C) UPPER()
(D) TITLE()

9. Which of the following is the correct expansion of csv? 1


(A) Column Separated Values
(B) Class Separated Values
(C) Comma Separated Values
(D) Colon Separated Values

[2]
10. Reshma is writing a research paper on Artificial Intelligence. She downloaded specific images 1
from the Internet and added them to her paper without acknowledging its creator/owner.
This act of Reshma is known as _________
(A) authentication
(B) Patenting
(C) Cyber Theft
(D) Plagiarism

11. 1
What will be the output produced on the execution of the following MySQL statement?
SELECT LCASE(MONTHNAME('2020-06-15'));
(A) JUNE
(B) June
(C) june
(D) 6

12. Which topology connects the nodes in a network in a straight-line manner? 1


(A) Bus topology
(B) Star topology
(C) Tree topology
(D) Mesh topology

13. Which of the following commands will show the last five rows from a Pandas Series, named 1
pandasSeries?
(A) pandasSeries.Tail( )
(B) pandasSeries.tail(5)
(C) pandasSeries.TAIL(5)
(D) tail(5).pandasSeries

14. Samvit works in a bank. One day, he received an email stating that the bank’s server was 1
seized, and the bank had to pay money in bitcoins to get the server back. This kind of attack is
known as:
(A) Identity Theft
(B) Phishing
(C) Ransomware
(D) Plagiarism

15. While creating a Series from a dictionary, if no index is specified, the ___________ are used 1
to represent the index of the Series.
(A) Keys of a dictionary
(B) Values of a dictionary
(C) key-value pairs of a dictionary
(D) sequence of numbers starting from 0

16. Which of the following functions is used to display the cardinality of a table in MySQL? 1
(A) COUNT()
(B) COUNT(ROWS)
(C) COUNT(COLUMNS)
(D) COUNT(*)

[3]
17. Which of the following commands is the correct way to select a column labeled city from a 1
DataFrame named DF?
(A) DF.label['city']
(B) DF.loc[:,'city']
(C) DF.head['city']
(D) DF.tail['city']

18. Which method is used to save the output of pyplot as an image file, say, filename? 1
(A) pyplot.savefig("filename.png")
(B) pyplot.save_figure(filename)
(C) pyplot.save(filename)
(D) pyplot.save_fig(filename)

19. Abha has created a document on a desktop computer in her lab. She wants to print it out 1
using a printer in the lab that is available on the same network. Which type of network is
formed in this case?
(A) WAN
(B) MAN
(C) PAN
(D) LAN

Q 20 and 21 are ASSERTION (A) AND REASONING (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): To use the pandas library in a Python program, one must import it. 1
Reasoning (R): pandas provide two data structures for processing the data – Series and
DataFrame.

21. Assertion (A): To retrieve data from a table in MySQL, SELECT statement is used. 1
Reasoning (R): SELECT is a DDL command.

Q No. SECTION B (7 × 2 = 14) Marks

22. In the context of the Pandas library in Python, explain the key differences between a Series 2
and a DataFrame.
OR
What do you mean by indexing in Pandas? Write the names of two forms of indexing used in
Pandas.

23. Differentiate between the active digital footprint and passive digital footprints. 2

[4]
24. Consider the following string value in a MySQL database: 2
' Orange Education! '
Write suitable SQL queries for the following:
a. To remove leading and trailing spaces from the string.
b. To extract the first five characters from the string.

25. Briefly describe the concept of web hosting. 2


OR
Expand and describe the term URL.

26. Define the following terms in the context of relational database management systems 2
(RDBMS):

a. Tuples
b. Candidate key

27. Mention any two health hazards associated with inappropriate and excessive use of gadgets. 2

28. The Python code below contains errors. Rewrite the correct code and underline the 2
corrections made.
import Pandas as pd
df ={"HP":{"Desktops","Laptops","Printers"},"Sales":[10,14,9]}
df= pd.DataFrame(DF)
print("df")

Q No. SECTION C (4 * 3 = 12 marks) Marks

29. Describe the following terms: 3


(i) FOSS
(ii) IPR
(iii) Cyber Bullying

30. Using a dictionary, write a code snippet to create the following DataFrame named players. 3

OR
What will be the output produced on the execution of the following code snippet?
import pandas as pd
values = pd.Series([10, 5, 15, 0, -5, 20], index = ['A', 'B',
'C', 'D', 'E', 'F'])
print(values['A' : 'C'])
print(values.loc['A'])
print(values[4])

[5]
31. Write MySQL statements for the following: 3
i. To create a database named Stationery.
ii. To create a table named Pens within Stationery. The specifications of table Pens are
given below:
Column Name Data Type Constraints
PenId Integer Primary Key
Company String Not NULL
Price Integer Not NULL

32. Consider two tables, TAXI and TRAVEL, given below: 3


TABLE: TAXI
Code Type FarePerKM
T01 TEMPO TRAVELLER 45
T02 AC INNOVA 20
T03 AC ERTIGA 20
T04 AC HATCHBACK 10
T05 AC SEDAN 15

TABLE: TRAVEL
Cust_No Cust_Name Travel_Date DistanceKM Taxi_Code
101 Rana Dutta 2020-12-07 250 T01
102 Sharad Bali 2021-02-25 100 T04
105 Chetna 2019-11-22 420 T01
103 Manish Nagpal 2022-01-12 235 T02
107 Penny Joe 2020-03-12 365 NULL
104 Sanchit 2019-09-28 290 T05
Write SQL statements to perform the following:
a. To display all the customer names and the type of taxi they have taken.
b. For each taxi, display the average distance traveled (in km).
c. To delete the record of customers whose Taxi_Code is not known.
OR

a. To display the names of customers in alphabetical order.


b. To change the fare per kilometer of the car AC INNOVA to 25.
c. To display the taxi code, type, and travel date for each taxi.

Q No. SECTION D (2 * 4 = 8 marks) Marks

33. Kapil wants to be a cricket coach. He wants to analyze the runs scored in the 10-over intervals, 2+2=4
that is, 1-10, 11-20, 21-20, 31-40, and 41-50. The runs scored by his team are given below:
runs = [75, 39, 48, 70, 85]
Write a Python program to generate a bar chart using the provided data. Ensure the chart
includes an appropriate title and labels for the x-axis and y-axis.

[6]
OR
Below is a line chart showing the monthly rainfall (in centimeters) for the year's first six
months. Write a Python program to recreate this chart using matplotlib. Ensure the x-axis is
labeled with the months (January to June) and the y-axis shows the rainfall in centimeters.
Line Chart Details:
Months: January, February, March, April, May, June
Rainfall (in mm): 14, 9, 18, 7, 15, 12

34. Rakul is a database administrator in a music company. He has created the table 4
MUSIC_ALBUMS as shown below:

Table: MUSIC_ALBUMS

Code Title Singers Type Rating

M001 Lagdi Lahore Di Aa Guru Randhawa Romantic 6

M002 Nagada Sang Dhol Baaje Shreya Ghoshal Dance 5

M003 Bada Pachtaoge Arijit Singh NULL 8

M004 O Saki Saki Neha Kakkar Dance 3

M005 Ik Vaari Aa Arijit Singh Romantic 4

Write SQL queries to perform the following tasks:


(i) To display the highest rating.
(ii) To display the names of singers and the number of characters in each name.
(iii) To display the records in descending order of ratingsss
(iv) To display the first three characters of values of column Type.

[7]
OR
Consider the table, GARMENT given below:
GCODE GNAME SIZE COLOUR PRICE DOP
111 TSHIRT XL RED 1400.00 2022-01-06
112 JEANS L BLUE 2023-11-20
113 SKIRT M BLACK 1100.00 2020-07-18
114 LADIES XL BLUE 4000.00 2024-12-16
JACKET
115 TROUSERS L RED 1500.00 2024-05-19
116 LADIES L PINK 1200.00 2019-10-18
TOP

When executed, what output will be produced for each of the following SQL queries?
a. SELECT LEFT(GNAME, 2)
FROM GARMENT
WHERE COLOUR = 'RED';
b. SELECT AVG(PRICE)
FROM GARMENT
WHERE SIZE = 'L';
c. SELECT SUM(PRICE)
FROM GARMENT
GROUP BY COLOUR;
d. SELECT MIN(DOP)
FROM GARMENT;

Q No. SECTION E (3 * 5 = 15 marks) Marks

35. GNG School of Uttarakhand is setting up a secured network for its campus at Rishikesh to 5
operate its day-to-day office and conduct web-based activities. They are planning to have
network connectivity between four buildings. Answer questions (i) to (v) after going through
the building positions on the campus and other details, which are given below:

Distance between various buildings on the campus:


Building 1 Building 2 Distance (in meters)
Main Building Admin 60
Main Building Finance 110
Main Building Academic 70
Admin Finance 50
Finance Academic 80
Admin Academic 70

[8]
Number of Computers in each building:

Building Number of
Computers
Main Building 130
Admin 45
Finance 62
Academic 38
As a network expert, you are required to give the best possible solutions for the following
queries of the university administration:
a. Suggest cable layout for the connections between the various buildings,
b. Suggest the most suitable building to house the network server.
c. Suggest the placement of the following devices:
(i) Switch/Hub
(ii) Repeater
d. Which of the following transmission mediums can ensure fast Internet connectivity
throughout the campus?
(i) Optical Fibre
(ii) Coaxial cable
(iii) Ethernet Cable
e. The school plans to host an online webinar with an expert in Mumbai for all its
teachers. Which network protocol will be used for the webinar?

36. Consider the DataFrame, dfEmp, as shown below: 5

Write Python statements to perform the following tasks:


a. Print the first three rows of the DataFrame dfEmp
b. Display the names of all departments.
c. Remove the column grade.
d. Display the employee numbers from indexes in the range 3 to 5
e. Rename the column name dept to department.

37. Write SQL queries to perform the following: 3+2=5


a. Round off the value 203.78965 to 2 decimal places.
b. Calculate the value of 2 raised to the power of 5.
c. Display the current date and time.
d. Display the count of rows in the Travel table.
e. Display the substring, 'and' from the string, 'Jinny and Johny'.

[9]

You might also like