IP-QP-1 (1)

Download as pdf or txt
Download as pdf or txt
You are on page 1of 11

कें द्रीय विद्यालय संगठन ,कोलकाता संभाग

KENDRIYA VIDYALAYA SANGATHAN, KOLKATA REGION


प्री- बोडड परीक्षा/PRE-BOARD EXAMINATION-2024-25

कक्षा/CLASS –XII अविकतम अंक /MAX.MARKS-70

विषय /SUBJECT-INFORMATICS PRACTICES(065) समय /TIME-03 घंटे/HOURS

General Instructions:

● Please check this question paper contains 37 questions.


● All questions are compulsory. However, internal choices have been provided in some questions.
Attempt only one of the choices in such questions
● The paper is divided into 5 Sections- A, B, C, D and E.
● Section A consists of 21 questions (1 to 21). Each question carries 1 Mark.
● Section B consists of 7 questions (22 to 28). Each question carries 2 Marks.
● Section C consists of 4 questions (29 to 32). Each question carries 3 Marks.
● Section D consists of 2 case study type questions (33 to 34). Each question carries 4 Marks.
● Section E consists of 3 questions (35 to 37). Each question carries 5 Marks.
● All programming questions are to be answered using Python Language only.
● In case of MCQ, text of the correct answer should also be written.

Q No. Section-A (21 x 1 = 21 Marks) Marks

1. State whether the following statement is True or False: 1

The only alias name that can be used with the Pandas library is pd.

2. The purpose of ORDER BY clause in a SQL statement is to: 1

(A) Create a table


(B) Filter rows based on a specific condition
(C)Specify the columns to be displayed
(D)Sort the result based on a column

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.

(A) CREATE TABLE


(B) UPDATE TABLE
(C )DESC TABLE
(D)ALTER TABLE
5. E-waste refers to: 1
(A) Software that has become obsolete
(B) Data that has been deleted from a storage device
(C)Viruses that infect computers
(D)Electronic devices that are no longer in use

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

(A) import pyplot.matplotlib as pl


(B) import matplotlib.pyplot as plt
(C) Import matplotlib.pyplot as plt
(D) import pyplot from matplotlib as plt

8. Now () in MySQL returns _______________. 1

(A) Today’s date


(B) Today’s date and current time
(C) System’s date and time
(D) Name of active database

9. State whether the following is True or False: 1

The following two statements have the same meaning:


(i) pd.read_csv('IP.csv', sep = ',')
(ii) pd.read_csv('IP.csv')

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 ?

(A) Copying the content from a book in her college library.


(B) Rewriting the paragraph in her own words and citing the original source.
(C) Asking her friends for information and using it in her research paper, without
mentioning her friend’s input.
(D) Posting the paper on her college website.

11. Fill in the Blank 1

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

14. Which of the following is not a feature of Open Source Software ? 1

(A) It can be shared with others without any licensing burden.


(B) It is same as free software.
(C) It can be downloaded on multiple devices.
(D) Its source code is available for free distribution.

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

16. Match the following SQL functions/clauses with their descriptions: 1

SQL FUNCTION DESCRIPTION


P. MIN 1. Find the position of a substring in a string.
Q. INSTR 2. Returns the minimum value in a column.
R. SUBSTR 3.Condition with group by
S. HAVING 4.Extracts the portion of a string

(A) P-2, Q-1, R-4, S-3


(B) P-2, Q-4, R-1, S-3
(C)P-4, Q-3, R-2, S-1
(D)P-4, Q-2, R-1, S-3

17. D1[ : ] = 77 , will set ____ values of a DataFrame ‘D1’ to 77. 1

a. Only First Row


b. Only First Column
c. All
d. None of the above

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

Reasoning (R): - A DataFrame is a two-dimensional labelled data structure like a table of


MySQL.

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.

Q No. Q No. Section-B (7 x 2 = 14 Marks) Marks Marks

22. How is a Series object different from and similar to ndarrays? 2


Support your answer with examples .

OR

What does the term 'library' signify in Python?


Mention one use for each of the following libraries: • Pandas • Matplotlib

23. Explain Licensing. 2

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

Find the output of the following Python code :

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)

Q No Section-C (4 x 3 = 12 Marks) Marks

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.

Answer the following questions based on above extract :

(i) Define E-waste.


(ii) Give any one environmental challenge posed by E-waste, including its impact on air,
water, and soil quality.
(iii) Imagine you are a part of a local environment organization. Provide any two strategies
that could be implemented to minimize the negative environmental effects of E-waste.

30. Write a Python code to create a DataFrame with appropriate column headings from the 3
list given below:

[[1001,'IND-AUS',’2022-10-17’+, *1002,'IND-PAK',’2022-10-23’+, *1003,'IND-SA' , ‘2022-10-


30],[1004,'IND-NZ',’2022-11-18’++

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

(i)Suggest the Primary key for the given table


(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. 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.

(II) To display the details of courses in descending order of fees.

(III) To display the total fees F_ID wise.


OR

Consider the following tables:


Table 1: Bank Account which stores Account code (ACode), Name of Account Holder

(Name), Type of account (Type)

Table 2: Branch which stores Account code (ACode), City of the account holder(City)

Note: Attribute names are written within brackets.

Write appropriate SQL queries for the following:


I. Display account type wise total account holders.
II. List all the account codes in the descending order of city names.
III. Display the names of the account holders along with their corresponding cities.

Q No Section-D (2 x 4 =8 Marks) Marks

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.

import ______________ as plt #statement 1


Category=['Gold','Silver','Bronze']
Medal=[20,15,18]
plt.bar(Category,________) # statement 2
plt.ylabel('Medal')
plt.________('Medal Type') # statement 3
plt.title('Indian Medal tally in Olympics')
plt.show()
plt._______________(“medals.pdf”) # statement 4

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:

Compid-Displays the Company ID


Company Name-Displays the Company name
Vacncies-Indicates the vacancy in each company
Appeared –Indicates the no of candidates who appeared for interview.
Department – Shows the department name
Doj-Indicates the date of joining
City – Displays the city name.

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

Write the output of the following SQL Queries:


I. Select LENGTH(Name) from Teacher where Salary > 25000;
II. SELECT Department, count(*) FROM Teacher GROUP BY Department;
III. SELECT Max(Date_of_Join),Min(Date_of_Join) FROM Teacher;
IV. Select Name from Teacher where age between 35 and 45;

Q No. Section-E (3 x 5 = 15 Marks) Marks

35. Prime Computer services Ltd. is an international educational organization. It is planning to 5


set up its India campus at Mumbai with its head office in Delhi. The Mumbai office campus
has four main buildings-ADMIN, ACCOUNTS, EXAMINATION and RESULT.
You as a network expert have to suggest the best network related solutions for their
problems raised in (i) to (v), keeping in mind the distances between the buildings and
other given parameters.
(i)Suggest the most appropriate location of the server inside the MUMBAI campus (out of
the four buildings) to get the best connectivity for maximum number of computers. Justify
your answer.
(ii) Suggest and draw cable layout to efficiently connect various buildings within the
MUMBAI campus for a wired connectivity.

(iii)Which networking device will you suggest to be procured by the company to


interconnect all the computers of various buildings of MUMBAI campus?

(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 :

Help her by answering the following questions :


I. Print the first two rows of the DataFrame
II. Display subject of all the students.
III. Remove the column Seat Availability.
IV. Display the data of the 'Total column’ from indexes 2 to 4 (both included)
V. Rename the column name 'Subject' to 'Subject opted'

37. Write suitable SQL query for the following: 5

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:

I. Round the value of pi (3.14159) to two decimal places.


II. Calculate the remainder when 145 is divided by 15.
III. Display the number of characters in the word 'Pre-Board Exam 2024'.
IV. Display the first 5 characters from the word ‘AISSCE 2025’.
V. Display details from 'email' column (attribute), in the 'Employee' table, after
removing any leading and trailing spaces.

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy