Ip Set Ii
Ip Set Ii
SECTION A
1 Identify the domain name from the URL given 1
http://www.ncert.nic.in/textbook/textbook.html
i. http
ii. ncert.nic.in
iii. textbook.html
iv. www
3 Which one of the following does not belong to the FOSS category? 1
i. Ubuntu
ii. Mozilla Firefox
iii. Fedora
iv. Adobe Acrobat reader
i. 3
ii. 4
iii. -3
iv. -4
1
5 Kunal wants to ignore the fractional part of a number. The ___________ function of 1
Sql will help him to serve his purpose.
i. mod()
ii. pow()
iii. trim()
iv. round()
7 Identify the correct SQL query that returns the number of not null records in the 1
Project field of the ‘Students’ table?
8 SQL applies conditions on the groups through __________ clause after groups have 1
been formed.
i. GROUP BY
ii. WITH
iii. WHERE
iv. HAVING
i. 43000
ii. 44000
iii. 43800
iv. 43783
10 Given the python code for creating the series object series3 1
import numpy as np
import pandas as pd
array1 = np.array([1,2,3,4])
series3 = pd.Series(array1)
series3 -=1
2
11 Identify the odd one out: 1
numpy, dictionary, pandas, matplotlib
i. numpy
ii. pandas
iii. matplotlib
iv. dictionary
12 Which function will be used to read data from a CSV file into a pandas data frame? 1
i. readcsv()
ii. to_csv()
iii. read_csv()
iv. csv_read()
13 After setting up the lab and internet in the lab, Sayank is now required to enable 1
videos and animations to be played on the web browser for students of multimedia
class. Which browser tool /service can be used for the same?
i. Plug-ins
ii. Add-ons
iii. Control Panel
iv. Download Settings
14 TRIM() is a _______. 1
i. String function
ii. Numeric function
iii. Date function
iv. Aggregate function
i. Theft of a laptop
ii. Photocopying a printed report
iii. Installing antivirus for protection
iv. Transfer of money using stolen username and password
16 The process of re-selling old electronic goods at lower prices is called ______ 1
i. reducing
ii. reusing
iii. recycling
iv. refurbishing
Q17 and 18 are ASSERTION AND REASONING based questions. Mark the correct choice as
3
17 Assertion(A): A dynamic web page is one in which the content of the web page can 1
be different for different users.
Reasoning(R) :When a request for a dynamic web page is made to the web server,
the server may perform some additional processes like getting information from the
database, updating date and time etc.
SECTION B
19 Mention any 2 advantages of VoIP. 2
OR
Differentiate between website and web page.
She wants to display the highest marks obtained in each stream. She wrote the
following statement:
But she did not get the desired result. Rewrite the above query with necessary
changes to help her get the desired output.
22 Write a program to create and display a pandas series to store the names of 4 Indian 2
historical monuments and its states. The series should have the monument names as
values and state names as indexes which are stored in the given lists. Complete the
code to create the series using the lists given below.
23 What do you understand about plagiarism? Mention any two ways to avoid 2
plagiarism.
OR
What do you understand about Net Etiquettes? Explain any two such etiquettes.
import pandas as p1
seriesAlph = p1.Series({'a':15,'b':20,'c':30,'d':41,'e':55})
seriesAlph['b':'c']=500
4
print(seriesAlph[seriesAlph%2==0])
import pandas as pd
ResultSheet={ 'Arnab': pd.Series([90, 91, 97],index=['Maths', 'Science', 'Hindi']),\
'Ramit': pd.Series([92, 81, 96],index=['Social St.', 'Science', 'Sanskrit']),\
'Samridhi': pd.Series([89, 91, 88], index=['Maths', 'Social St.', 'Hindi'])}
ResultDF = pd.DataFrame(ResultSheet)
print(ResultDF.shape) # statement 1
print(ResultDF.columns) #statement 2
SECTION C
26 Based on the table ‘INVENTORY’ given here, write outputs for the following 3
queries:
Name Job
1 Ajay Programmer
2 Richa Manager
3 Roy CEP
4 Pragya NaN
5
Write python code to create the above dataframe.
Also write code to remove the first row from the dataframe.
28 Consider the data frame named Candidate that stores the result of a test conducted. 3
1 Krish 70.0 3 no
i. Name the function that iterates over a Data Frame horizontally and returns Series
objects where each series contains all column values for a row index.
30 Consider the table ‘SALES’ given below. Write suitable SQL queries for the 3
following.
i) Display the Scode in ascending order for those who have joined in November.
ii) Display the area wise total no of Sales persons.
iii) Display the salesman name having email id in gmail.
OR
Write any two differences between Single_row functions and Aggregate functions.
Give an example for each.
6
SECTION D
31 Write suitable SQL query for the following: 5
OR
What is the significance of the following clauses in a select statement?
i. ORDER BY
ii. HAVING
Explain with suitable examples.
32 QLife Medicos Center has set up its new office campus in Trivandrum. The center 5
has three buildings in its office compound namely Accounts, Research and Store as
shown in the diagram given below. Answer the questions (i) to (v) after going
through the block positions in the campus and other details given.
Number of computers
Accounts 45
Research 100
Store 11
7
As a network expert, provide the best possible answer for the following queries:
OR
8
Write Python code to plot a bar chart as shown below:
SECTION E
34 Milan has designed a database for his textile shop. Help him by writing answers to 1+
the following questions based on the given table ‘Customer’. 1+
2
i. Write a query to display the total no. of records having amounts between 15000 to
20000.
ii. Write the query to display the Account no., Customer name and Amount in
descending order of Customer name. If the Customer name is the same then display
the data in ascending order of Amount.
iii. Write the query to display the amount in each city where the amount is more than
15000.
9
Write the query to display the first 2 letters of the Customer in capital letters.
35 Consider the DataFrame df that contains data about students’ details with 1001,
1002, 1003, 1004, 1005 as indexes shown below.
Write Python statements to rename the row indices 1001 to CS1, 1002 to
Mat1, 1003 to IP1, 1004 to IP2, and 1005 to Mat2 and then retrieve the first 3
rows of it.
*******************************************
10