Sample Paper 5_IP_12
Sample Paper 5_IP_12
b) Platform
c) Patent
d) Property
7 Which of the following is not a category of MySQL functions? 1
a) Text Functions
b) Mathematical Functions
c)Statistical Functions
d) Arithmetic Functions
8 What is the output of the following SQL Command : 1
SELECT ROUND(458.45,-1)
a) 460
b) 450
c) 458
d) 500
9 Which of the following function is the correct syntax of LCASE() function? 1
a) LCASE(row_name)
b) LCE(column_name)
c) LCASE(str/column_name)
d) None of the above
10 To display Third Element of a Series object S, you will write : 1
a) S[:3]
b) S[2]
c) S[3]
d) S[:2]
11 Which of the following statement is wrong in context of DataFrame? 1
a) Two dimensional size is Mutable
b) Can perform Arithmetic operators on rows and columns.
c) Homogeneous tabular data structure
d) Create Dataframe from numpy ndarray
12 Which attribute is not used with Dataframe? 1
a) size
b) column
c) empty
d) type
13 An online discussion group that allow direct live communication is known as 1
a) e-mail
b) Hyperlink
c) Chat group
d) Web Crawler
Code,Name,Salary,Deptcode
SELECT Deptcode,MAX(Salary) FROM Employee;
He wants to display maximum salary department wise. But he did not get the desired result.
Rewrite the above query with necessary change to help him get the desired result.
21 How are NULL values treated by aggregate functions? 2
22 Consider the given Series object Subject: 2
ndex Marks
English 75
Hindi 78
Math 82
Science 88
TABLE: Stock
Pid Pname Category Qty Price
1 Keyboard IQ 15 450
2 Mouse IQ 10 350
3 Wi-fi router NW 5 2600
4 Switch NW 3 3000
5 Printer O 4 17000
i. Write a query to display product name in upper case.
ii. To display the records in descending order of the price.
iii. To display category and category wise highest price of product.
OR (Option for part iii only)
(i)Which will be the most appropriate block, where TTC should plan to install their server?
(ii) Draw a block to block cable layout to connect all the buildings in the most appropriate manner
for efficient communication.
(iii) Which of the following device will be suggested by you to connect each computer in each of
the buildings?
(a) Switch (b) Modem (c) Gateway
(iv) The company is planning to connect its admission office in Hyderabad which is more than
1000 km from company. Which type of network will be formed?
(v) What will be the best possible connectivity out f the following you will suggest to connect the
new setup of offices in Bangalore with its London based office.
a) Satellite Link b) Infrared c) Ethernet
35 Mr. Sharma is working in a game development industry and he was comparing the given chart on 5
the basis of the rating of the various games available on the play store.
Write the python code for the above graph and Also give suitable python statement to save this
chart.
OR
Write a python program to plot a line chart based on the given data to
depict the pass percentage of students in CBSE exams for the years 2015 to
2018 as shown below.
Year=[2015,2016,2017,2018]
Pass_Percentage=[82,83,85,90]