Informatics Practices
Informatics Practices
Page 1 of 8
d) None of the above
9 To skip first 5 rows of CSV file, which argument will you give in read_csv()? 1
a) skiprows=5 b) skip_rows=5 c) skip=5 d) noread = 5
10 The digital trail which gets created as a person's Internet usage using computers, smartphones, 1
gaming consoles etc. is called ____.
a) Internet data
b) Internet trail
c) digital footprint
d) e-footprint
18 Assertion. Line graph is a tool for comparison and is created by plotting a series of several 1
points and connecting them with a straight line
Reason. You should never use a line chart when the chart is in a continuous data set
19 Which type of network covers a small geographical area like a single office, building, or school 1
campus?
(A) PAN (B) MAN (C)LAN (D)WAN
20 Give the output of the code:- 1
Page 2 of 8
import pandas as pd
a=pd.DataFrame([1,1,1,None], index=[‘a’,’b’,’c’,’d’], columns=[‘one’])
print(a)
b) Given are two objects, a list object namely lst1 and a Series object namely ser1, both are
having similar values i.e., 2,4,6,8. Find out the output produced by following statements:
i) print(lst1*2) ii) print(ser1*2)
23 (a) Sarah works in a multinational IT firm. One day, she came to know that some mails were 2
sent from her official mail account but she had not actually sent them.
Based on the given information, answer the following questions:
24 Predict the output of the following queries based on the table BIKES given above: 2
26 Write any two differences between DELETE and DROP TABLE command of MySQL.
b) Write a Python Program to create a Pandas Series as shown below using a dictionary. Note
that the left column indicates the indices and the right column displays the data.
PUNJAB CHANDIGARH
MP BHOPAL
UP LUCKNOW
RAJASTHAN JAIPUR
SECTION C
29 What are the techniques used in India for E-waste management? 3
(i) Create two series – one to store various product names and the other to store the
corresponding price.Each series should have appropriate row label as given below :
(ii) Create a dictionary containing ‘Product_name’ and ‘Product_price’ as keys. Add the series
created in part (i) as their corresponding values.
(iii) Create a DataFrame from the above created dictionary of series.
Help her in writing the Python program to accomplish the above-mentioned tasks.
Page 4 of 8
Write suitable Python statements to perform the following tasks:
(i) Add a new column Rating to the DataFrame having the following values: 3, 1, 2, 4, 5
(ii) Change row labels from A, B, C, D, E to Team A, Team B, Team C, Team D and Team E.
(iii)Change the column label of first column from 'Won' to 'Matches won'.
31 Answer the following questions based on the table Sales given below : 3
Table : Sales
(ii) Write the SQL command to insert the following data in the table Sales :
id E009
Name Sukumar
City Nagpur
Commission 10
(iii) Is the command used in part (ii) a DDL or a DML command ?
32 Consider the table BIKES given below : 3
Table : BIKES
Page 5 of 8
(a) Write SQL commands for the following:
(i) Display Bikenames and their corresponding Brandnames in descending order of cost.
(ii) Display Brandnames of bikes whose Biketype is not known.
(iii) Consider the following query :
SELECT * FROM BIKES WHERE Cost BETWEEN 200000 AND 3000000;
Write another query, using relational and logical operators which will produce the same output.
OR (Choice is within iii part only)
(b)
(iii) SELECT SUM(Cost), Brandname FROM BIKES GROUP BY Brandname Having
Brandname = "WMV" OR Brandname = "Indiana";
SECTION D
33 The data of students opted Science, Commerce and Humanities in Kendriya Vidyalaya is as 4
follows.
Stream Science Commerce Humanities
Students 1522 1388 890
Write a code to present it using a bar plot giving suitable title and label to chart.
Page 6 of 8
I. Suggest the most suitable department in the Bengaluru Office Setup, to install the server. Also,
give a reason to justify your suggested location.
II. Draw a suitable cable layout of wired network connectivity between the departments in the
Bengaluru Office.
III. Which networking device would you suggest the company to purchase to interconnect all the
computers within a department in Bengaluru Office?
IV. The company is considering establishing a network connection between its Bengaluru Head
Office and Lucknow regional office. Which type of network—LAN, MAN, or WAN—will
be created? Justify your answer.
V. The company plans to develop an interactive website that will enable its employees to
monitor their performance after login. Would you recommend a static or dynamic website,
and why?
36 Consider the DataFrame df shown below. 5
Page 7 of 8
Write Python statements for the DataFrame df to:
I. Print the first two rows of the DataFrame df.
II. Display titles of all the movies.
III. Remove the column rating.
IV. Display the data of the 'Title' column from indexes 2 to 4 (both included)
V. Rename the column name 'Title' to 'Name'.
37 a)Write suitable SQL query for the following: 5
I. To display the average score from the test results column (attribute) in the Exams table
II. To display the last three characters of the registration number column (attribute) in the
Vehicles table. (Note: The registration numbers are stored in the format DL-01-AV-1234)
III. To display the data from the column (attribute) username in the Users table, after eliminating
any leading and trailing spaces.
IV. To display the maximum value in the salary column (attribute) of the Employees table.
V. To determine the count of rows in the Suppliers table.
OR (Choice is within a) and b) part )
b)Write suitable SQL query for the following:
I. Round the value of pi (3.14159) to two decimal places.
II. Calculate the remainder when 125 is divided by 8.
III. Display the number of characters in the word 'NewDelhi'.
IV. Display the first 5 characters from the word 'Informatics Practices'.
V. Display details from 'email' column (attribute), in the 'Students' table, after removing any
leading and trailing spaces.
*********END OF PAPER*********
Page 8 of 8