Professional Documents
Culture Documents
12 Informaticspractices22 23 Sp01
12 Informaticspractices22 23 Sp01
Maximum Marks: 70
Time Allowed: : 3 hours
General Instructions:
Section A
1. To change the 5th column's value at 3rd row as 35 in dataframe DF, you can write
a) DF.iat[3, 5] = 35
b) DF[4, 6] = 35
c) DF[3, 5] = 35
d) DF.iat[4, 6] = 35
2. Identify the right type of chart using the following hints.
a) Scatter plot
b) Pie chart
c) Line chart
d) Bar chart
3. In which of the topology, network components are connected to the same cable?
a) Star
b) Bus
c) Ring
d) Mesh
4. By default, ORDER BY clause lists the results in _______ order.
a) Same
b) Any
c) Descending
d) Ascending
5. The least restrictive open source licence is ________ licence.
a) BSD
b) Apache
c) GNU
d) MIT
6. The length of a network segment in a LAN network is more than 100 metres. Select the device to be connected to
maintain the strength of signal:
OR
OR
b Chirag 82 Science
c Tushar 69 English
d Mahi 70 Science
e Vanshika 92 Computer
29. What is digital property rights? Write the names of some digital property rights.
OR
OR
OR
Section E
34. Read the text carefully and answer the questions:
Ankit has created the following dataframe "Climate" to record the data about climatic conditions of four years.
Year MaxTemp MinTemp Rainfall
2017 32 20 123
2018 33 22 140
2019 35 21 135
2020 34 23 160
i. Which code snippets will return the MaxTemp and Rainfall for year 2018 and 2019?
ii. Display the temperature difference between MaxTemp and MinTemp for all the rows in the dataframe Climate.
iii. Write the statement to display two rows from the top in the dataframe.
OR
Number of computers
Admission Wing 50
Admin Wing 10
Lib Wing 25
i. Suggest the type of networking (LAN, MAN, WAN) for connecting Lib Wing to Admin Wing. Justify your
answer.
ii. Suggest the most suitable place (i.e. wing) to house the server, with a suitable reason.
iii. Suggest and placement of the following devices with reasons.
i. Repeater
ii. Switch
OR
Solution
Section A
1. (a) DF.iat[3, 5] = 35
Explanation: DF.iat[3, 5] = 35
2. (c) Line chart
Explanation: Line chart
3. (b) Bus
Explanation: Bus
4. (d) Ascending
Explanation: Ascending
5. (d) MIT
Explanation: MIT
6. (b) Repeater
Explanation: The repeater amplifies the input signal to make up the loss in strength.
7. (c) Chatting
Explanation: Chatting
8. (a) Desc, Asc
Explanation: Desc, Asc
9. (a) Back
Explanation: Back
10. (a) Hacking
Explanation: Hacking
To practice more questions & prepare well for exams, download myCBSEguide App. It provides complete study
material for CBSE, NCERT, JEE (main), NEET-UG and NDA exams. Teachers can use Examin8 App to create similar
papers with their own name and logo.
11. (b) WHERE
Explanation: WHERE
12. (b) COUNT
Explanation: COUNT
13. (c) Software firewall
Explanation: Software firewall
14. (c) Cyber law
Explanation: Cyber law
15. (a) show()
Explanation: show()
16. (d) SUM()
Explanation: SUM()
17. (a) Both A and R are true and R is the correct explanation of A.
Explanation: Both A and R are true and R is the correct explanation of A.
18. (a) Both A and R are true and R is the correct explanation of A.
Explanation: Both A and R are true and R is the correct explanation of A.
Section B
OR
Using WWW, a user can download files, listen to music, view video files and jump to other documents or websites by
using hypertext links.
20. To convert a uppercase string into lowercase use LOWER() function
mysql>SELECT LOWER('RAHUL');
mysql>SELECT LOWER('DEEPAK');
21. 5.3
22. i. Output - 7658.35
ii. Output - 2
23. MS-Blaster, Mellisa worm, SQL Slammer worm are the common examples of worms.
OR
The continuous use of devices like smartphones, computer desktop, laptops, headphones etc cause a lot of health hazards
if not addressed. These are:
i. Impact on bones and joints: wrong posture or long hours of sitting in an uncomfortable position can cause muscle
or bone injury.
ii. Impact on hearing: using headphones or earphones for a prolonged time and on high volume can cause hearing
problems and in severe cases hearing impairments.
24. S=pd.Series([5, 10, 15, 20, 25], index = ['a', 'b', 'c', 'd', 'e'])
Section C
26. COUNT() function returns the total number of values or rows of the specified field or column. COUNT (*) is a special
function, as it returns the count of all rows in a specified table. It includes all the null and duplicate values.
27. i. ROUND() function rounds a number to certain decimal places. Here, number of decimal places is 3 and the number
is 8.72 . So, the output will be 8.720
ROUND (8.72, 3);
8.720
ii. ROUND() function rounds a number to certain decimal places. Here, number of decimal places is 0. So, as per
rounding rules the integer part increases by 1 to give 10.
ROUND (9.8);
OR
Do not click on any link in a mail that tells you to change any of you passwords or security code.
30. i. 4
ii. FO
OR
OR
i. df ['Designation' ]
ii. df.rename (index={1 : 'E101' , 2 : 'E102' , 3 : 'E103', 4 : 'E104', 5 : 'E105 ', 6 : 'E106', 7 : 'E107'}, inplace = True)
To practice more questions & prepare well for exams, download myCBSEguide App. It provides complete study
material for CBSE, NCERT, JEE (main), NEET-UG and NDA exams. Teachers can use Examin8 App to create similar
papers with their own name and logo.
Section E
34. i. Climate.iloc[1:3, 1:2]
With the iloc() function the 1st parameter is the row slice, 2nd parameter is the column index set. Here 2018,
2019 are in index 1, 2 and columns to be shown are 'MaxTemp and 'Rainfall'.
ii. print(Climate["MaxTemp"]-Climate["MinTemp"])
The dataframe numeric columns can be subtracted from each other by indexing them to the dataframe names.
iii. print (Climate.head(2))
The head() function can be used to display the first n rows from a dataframe. Here Climate.head(2) will return
the first two rows.
OR
The call to count(), count(0) and count(axis='index') all return the exact number of values in each column. The
count() is an aggregate function that counts the number of records.
35. i. Since, the distance between Lib Wing and Admin Wing is small. So type of networking is small, i.e. LAN.
ii. Since, maximum number of computers are in Student Wing, so suitable place to house the server is Student
Wing.
iii. i. Repeater should be installed between Student Wing and Admin Wing as distance is more than 60 m.
ii. Switch should be installed in each wing to connect several computers.
OR