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

Amity Indian Military College, Manesar 2 Term Examination - 2020-21 Class - XII Subject - Informatics Practices Time: 3 Hrs. M.M: 70

This document appears to be an exam for a Class 12 Informatics Practices subject. It contains two sections - Section 1 with multiple choice and short answer questions related to Python, SQL, and computer networks; and Section 2 with case study questions involving dataframes. The questions test concepts like data types, functions, dataframes, SQL commands, network topologies, cyber security, and proper disposal of electronic waste. Students are asked to write code, provide outputs, and explain computer science concepts and precautions related to phishing emails and data privacy.

Uploaded by

Chirag Shokeen
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)
272 views8 pages

Amity Indian Military College, Manesar 2 Term Examination - 2020-21 Class - XII Subject - Informatics Practices Time: 3 Hrs. M.M: 70

This document appears to be an exam for a Class 12 Informatics Practices subject. It contains two sections - Section 1 with multiple choice and short answer questions related to Python, SQL, and computer networks; and Section 2 with case study questions involving dataframes. The questions test concepts like data types, functions, dataframes, SQL commands, network topologies, cyber security, and proper disposal of electronic waste. Students are asked to write code, provide outputs, and explain computer science concepts and precautions related to phishing emails and data privacy.

Uploaded by

Chirag Shokeen
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

Amity Indian Military College, Manesar

2nd Term Examination – 2020-21


Class – XII
Subject – Informatics Practices

Time : 3 hrs. M.M : 70

Part – A – Section – 1
Attempt any 15 questions from 1 to 21.

1. State Whether True or False : (1)


(i) Leaking your company’s data to the outside network without prior permission of
senior authority is a cyber crime.
(ii) Phishing is a term used to describe a malicious individual or a group of individual
who scam users.
2. Fill in the blanks- (1)
Covid-19 patients analysis in the Mumbai region is to be plotted. The command used to
give title to x axis as No. of patients in the graph is ……………….
(i) Plt.show() (iii) plt.plot(“no. of patients”
(ii) Plt.xlabel(“no of patients”) (iv) plt.title(“no of patients”)
3. Write the output of the following command- (1)
Select truncate(100.78,0)
4. Given a Pandas series called Marks, the command which will display the last 3 rows is
___________. (1)
(i) print(Marks.tail(3))
(ii) Print(Marks.Tail(3))
(iii) Print(Marks.tails(3))
(iv) Print(Marks.Tails(3))
5. Given the following Series S1 and S2 (1)
S1 S2
A 10 A 80
B 40 B 20
C 34 C 74
D 60 D 90

Write the command to find the product of series S1 and S2


6. Which of the following statements is used to create a histogram of ‘step’ type with 20
bins? (1)
(i) Plt.hist(x, bins=20, histype = “barstacked”)
(ii) Plt.hist(x, bins=20)
(iii) Plt.hist(x, bins=20, histype = “step”)
(iv) Plt.hist(x, bins=20, histype = hist())
7. The main function of _____________ to divide the message or data into packets of a
definite size on the source computer. (1)
8. In a DataFrame, axis = 0 represents the __________ elements. (1)
9. Which of the following network topology is shown in the figure: (1)

(i) Bus
(ii) Star
(iii) Tree
(iv) Ring
10. Software application that reside on a computer and is used to locate and display pages
and information provided by the web servers is defined as _________. (1)
11. The max() function in MySQL is an example of (1)
(i) Math function
(ii) Aggregate function
(iii)Text Function
(iv) Date function
12. ________________ is a term referring to a brand, invention, design or other kind of
creation which a person or business has legal rights. (1)
13. In Pandas, the function used to fill the missing values in a dataframe is _________.(1)
14. I can allow you to make audio calls.
I can allow you to make video calls.
I should be connected to internet enabled device equipped with microphone and speakers.
Who am I? (1)
15. Write the output of the following code – (1)
import pandas a pd
my_series = pd.Series({‘Indore’:20, ‘Ujjain’:35, ‘Bhopal’:40})
print(my_series[my_series>20])
16. While sending the email to a number of users, we wish that a particular recipients should
be able to see only sender’s email id and not other recipients. Where should we write the
email of all recipients , whether in CC and BCC? (1)
17. Expand the following terms – (1)
(i) VOIP (ii) SMTP
18. The ______ command can be used to modify the structure of the table. (1)
19. Write the output of the following command – (1)
import pandas as pd
data = [[‘Ram’, 10], [‘Shyam’, 12], [‘Rima’, 15]]
df = pd.DataFrame(data, columns = ‘Name’, ‘Age’], dtype = float)
print(df)
20. _____________ is a type of program that enters pretends to have, or is described as
having, a set of usable or desirable features but actually contains malicious codes. (1)
21. Name the primary law in India dealing with cybercrimes and electronic commerce. (1)
Section – II
Both the case study questions (22 & 23) are compulsory. Attempt any four subparts
from each question. Each subpart carries 1mark
22. Assume a dataframe df1 that contains data about climatic conditions of various cities C1,
C2, C3, C4 and C5 as indexes shown below and give the output of any four questions
from (i) to (v)

(i) df1.shape (1)


(ii) df1[1:2] (1)
(iii) df1.loc[‘c1’:’c3’, ‘City’] (1)
(iv) df1.iloc[2] (1)
(v) df1.city (1)
23. Consider the following table given below-

(i) To increase the price of “Amlodipine” by 50. (1)


(ii) To display the DrugId, DrugName and Pharmacy Name of all the records in
descending order of their price. (1)
(iii) Delete the fieldname Phramacylocation. (1)
(iv) State the commands to display all the details of the drugs where the name starts
with ‘M’ and has ‘Ch’ somewhere in the name. (1)

(v) Help Sachin to display Drugname in capital letters along with price rounded off to
the nearest integer. (1)

Part – B – Section - 1
24. Write python code to create the following dataframe df1using python pandas. Use any
method of Dataframe creation that you have learned : (2)
25. State any two differences between instr() and substr() function with example in sql. (2)
OR
What is the difference between where clause and having clause when used with the select
statement. Explain with an example.
26. Consider the decimal number x with value 9945.8853. write commands in SQL to (2)
(i) Round it off upto 2 decimal places.
(ii) Round it to 2 places before the decimal.
27. What will be the output of the following program – (2)

28. Rinku writes the following commands with respect to the table sales having fields,
itemno, iname, sales_made, commission. (2)

29. Consider the following SQL string : “Corporate World” (2)


Write command to display:
(i) “rate” (ii) “world”
OR
Consider the same string “Corporate World”. Write sql command to display –
(i) The position of the substring ‘or’ in the string ‘Corporate world’
(ii) The last four letters of the string.
30. Mr Hitesh wants to draw a line chart using a list of elements named LIST. Complete the
code to perform the following operations – (2)
(i) To plot a line chart using the given list.
(ii) To give a Y-axis label to the line chart named “sample numbers”

31. Expand the following terms related to Computer Networks (2)


(i) IMAP
(ii) POP
(iii) TCP/IP
(iv) HTTPs
32. Sujata received an email from her bank stating that there is a problem with her account.
The email provides instructions and a link, by clicking on which she can log on to her
account and fix the problem. Help Sujata by telling her the precautions she should take
when she receives these types of email.
33. Ms Sheena has many electronic gadgets which are not usable due to outdated hardware
and software. Help her to find any three best ways to dispose the used electronic
gadgets.(2)
Section - II
34. Consider two objects x and y. x is a list and y is a series. Both have values 10,20,30,
100. What will be the output of the following two statements considering that the above
objects have been created already. (3)
(i) Print(x+2) (ii) print(y+2)
Justify your answer.
35. What is unauthorized access? How confidentiality of data can be maintained? (3)
OR
Explain the difference between a web browser and web server with suitable examples.
36. A dictionary Grade contains the following : (3)

OR
Write a program to find the total salary of all the employees in the DataFrame employee
without using any aggregate function
37. A relation vehicle is given below- (3)

(i) Display the average price of each type of vehicle having quantity more than 20.
(ii) Count the type of vehicles manufactured by each company.
(iii) Display the total price of all types of vehicles.
Section - III
38. Write a code to plot the speed of a passenger train as shown in figure given below –(5)

39. Write the SQL statements to perform the following operations – (5)
(i) To display the name of the month of “2020-10-31”.
(ii) To remove spaces from the right side of the string, “Pandas”.
(iii) To display the name of the day, such as Friday or Sunday, from the current date.
(iv) To display the last name from “Arjun Awasthi”.
(v) To calculate number 7 raised to the power of 3.
OR
Consider the LOANS table given below and give the SQL commands to perform the
following –

(i) Display the sum of all Loan Amount whose interest rate is greater than 10.
(ii) Display the maximum interest from Loans table.
(iii) Display the count of all Loan Account Holders whose name ends with ‘Sharma’.
(iv) Display interest wise details of Loan account holders with at least 10 installments
remaining.
(v) Display interest wise count of all Loan account holders whose due installments
are much more than 5 in each group.
40. Chanakya University is setting up its academic blocks at Dehradun and is planning to
setup a network. The university has 3 academic blocks and one Human Resource center
as shown in the diagram given below – (5)

(i) Suggest the most suitable place (i.e block / center) to install the server of this
university with a suitable reason.
(ii) Suggest an ideal layout for connecting these blocks / centers for a wired
connectivity.
(iii) Which device will you suggest to be placed / installed in each of these block /
centers to efficiently connect all the computers with these block centers.
(iv) Suggest the placement of a Repeater in the network with justification.
(v) The University is planning to connect its admission office in Delhi which is more
than 1,250 km from the University. Which type of network out of LAN, WAN or
MAN will be formed. Justify your answer.

You might also like