0% found this document useful (0 votes)
24 views6 pages

12 IP PreBoard1QP

The document is an examination paper for Class XII Informatics Practices at St. Mary’s School Dahod, consisting of 37 questions divided into five sections with varying marks. It includes multiple-choice questions, programming tasks, and SQL queries, all requiring answers in Python and MySQL. The paper emphasizes understanding of data structures, web technologies, and health concerns related to digital device usage.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
24 views6 pages

12 IP PreBoard1QP

The document is an examination paper for Class XII Informatics Practices at St. Mary’s School Dahod, consisting of 37 questions divided into five sections with varying marks. It includes multiple-choice questions, programming tasks, and SQL queries, all requiring answers in Python and MySQL. The paper emphasizes understanding of data structures, web technologies, and health concerns related to digital device usage.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 6

St.

Mary’s School Dahod


PreBorads
Class XII Subject- Informatics Practices Max. Marks: 70
Date: Time allowed: 03 Hours
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 Objectives, text of the correct answer should also be written.
SECTION A
Q1. Within pandas, a missing value is denoted by __________.
(A) Null (B) Blank (C) NaN (D) Zero
Q2. A ____________ is a device that connects different networks and routes data packets between them. (A)
(A)Hub (B) Bridge (C) Gateway (D) Repeater
Q3. What will be the output produced on the execution of the following MySQL statement? SELECT
MOD(9,0);
(A) 0 (B) NULL (C) NaN (D) 9
Q4. Suman wants to display the average commission of salesmen who have achieved the target 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;
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;
Q5. On the burning of e-waste such as electronic circuit boards, a harmful chemical called ________ is created,
which causes skin diseases, allergies, and an increased risk of lung cancer.
(A) Hydrogen(B) Beryllium (C) Chlorine (D) Oxygen
Q6. In Python, when a DataFrame is created using a dictionary, keys of the dictionary are set as ____________
of DataFrame.
(A) Column names (B) Rows (C) Either Columns Or Rows (D) Neither Columns Nor Rows
Q7. Which of the following MySQL functions serves the same purpose as the UCASE() function?
(A) UPPERCASE() (B) CAPITALCASE() (C) UPPER() (D) TITLE()
Q8. Which Python library is specifically designed for visualizing data and plotting 2D arrays?
(A)pandas (B)numpy (C) csv (D) matplotlib
Q9. Which of the following is the correct expansion of csv?
(A) Column Separated Values (B) Class Separated Values
(C) Comma Separated Values (D) Colon Separated Values
Q10. Reshma is writing a research paper on Artificial Intelligence. She downloaded specific images 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
Q11. 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
Q12. Which topology connects the nodes in a network in a straight-line manner?
(A) Bus topology (B) Star topology (C) Tree topology (D) Mesh topology

Page 1 of 6
St. Mary’s School Dahod
Q13. Which of the following commands will show the last five rows from a Pandas Series, named pandasSeries
(A) pandasSeries.Tail( ) (B) pandasSeries.tail(5) (C) pandasSeries.TAIL(5) (D)
tail(5).pandasSeries
Q14. Samvit works in a bank. One day, he received an email stating that the bank’s server was 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
Q15. While creating a Series from a dictionary, if no index is specified, the ___________ are used 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
Q16. Which of the following functions is used to display the cardinality of a table in MySQL?
(A) COUNT() (B) COUNT(ROWS) (C) COUNT(COLUMNS) (D) COUNT(*)
Q17. Which of the following commands is the correct way to select a column labeled city from a DataFrame
named DF?
(A) DF.label['city'](B) DF.loc[:,'city'](C) DF.head['city'] (D) DF.tail['city']
Q18. Which method is used to save the output of pyplot as an image file, say, filename?
(A) pyplot.savefig("filename.png") (B) pyplot.save_figure(filename)
(C)pyplot.save(filename) (D) pyplot.save_fig(filename)
Q19. Abha has created a document on a desktop computer in her lab. She wants to print it out 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
Choose the correct option for Q20 and Q21
i. Both A and R are true and R is the correct explanation for
ii. Both A and R are true and R is not the correct explanation for A Q20
iii. A is True but R is FalseQ21
iv. A is false but R is True
Q20. Assertion (A): To use the pandas library in a Python program, one must import it.
Reasoning (R): pandas provide two data structures for processing the data – Series and DataFrame.
Q21. Assertion (A): To retrieve data from a table in MySQL, SELECT statement is used.
Reasoning (R): SELECT is a DDL command.
SECTION B
Q22. In the context of the Pandas library in Python, explain the key differences between a Series and a
DataFrame.
 A Series is a one-dimensional labeled array that can hold data of any type (integers, strings, floats,
etc.). It is similar to a column in a table.
 A DataFrame is a two-dimensional labeled data structure, similar to a table or a spreadsheet. It
consists of rows and columns. Each column in a DataFrame is a Series.
OR
Q22. What do you mean by indexing in Pandas? Write the names of two forms of indexing used in Pandas.

 Indexing in Pandas refers to selecting particular rows and columns of a DataFrame or Series.
It is used for data selection, filtering, and alignment.
 Two forms of indexing in Pandas are:
1. Label-based indexing (using .loc[])
2. Position-based indexing (using .iloc[])

Q23. Differentiate between the active digital footprint and passive digital footprints.

 Active Digital Footprint: Created when a user intentionally shares information online, such as
posting on social media or filling out a form.
 Passive Digital Footprint: Collected without the user's knowledge, such as websites tracking a
user's browsing history or IP address.

Q24. Consider the following string value in a MySQL database:


' Orange Education! '
Write suitable SQL queries for the following:
a. To remove leading and trailing spaces from the string. SELECT TRIM(' Orange Education! ');
b. To extract the first five characters from the string. SELECT LEFT(' Orange Education!', 5);
Page 2 of 6
St. Mary’s School Dahod

Q25. Briefly describe the concept of web hosting.


Web Hosting refers to the service that allows individuals or organizations to publish their websites or
web applications on the internet. Web hosting providers offer the infrastructure (like servers) required
to store website data and make it accessible online.
OR
Q25. Explain the concept of browser cookies and mention one advantage of using them.

 Browser Cookies are small files stored on a user's device by websites. They help websites
remember user preferences, login details, and session information.
 Advantage: Cookies enhance the user experience by enabling features like auto-login and
customized content.

Q26. Mention any two health hazards associated with inappropriate and excessive use of gadgets.
 Eye strain and vision problems (e.g., Computer Vision Syndrome).
 Increased risk of repetitive strain injuries (e.g., carpal tunnel syndrome).
Q27. Mention two health concerns associated with excessive use of Digital Devices.

1. Sleep disturbances due to prolonged exposure to blue light.


2. Obesity and related problems caused by reduced physical activity.

Q28. The Python code below contains errors. Rewrite the correct code and underline the corrections made.
import Pandas as pd
df ={"HP":{"Desktops","Laptops","Printers"},"Sales":[10,14,9]}
df= pd.DataFrame(DF)
print("df")
import pandas as pd # "Pandas" corrected to "pandas"
df = {"HP": ["Desktops", "Laptops", "Printers"], "Sales": [10, 14, 9]} # Curly braces changed to square
brackets for lists
df = pd.DataFrame(df) # "DF" corrected to "df"
print(df) # Removed quotes from df
OR
Q28. Complete the given Python code to get the required output (ignore the dtype attribute) as
Output:
Tamil Nadu Chennai
Uttar Pradesh Lucknow
Manipur Imphal

Code:
import _______ as pd
data = ['Chennai','_______','Imphal']
indx = ['Tamil Nadu','Uttar Pradesh','Manipur']
s = pd.Series(_______, indx)
print(_______)
SECTION C
Q29. Describe the following terms:
(i) FOSS (ii) IPR (iii) Cyber Bullying
Q30. Using a dictionary, write a code snippet to create the following DataFrame named players.

OR
Q30. What will be the output produced on the execution of the following code snippet?
Page 3 of 6
St. Mary’s School Dahod
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])
Q31. Write MySQL statements for the following:
(i) To create a database named Stationery.
(ii) To create a table named Pens within Stationery. The specifications of table Pens are given below:

Q32. Consider two tables, TAXI and TRAVEL, given below:


TABLE: TAXI

TABLE: TRAVEL

Write SQL statements to perform the following:


(i) To display all the customer names and the type of taxi they have taken.
(ii) For each taxi, display the average distance traveled (in km).
(iii) To delete the record of customers whose Taxi_Code is not known.
OR
(i) To display the names of customers in alphabetical order.
(ii) To change the fare per kilometre of the car AC INNOVA to 25.
(iii)To display the taxi code, type, and travel date for each taxi.

SECTION D
Q33. Kapil wants to be a cricket coach. He wants to analyze the runs scored in the 10-over intervals, 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.
OR
Q33. Write Python code to plot a bar chart for India’s medal tally as shown below:

Page 4 of 6
St. Mary’s School Dahod

Also give suitable python statement to save this chart.


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

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.
OR
Q34. Consider the table, GARMENT given below:
When executed, what output will be produced for each of the
following SQL queries?
(i)SELECT LEFT(GNAME, 2) FROM GARMENT
WHERE COLOUR = 'RED';
(ii)SELECT AVG(PRICE) FROM GARMENT
WHERE SIZE = 'L';
(iii)SELECT SUM(PRICE) FROM GARMENT
GROUP BY COLOUR;
(iv)SELECT MIN(DOP) FROM GARMENT;
SECTION E
Q35. GNG School of Uttarakhand is setting up a secured network for its campus at Rishikesh to 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:

Page 5 of 6
St. Mary’s School Dahod

Number of Computers in each building:

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?
Q36. Consider the DataFrame, dfEmp, as shown below:

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.
Q37. Write SQL queries to perform the following:
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'.
OR
Q37. Write suitable SQL query for the following:
a. To display the average score from the test_results column (attribute) in the Exams table
b. 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 DL-01-AV-1234)
c. To display the data from the column (attribute) username in the Users table, after eliminating any
leading and trailing spaces.
d. To display the maximum value in the salary column (attribute) of the Employees table.
e. To determine the count of rows in the Suppliers table.
ALL THE BEST

Page 6 of 6

You might also like