Amity Indian Military College, Manesar 2 Term Examination - 2020-21 Class - XII Subject - Informatics Practices Time: 3 Hrs. M.M: 70
Amity Indian Military College, Manesar 2 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.
(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)
(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)
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.