0% found this document useful (0 votes)
214 views8 pages

InformaticsPractices PRE BOARD23 24

The document provides instructions for a pre-board examination for grade 12 students. It contains 5 sections with multiple choice and other types of questions related to Informatics Practices. The instructions specify the number and type of questions in each section, the total marks, and that all programming questions must be answered in Python.

Uploaded by

ashu890135
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)
214 views8 pages

InformaticsPractices PRE BOARD23 24

The document provides instructions for a pre-board examination for grade 12 students. It contains 5 sections with multiple choice and other types of questions related to Informatics Practices. The instructions specify the number and type of questions in each section, the total marks, and that all programming questions must be answered in Python.

Uploaded by

ashu890135
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/ 8

THE S.D.

VIDYA SCHOOL, AMBALA CANTT


PRE-BOARD EXAMINATION
SESSION: 2023-24
GRADE: XII
SUBJECT: INFORMATICS PRACTICES (Code : 065)

TIME: 3 HOURS M.M.70

General Instructions:
1. This question paper contains five sections, Section A to E.
2. All questions are compulsory.
3. Section A has 18 questions carrying 01 mark each.
4. Section B has 07 Very Short Answer type questions carrying 02 marks each.
5. Section C has 05 Short Answer type questions carrying 03 marks each.
6. Section D has 02 questions carrying 04 marks each.
7. Section E has 03 questions carrying 05 marks each.
8. All programming questions are to be answered using Python Language only.

PART A
1. Which of the following Topologies contains a backbone cable running through 1
the whole length of the network?
i. Star ii. Bus iii. Mesh iv. Tree
2. Which of the following is not a type of cybercrime? 1
i. Data Theft
ii. Installing antivirus for protection
iii. Forgery
iv. Cyber Bullying
3. Gaining unauthorized access to a network or computer or digital files with 1
malicious intentions, is called _________.
i. Cracking ii. Hacking iii. Banging iv. Phishing

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.45

Page 1 of 8
5. Aggregate functions are also known as 1
i. Scalar function
ii. Single row function
iii. Multiple row function
iv. Hybrid function
6. ………………is not a FOSS tool 1
i. Libre Office
ii. Mozila Firefox
iii. Google Chrome
iv. Python
7. CSV stands for: 1
i. Column Separated Value
ii. Class Separated Value
iii. Comma Separated Value
iv. Comma Segregated Value
8. Raj, a Database Administrator, needs to display the average pay of workers from 1
those departments which have more than five employees. He is experiencing a
problem while running the following query:

SELECT DEPT, AVG(SAL) FROM EMP WHERE COUNT(*) > 5


GROUP BY DEPT;

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

i. SELECT DEPT, AVG(SAL) FROM EMP WHERE COUNT(*) > 5


GROUP BY DEPT;
ii. SELECT DEPT, AVG(SAL) FROM EMP HAVING COUNT(*)>5
GROUP BY DEPT;
iii.SELECT DEPT, AVG(SAL) FROM EMP GROUP BY DEPT
WHERE COUNT(*)> 5;
iv. SELECT DEPT, AVG(SAL) FROM EMP GROUP BY DEPT
HAVING COUNT(*)> 5;

9. Predict the output of the following query: 1


SELECT LCASE (MONTHNAME ('2023-03-05'));

i. May
ii. March
iii. may
iv. march

Page 2 of 8
10. To display first 5 rows of a series object ’S’, you may write: 1
i. S.head( )
ii. S.tail(5)
iii. S.head(5)
iv. S.tail()
11. With reference to SQL, identify the invalid data types 1
i. date
ii. integer
iii. varchar
iv. month
12. In python pandas while performing mathematical operation on series, index 1
matching is implemented and all missing values are filled in with _____ by default
i. null
ii. blank
iii. NaN
iv. Zero
13. Which amongst the following is not an example of a browser 1
i. Chrome
ii. Firefox
iii. Avast
iv. Microsoft Edge

14. In SQL, which function is used to display current date and time? 1
i. Date()
ii. Time()
iii. Current()
iv. Now()

15. Every activity you perform on the internet is saved for how long? 1
i. 1 month
ii. 1 year
iii. As per my setting
iv. Forever

16. is the trail of data we leave behind when we visit any website (or use 1
any online application or portal) to fill-in data or perform any transaction.
i. Offline phishing
ii. Offline footprint
iii. Digital footprint
iv. Digital phishing
Q17 and 18 are ASSERTION AND REASONING based questions. Mark the correct choice as
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
Page 3 of 8
17. Assertion (A): - MODEM stands for Modulator- Demodulator 1
Reasoning (R):- It is a computer hardware device that converts data from a
digital format to analog and vice versa.

18. Assertion (A):- DataFrame has both a row and a column index. 1
Reasoning (R): - A dataFrame is a two dimensional labelled data structure like
a table of MySQL.

PART B
19. What is a web server? How is it different from web browser? 2
OR
What do you understand by the term cookies? Give any 2 benefits of cookies.

20. The Python code written below has syntactical errors. Rewrite the correct code and underline 2
the corrections made.
import panda as pd
profit=[500,300,800,1500]

indx=['Google','Microsoft','Mindtree','Wipro'
company=series(profit,index=inx)
print(company[company>500])
21. Consider the given SQL string: 2
“12#All the Best!”
Write suitable SQL queries for the following:
i. Returns the position of the first occurrence of the substring “the” in
the given string.
ii. To extract last five characters from the string.
22. Write a python program to create a series object, country, using a list that stores 2
the capital of each country.
Note: assume 4 countries to be used as index of the series object are India, UK,
Denmark and Thailand having their capitals as New Delhi, London, Copenhagen
and Bangkok respectively.
23. Differentiate between the active digital footprint and passive digital footprints. 2

24. What are aggregate functions in SQL? Name any two. 2

Page 4 of 8
25. Carefully observe the following code: 2

import pandas as pd
dic={‘pid’:[101,102,103,104,105],
‘pname’:[‘shyam’,’roushan’,’archit’,’mega’,’lalit’],
‘sports’:[‘cricket’,’tennis’,’football’,’cricket’,’cricket’],
‘points’:[45000,20000,15000,53000,60000]}
player=pd.DataFrame(dic)
print(player)
write the python statements for the following:
i. In the DataFrame player created above set the row labels as ‘player1’,
‘player2’, ‘player3’, ‘player4’, ‘player5’
ii. Rename the column points to net points in the dataframe player.

SECTION C
26. Consider the table Patient given below and write S Q L c o m m a n d s : 3

TABLE: patient
Patientid NAME CITY phone Date_of_adm Dept
1 GURPREET NEW DELHI 68476231 2021-12-10 Surgery
2 MALIKA MUMBAI 63546321 2022-01-08 Medicine
3 NADAR NEW DELHI 68421879 2022-02-02 Cardiology
4 SAHIB NEW DELHI 26543266 2022-01-11 Medicine
5 MEHAK BANGALORE 65434242 2021-03-09 Surgery

i. Display the details of all the patients who were admitted in January
ii. Count the total number of patients from New Delhi
iii. Display the last 2 digits of the patient id from surgery department

27. Create a DataFrame in Python from the given list: 3


[[‘Divya’,’HR’,95000],[‘Mamta’,’Marketing’,97000],[‘Payal’,’IT’,980000],
[‘Deepak’,’Sales’,79000]]
Also give appropriate column headings as shown below:

28. Write MySQL statements for the following: 3


i. To create a database named FOOD.
ii. To create a table named Nutrients based on the following specification:
Column Name Data Type Constraints
Food_Item Varchar(20) Primary Key
Calorie Integer

Page 5 of 8
29. Manohar received an email from a company, named Makemoney Pvt. Ltd., 3
claiming that Manohar has won Rupees 20 lakhs in a survey done online. In order
to claim the prize money, he was required to answer few security questions such
as his name, account number, pan card details, phone number and OTP for
verification purposes. For this, he had to click on the link provided in the email.
A. Should Manohar give the required details to the company?
B. What is the activity depicted above?
C. What should he do with this email?
OR
What do you understand by the term Hacking? Write any two measures that one
should take to avoid being the victim of hacking?
30. Consider the given DataFrame ‘Stock’: 3

Name Price
0 Nancy Drew 150
1 Hardy boys 180
2 Diary of a wimpy kid 225
3 Harry Potter 500

Write suitable Python statements for the following:


i. Add a column called Disc with the following data:
[10,5,8,13].
ii. Add a new book named ‘The Secret' having price 500.
iii. Remove the column Disc.
SECTION D
31. Based on table STUDENT given here, write suitable SQL queries for the 4
following:

Roll No Name Class Gender City Marks


1 Abhishek XI M Agra 430
2 Prateek XII M Mumbai 440
3 Sneha XI F Agra 470
4 Nancy XII F Mumbai 492
5 Himnashu XII M Delhi 360
6 Anchal XI F Dubai 256
7 Mehar X F Moscow 324
8 Nishant X M Moscow 429
i. Display gender wise lowest marks from City Mumbai
ii. Display total number of male and female students.
iii. Display city wise highest marks of Male students.

32. A data researcher in a stock market analyzes the increment or decrement in 4


percentage of stocks in 4 weeks based on the DataFrame (df) given below:
Stocks Week1 Week2 Week3 Week4
0 Stock_1 24 3 10 -13
1 Stock_2 28 4 -8 4
2 Stock_3 16 12 -10 2
3 Stock_4 52 -25 15 10

Page 6 of 8
Answer the following questions:
(i) Predict the output of the following Python statements:
(a) print(df.tail(2))
(b) print(df.iloc[1:2])
(ii) Write the Python statement to check for NaN values in DataFrame (df)
(iii) Replace the week3 percentage of Stock_2 with 8.
OR
iii) Display the column ‘Stocks’ as the index of the given DataFrame (df).
SECTION E
33. Write the output for the following SQL commands 5
Table fashion
ID product price quantity
F01 Kajal 970 10
F02 foundation 2100 15
F03 night cream 1700 20
F04 day cream 1400 10
F05 null 1200 25
F06 lipstick 850 32
i. Select count(product) from fashion;
ii. select SUM(price*quantity) from fashion where product =’night cream’;
iii. Select left(product,4) from fashion where price>1500;
iv. Select * from fashion order by price, quantity desc;
v. Select concat(ucase(left(product,3)),right(product,2)) from fashion;
OR
Find the output of the following SQL queries
i. select substr(‘climate change’,4,4);
ii. select ucase(Right(‘pollution’, 3));
iii. select length(‘happy’)+3;
iv. select trim(trailing ‘ab’ from ’abababacabababa’);
v. select mod(23,2);
34. Korient Pvt Ltd, Noida has four blocks as shown in the below diagram and is now 5
planning to set up a network.
Korient Pvt Ltd

FABRIC TESTING QUALITY CONTROL


BLOCK BLOCK

MERCHANDISING
EDP / IT BLOCK
BLOCK

Distance between each block is given as follows:


BLOCK (from) BLOCK (to) DISTANCE (in metre)
Merchandising Fabric Testing 50
Merchandising Quality Control 90
Merchandising EDP / IT 115
Fabric testing Quality Control 40
Fabric testing EDP / IT 45
Quality control EDP / IT 25

Page 7 of 8
The number of computers in each block is as follows:
BLOCKS NUMBER OF
COMPUTERS
Merchandising 17
Quality Control 42
EDP/IT 117
Fabric Testing 27
(i) Suggest the most suitable block to install the server. Justify your answer.
(ii) Suggest the ideal cable layout for connecting these blocks physically.
(iii) Which device would you suggest to connect each computer in each of the given
blocks?
(iv) Suggest the placement of the ‘Repeater’ in the layout with a justification.
(v) The company is planning to connect the Noida Branch office to its Delhi Head
office, which is 35 kmaway. Which type of network will be formed?
35 The heights of 10 students of eighth grade are given below: 5
Height_cms=[145,141,142,142,143,144,141,140,143,144]
Write suitable Python code to generate a histogram based on the given data,
along with an appropriate chart title and both axis labels.
Also give suitable python statement to save this chart.
OR
Write suitable Python code to create 'Favourite Hobby' Bar Chart as
shown below:

Also give suitable python statement to save this chart.

Page 8 of 8

You might also like