IP-QP-1 (1)
IP-QP-1 (1)
IP-QP-1 (1)
General Instructions:
The only alias name that can be used with the Pandas library is pd.
3. Identify the networking device responsible for connecting two networks that may work 1
upon different networking models.
(A) Bridge
(B) Hub
(C)Gateway
(D)Router
4. Identify the SQL command used to add a Primary Key to a table after the table has been 1
already created.
6. Which is a label based data selecting method to select a specific row(s) or column(s) 1
which we want to select?
(A) .iloc()
(B) .loc()
(C) .head()
(D) .tail()
7. In order to draw charts in Python, which of the following statement will be used: 1
10. Emma is a student working on her research project. She finds a well-written paragraph on 1
the Internet that perfectly explains the concept that she wants to include in her project.
She copies and pastes the paragraph as it is into her research paper. Her research paper
did not get selected due to plagiarism. What is the one way out of the following that
Emma could have followed to avoid plagiarism in this case ?
The COUNT(*) function provides the total number of __________ within a relation (table)
in a relational database.
(A) Columns (B) Unique values
(C)Not-null values (D)Rows
12. In which of the network topologies , all the devices connect via a backbone? 1
(A) Star
(B) Bus
(C)Tree
(D)Mesh
13. In a Pandas DataFrame, if the head() function is used without specifying the optional 1
argument indicating the number of rows to display, what is the default number of rows
displayed, considering the DataFrame has 15 entries?
(A) 0
(B) 1
(C) 4
(D) 5
15. In Python Pandas, while performing mathematical operations on series, index matching is 1
implemented and all missing values are filled in with _____by default.
(A)Null
(B) Blank
(C) NaN
(D) Zero
1
18. Which function is used to save the output of pyplot in the form of image file?
A. savefig(‘filename’)
B. save_fig(‘filename)
C. saveimg(‘filename’)
D. save_img(‘filename’)
19. Which type of network covers a large area such as a country or continent? 1
(A) PAN
(B) MAN
(C)LAN
(D)WAN
Q-20 and Q-21 are Assertion (A) and Reason (R) Type questions. Choose the correct option
as:
(A) Both Assertion (A) and Reason (R) are true, and Reason (R) is the correct explanation of
Assertion (A)
(B) Both Assertion (A) and Reason (R) are true, but Reason (R) is not the correct
explanation of Assertion (A)
(C)Assertion (A) is True, but Reason (R) is False
(D)Assertion (A) is False, but Reason (R) is True
20. Assertion (A):- DataFrame has both a row and column index. 1
21. Assertion (A): In SQL, DROP is a Data Manipulation Language (DML) Command. 1
Reasoning (R): DML commands are used to insert,delete , update and search data in a
table.
OR
24. Consider the string 'PAINTING'. Write the SQL commands to display the following output : 2
(i) ING
(ii) INT
25. Give any two differences between static webpage and dynamic webpage . 2
OR
Explain VoIP.
26. What is the purpose of EQUI-JOIN in SQL? Explain with the help of suitable example. 2
27. Mention two health concerns associated with excessive use of Digital Devices. 2
28. The Python code written below has syntactical errors. Rewrite the correct code and 2
underline the correction(s) made.
OR
import pandas as pd
vaccine_qty=pd.Series([10,16,1],index=["Typhoid","Tetanus","Hepatitis"])
cost=pd.Series([200,500,800],index=["Typhoid","Tetanus","Flu"])
print(vaccine_qty + cost)
29. At a local electronics store, a new range of smartphones has been launched, creating a 3
buzz among technology enthusiasts. However, the introduction of these new devices has
also raised concerns about the increasing generation of E-waste in the community.
30. Write a Python code to create a DataFrame with appropriate column headings from the 3
list given below:
OR
Create a series with 5 elements, then find square of each even element and find cube of
each odd elements.
31. Answer the following questions based on the table Sales given below : 3
32. Saman has been entrusted with the management of Law University Database. He needs to 3
access some information from FACULTY and COURSES tables for a survey analysis. Help
him extract the following information by writing the desired SQL queries as mentioned
below.
(I) To display complete details (from both the tables) of those Faculties whose
salary is less than 12000.
Table 2: Branch which stores Account code (ACode), City of the account holder(City)
33 Ananya , a class XII student has been given the task to fill in the blanks of the given code to 4
plot the following bar chart depicting India’s medal tally in Olympics.Help her complete
the code.
I. Write the suitable code for the import statement in the blank space in the line
marked as Statement-1.
II. Refer to the graph shown above and fill in the blank in Statement-2 with
suitable Python code.
III. III. Fill in the blank in Statement-3 with the name of the function to set the label
on the x-axis.
IV. Refer the graph shown above and fill the blank in Statement-4 to save it.
34. A) Mt Ashwin, who works as a database designer, has developed a database for a reputed 4
engineering college. This database includes a table Placement whose column (attribute)
names are mentioned below:
Based on the given table, help Mr. Ashwin to write SQL queries for performing the
following tasks :
(i) To list names of those companies where department is either Marketing or Networking.
(ii) To display the joining month name for Rising Star company.
(iii)Write SQL query to display the lowest vacancy among the books.
(iv)Write SQL query to display the number of characters in each department name
OR
Mr Jugal , a PGT(CS) has developed a database for his school . The database includes a
table named TEACHER whose column (attribute) names are mentioned below:
B)
T_ID: Shows the unique code for each teacher.
Name: Specifies the teacher name
Age: Specifies the age of the teacher.
Department: Indicates the department of the teacher.
Date_of_join: Specifies the joining date of the teacher
Salary :Specifies the salary of the teacher.
Gender:Specifies the gender of the teacher
(iv) Company is planning to get its website designed which will allow students to see their
results after registering themselves on its server.
Out of the static or dynamic, which type of website will you suggest?
(v) Which of the following will you suggest to establish the online face to face
communication between the people in the ADMIN office of Mumbai campus and Delhi
head office?
a) Cable TV b) Email c) Video conferencing d) Text chat
36. Ms. Shambhavi, a data analyst working on a college admission project, has created the 5
following DataFrame Sub_Details to store subjectwise details :
I. To display the total score from the runs column (attribute) in the Cricket 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) name in the Employee table, after
eliminating any leading and trailing spaces.
IV. To display the average value in the salary column (attribute) of the Teachers table.
V. To determine the count of rows in the computer table.
OR
Write suitable SQL query for the following: