0% found this document useful (0 votes)
193 views

IP Question Paper 2020-2021

The document provides instructions for a rehearsal examination in Informatics Practices. It contains two parts - Part A and Part B. Part A has two sections - Section I contains short answer questions to be answered in one word or line. Section II contains two case study questions, each with 5 subparts to attempt 4 out of 5. Part B has three sections - Section I contains short answer questions of 2 marks with internal options. Section II contains long answer questions of 3 marks with internal options. Section III contains a very long answer question of 5 marks with an internal option. The document provides examples of questions asked in the different sections, including code snippets, tables, and questions related to topics like databases

Uploaded by

blessy thomas
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)
193 views

IP Question Paper 2020-2021

The document provides instructions for a rehearsal examination in Informatics Practices. It contains two parts - Part A and Part B. Part A has two sections - Section I contains short answer questions to be answered in one word or line. Section II contains two case study questions, each with 5 subparts to attempt 4 out of 5. Part B has three sections - Section I contains short answer questions of 2 marks with internal options. Section II contains long answer questions of 3 marks with internal options. Section III contains a very long answer question of 5 marks with an internal option. The document provides examples of questions asked in the different sections, including code snippets, tables, and questions related to topics like databases

Uploaded by

blessy thomas
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/ 9

REHEARSAL EXAMINATION, 2020–2021

Subject : INFORMATICS PRACTICES TIME : 3 HOURS


Subject Code : 065 MAXIMUM MARKS: 70
GENERAL INSTRUCTIONS
1. Question paper consist of 9 pages and contains two parts A and B. Each part is compulsory.
2. Both Part A and Part B have choices.
3. Part-A has 2 sections:
a. Section – I is short answer questions, to be answered in one word or one line.
b. Section – II has two case studies questions. Each case study has 4 case-based sub-parts. An examinee
is to attempt any 4 out of the 5 subparts.
4. Part - B is Descriptive Paper.
5. Part- B has three sections
a. Section-I is short answer questions of 2 marks each in which two questions have internal options.
b. Section-II is long answer questions of 3 marks each in which two questions have internal options.
c. Section-III is very long answer questions of 5 marks each in which one question has question has
internal option.
Part – A
Section 1
(Attempt any 15 questions – Maximum 15 marks)
1. Fill in the blanks with a function to calculate the Variance of an array: 1
import numpy as np
data=np.array([1,2,3,4,5,6])
print(np.___(data,ddof=0)
2. Mr. Sadik wants to draw a line chart using a list of elements named LIST. 1
Complete the code to perform the following operations:
(i) To plot a line chart using the given LIST,
(ii) To give a y-axis label to the line chart named “Numbers”.
import matplotlib.pyplot as PT
LIST=[1, 2, 3, 4, 5, 6]
_____________________ Statement 1
_____________________ Statement 2
PT.show()
3. CSV stands for _____________________________: 1
4. Write the code to set the index of a dataframe : 1
df.________________('Customer',_______________= True)
5 Differentiate between a Dynamic and Static webpages. 1
6 The keyword used in a MySQL Select query to eliminate redundant data is _________ 1

1
7. What will be the output of the statements: 1
data=numpy.array([10,20,30,40,50,60,70,80])
print(data[-4:])
a) [40 50 60 70 80]
b) [10 20 30 40]
c) [50 60 70 80]
d) [50 40 30 20 10]
8. Write the output of the following code : 1
import numpy as np
array1=np.array([10,12,14,16,18,20,22])
array2=np.array([10,12,15,16,12,20,12])
a=(np.where(array1==array2))
print(array1[a])
9. If the axis value omitted while concatenating two arrays, the array will join: 1
a) Row wise
b) Column wise
c) Both Row and Column
d) Both will merge together

10. Tree topology is a combination of _____________ and ____________ topologies. 1


11. What is the use of the argument ‘Bins’ in a histogram? 1
a) Bins are the gaps between the range of values
b) Bins describe the number of data points that fall within a specified range of
values.
c) Bins describe the number of data points that join the data into one group
d) Bins are the maximum point available on an axis

12. Having clause is used in MySQL queries in combination with _________________ 1

13. The pipe() function is used for : 1


a) Execute a Library function single time
b) Execute a Library function multiple times
c) Execute a User defined function single time
d) Execute a User defined function multiple times
14. What is the severity of Plagiarism when paraphrasing is not done correctly? 1
a) Minor
b) Moderate
c) Serious
d) Extremely Serious

15. The fraudulent activity of attracting people to a legitimate looking fake website is 1
called ____________________________
16. Write ONE main difference between a Gateway and Bridge in networking. 1

17. Explain Shareware. 1

2
18. What is Mean Absolute Deviation (MAD) of a data set? 1
a) Average distance between each item.
b) Average distance between mean and Standard Deviation
c) Average distance between Median and Mean
d) Average distance between each data value and the Mean.
19. Write the command to change the name of a Column ‘sal’ to ‘salary’ in a table 1
employee using ALTER.
20. What will be the output of the following aggregate function? 1
Select avg(Salary) from employee:
Id Name Salary
1000 Raj 7000
1001 Harry NULL
1002 Kiran 5000

Section -II
Both the case study based questions (21 & 22) are compulsory.
Attempt any four sub parts from each question. Each sub question carries 1 mark.

21. Observe the table ‘Club’ given below:

i) What is the cardinality and degree of the above given table? 1


a) Cardinality - 5, Degree - 5
b) Cardinality - 5, Degree - 4
c) Cardinality - 4, Degree - 5
d) Cardinality - 4, Degree - 4

ii) If a new column contact_no has been added and two more members have joined the 1
club then how these changes will affect the cardinality and degree of the above given
table.
a) Cardinality - 6, Degree - 7
b) Cardinality - 5, Degree - 7
c) Cardinality - 7, Degree - 6
d) Cardinality - 6, Degree - 6

3
iii) Which query will add the new column contact_no to the table Club? 1
a) Update table Club Modify contact_no varchar(12);
b) Update table Club Add contact_no varchar(12);
c) Alter table Club Update contact_no varchar(12);
d) Alter table Club Add contact_no varchar(12);
iv) Which query will update the fees by 5% for the people in New Delhi? 1
a) Update Club set Fees = 5 where Address like ‘New Delhi’;
b) Update Club set Fees = Fees * 5% where Address like ‘New Delhi’;
c) Update Club set Fees = Fees + Fees * 5% where Address like ‘New Delhi’;
d) Update table Club set Fees = Fees + Fees * 5% where Address like ‘New Delhi’;
v) Select the name printed for the following query: 1
Select Member_Name from Club where Member_Name like ‘%i _ _ ’;
a) Sumit
b) Sachin
c) Niharika
d) All the above
22. Consider the following Python code to create a Series and answer the questions 1
below:
import pandas as pd
regno=[101, 102, 103, 104, 105, 106]
marks=[70, 80, 60, 45, 55, 65]
sr=pd.Series(marks,index=regno)
i) The print(sr.size) statement will print 1
a) 1
b) 2
c) 6
d) 12
ii) The print(sr.nbytes) statement will print 1
a) 6
b) 8
c) 36
d) 48
iii) Write the statement which will print the highest marks 1
a) print(sr.max())
b) print(pd.max(sr))
c) print(highest(sr))
d) print(sr.highest())
iv) The statement print(sr * 2) will print 1
a) 70 80 60 45 55 65
70 80 60 45 55 65
b) 140 160 120 90 110 130
c) Syntax Error
d) None

4
v) The sr.tail(2) function retrieve
a) The first two values
b) The last two values
c) The values except first two values
d) The values except last two values
Part - B
Section – I

23. Consider two arrays: 2


x = [72, 73, 74, 75, 76]
y = [76, 75, 74, 73, 72]
Write the code to create a Covariance Matrix using x and y and print the matrix.
OR
What is Pearson Correlation Coefficient in Numpy?
24. Write any TWO aggregate functions used with queries in MySQL. 2
OR
A table XYZ consist of two columns Surname and Forename.
The attribute Surname is of datatype varchar(20) and the attribute Forname is of
datatype char(20). What is the difference between both declarations?

25. Write the output of the following SQL queries: 2


i. SELECT INSTR(‘INTERNATIONAL’, ‘NA’);
ii. SELECT LENGTH(CONCAT(‘NETWORK’,’ING’));
v. SELECT ROUND(563.345, -2);
iii. SELECT DAYOFYEAR(‘2021-01-30’);
26. Consider the data subjects and marks: 2
subjects = [‘Biology , ‘Chemistry , Physics]
marks = [92, 97, 88]
1) Write a Python code to generate a Bar graph using this data.
2) Write a Python code to display the graph on to the screen window.

27. Name SQL Single Row functions (for each of the following) that 2
i. returns a number.
ii. returns lowercase letters.
iii. returns names of days. For example : ‘‘Monday’’, ‘‘Tuesday’’.
iv. returns weekday number. For example : 1 for Sunday, 2 for Monday etc.

28. Write SQL query to create a table ‘Sports’ with the following structure: 2

Field Type Constraint


Sport_id Integer – 10 Primary Key
Sport_name String – 20
venue String – 20 Not Null
category String – 20
points Integer – 5 Default value 0
pincode Integer – 14 Unique
5
29. Write code to group the DataFrame ‘dftemp’ by Month and display the highest 2
temperature for that month:
di = {'Month':['June', 'July', 'June', 'August', 'July', 'August'],
'Temperature':[47.6, 47.9, 45.8, 46.3, 45.9, 47.1] }
dftemp = pd.DataFrame(di)
30. Expand the following terminologies 2
i. HTTPS
ii. URL
iii. GUI
iv. VoIP
31. Describe some forms of Plagiarism in Students work. 2

32. What are the impacts of Technology change in the Society? 2

Section – II
33. Consider the following DataFrame consisting the sales of a company in four quarters 3
in five different areas, answer the questions given below:

df = pd.DataFrame({“Qtr1":[12000, 17700, 48000, 44000, 13000],


"Qtr2":[15800, 12500, 15400, 13000, 12900],
"Qtr3":[25000, 16000, 17000, 13600, 18200],
"Qtr4":[11400, 13700, 11700, NaN, 16000]})
i. Find the average sale for each quarter (consider skipping NaN values)
ii. Use a function to find the sum of sales for each area (consider skipping NaN
values)
iii. Write a code to increment sales by 5% in all quarters.
34. What do you mean by Cybercrime? Explain the different types. 3
OR
How can we recycle the e-Waste safely?
35. Complete the following code to get a Line graph as given below using values 3
X, X+10 and X+20. Print the first line in red, second in green and third in blue.
import matplotlib.pyplot as plt
import numpy as np
X = np.arange(1,20)

6
OR
What is a Histogram? How can we create a Histogram from a DataFrame?
Show appropriate example.

36. Pranay created a table named “Friends” to store his friend’s detail. Table “Friends” is 3
shown below. Write MySQL queries for the requirements given below for i) to iii)

i) To list name and city of those friends who don’t have an email id.

ii) To list name, city and country in descending order of age.

iii) To count how many friends have email id on gmail.

Section – III
37. Consider the following dataset: 5
Name Age Salary
Tom 35 1000
Jack 36 8000
Paul 35 4000
Sara 36 2500
Lara 35 2000
Harry 37 1500

i. Write code in Python to create a DataFrame named ‘Employee’ from the dataset.
ii. Set the index as the Name.
iii. Write code to find the total salary in each age group.
vi. Write code to set each employee’s salary as the highest salary in that age group.

7
38. Consider the two Databases – ITEM and VENDOR with the following information. 5
Write MySQL queries for (i) to (iii), based on the tables ITEM and VENDOR

Table : ITEM
ICode IName Price Colour VCode
S001 Refrigerator 20000 Blue P01
S002 Mobile Phone 45000 Black P02
S003 LCD 60000 Silver P03
S004 Washing Machine 12500 Smoke P01
S005 Air Conditioner 16000 White P03
S006 Refrigerator 15000 White P02

Table: VENDOR
VCode VName VCity
P01 Satish Mumbai
P02 Manoj Delhi
P03 Subodh Chennai
P04 Jacob Bangalore

i. To display Item Code , Item Name, Vendor Name and Vendor City of all the
Vendors, who manufacture “Refrigerator”
ii. To display Item Code, Item Name and Price of all the products whose price is more
than 20000 and Vendor from Delhi.

iii. Identify the Primary Key and Foreign Key of both table if any.

OR
Consider the following table named ‘‘EXAM’’ with details of marks. Write command
of MySQL for (i) to (iii) and output for (iv) and (v).

Adno SName Percentage ClSection Stream


R001 Sushant 90.2 12A Science
R002 Vaidyanath 80.5 12B Humanities
R003 Mira 68.9 12B Science
R004 Niara 96.8 12A Commerce
R005 Shinjini 88.9 12D Commerce

i. To display all information of the students of humanities stream in descending order


of percentage.
ii. To display Adno, Name, Percentage and Stream of those students whose name is less
than 6 characters long.

8
iii. To add another column Bus_Fees with datatype and size as Decimal (8,2).
iv. SELECT SName, Percentage FROM EXAM WHERE Name LIKE "%a";
v. SELECT ROUND(Percentage,0) FROM EXAM WHERE ClSection like ‘12A’;

39. Bharath Industries has set up its new center at Rajaji Nagar for its office and web 5
based activities. The company compound has 4 buildings as shown in the diagram
below:
Raj Fazz
Building Building

Jazz
Harsh
Building Building

Center to center distances between various buildings is as follows:


Harsh Building to Raj Building 75 m
Raz Building to Fazz Building 60 m
Fazz Building to Jazz Building 25 m
Jazz Building to Harsh Building 170 m
Harsh Building to Fazz Building 125 m
Raj Building to Jazz Building 90 m

Number of Computers in each of the buildings is follows:


Harsh Building 15
Raj Building 150
Fazz Building 15
Jazz Bulding 25
i. Suggest a cable layout of connections between the buildings.
ii. Suggest the most suitable place (i.e. building) to house the server of this organisation
with a suitable reason.
iii. Suggest the placement of the following devices with justification:
a) Internet Connecting Device/Modem
b) Switch
iv. Suggest the placement of a repeater in the selected layout.
v. The organisation is planning to link its sale counter situated in various parts of the
same city, which type of network out of LAN, MAN or WAN will be formed? Justify
your answer.

You might also like