0% found this document useful (0 votes)
7 views9 pages

PHASE 3 XII IP(24-12-2024) SET A

This document is a question paper for Class 12 Informatics Practices with a total of 37 compulsory questions divided into five sections. It includes multiple-choice questions, assertion-reasoning questions, case studies, and long answer questions, covering various topics in computer science and data management. The paper is structured to assess students' understanding and application of concepts related to programming, databases, and data privacy.

Uploaded by

orthadoxist
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
7 views9 pages

PHASE 3 XII IP(24-12-2024) SET A

This document is a question paper for Class 12 Informatics Practices with a total of 37 compulsory questions divided into five sections. It includes multiple-choice questions, assertion-reasoning questions, case studies, and long answer questions, covering various topics in computer science and data management. The paper is structured to assess students' understanding and application of concepts related to programming, databases, and data privacy.

Uploaded by

orthadoxist
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 9

A

QPC-065

Shree Swaminarayan Gurukul International School

PHASE-III_XII_INFORMATICS PRACTICES MID

Class 12 – Informatics Practices


Time Allowed: 3 hours Maximum Marks: 70

General Instructions:

(1) There are 37 questions in all. All questions are compulsory.

(2) This question paper has five sections: Section A, Section B, Section C, Section D and Section
E.

(3) All the sections are compulsory.

(4) Section A contains sixteen questions, twelve MCQ and four Assertion Reasoning based of 1

mark each, Section Bcontains five questions of two marks each, Section C contains seven

questions of three marks each, Section D contains two case study based questions of four marks

each and Section E contains three long answer questions of five marks each.

(5) There is no overall choice. However, an internal choice has been provided in one question

in Section B, onequestion in Section C, one question in each CBQ in Section D and all three

questions in Section E. You have to attempt only one of the choices in such questions.

SECTION-A (21x1=21)
1. In......... topology, the devices are arranged in the form of multiple branches in hierarchical manner.
(a) Star
(b) Tree
(c) Mesh
(d) Bus
2.Ridhima purchased a license for a copy of a software and made additional copies without the
permission of the copyright owner. This act of hers is known as..........
(a) Trademark Infringement
(b) Identity Theft
(c) Copyright Infringement
3.What can an individual do to enhance the privacy of data stored digitally?
(a) Share sensitive information on social media platforms.
(b) Use your date of birth as your password.
(c) Regularly update software installed on your device.
(d) Download and install software from unknown sources
A
QPC-065

4. What will be the output of the following query?


SELECT POWER(2, MOD (17,3));
(a) 8
(b) 1
(c) 0
(d) 4
5 Which of the following is not an aggregate function in MySQL?
(a) AVG()
(b) MAX ()
(c) LCASE()
(d) MIN()
6. ……….is the gaining of unauthorized access to data in a computer system.
(a) Phishing
(b) Plagiarism
(c) Hacking
(d) Copyright violation
7. Which of the following is not true with respect to CSV files?
(a) Values are separated by commas.
(b) to_csv() can be used to save a dataframe to a CSV file.
(c) CSV file is created using a word processor.
(d) CSV file is a type of text file
8. Which MySQL command helps to add a primary key constraint to any table that has already been
created?
(a) UPDATE
(b) INSERT INTO
(c) ALTER TABLE
(d) ORDER BY
9. What will be the output of the following query?
SELECT SUBSTR("G20 2023 INDIA", 5, 4):
(a) G20 2
(b) 2023
(c) INDI
(d) 023
10. What will be the output of the following Python code?
import pandas as pd
dd = {'One':1. 'Two: 2. 'Three': 3, 'Seven': 7)}
rr = pd. Series (dd)
rr ['Four'] = 4
print (rr)
(a) One 1 (b) One 1 (c) Four 4 (d) One 1
Two 2 Two 2 One 1 Two 2
Three 3 Three 3 Two 2 Three 3
Seven 7 Four 4 Three 3 Seven 7
dtype:int64 Seven 7 Seven 7 Four 4
dtype:int64 dtype:int64 dtype:int64
11. Which of the following clause cannot work with SELECT statement in MySQL?
A
QPC-065

(a) FROM
(b) INSERT INTO
(c) WHERE
(d) GROUP BY
12. Which of the following command will not show first five rows from the Pandas series named S1?
(a) S1 [0:5]
(b) S1. head ( )
(c) S1. head (5)
(d) S1. head [0:5]
13.Rama was unable to understand how the recruiters were able to know about her digital activity
when she has not shared anything with them. The recruiters might have checked.......... of Rama.
(a) Carbon Footprint
(b) Water Footprint
(c) Online print
(d) Digital Footprint
14. Which MySQL string function is used to extract a substring from a given string based on a specified
starting position and length?
(a) SUBSTRING_INDEX( )
(b) LENGTH( )
(c) MID ( )
(d) TRIM ( )
15.The software that is free for anyone, and its source code is available for access, modification,
correction, and improvement is called..........
(a) Proprietary software
(b) Commercial software
(c) Free and Open source software
(d) Copyrighted software
16. ................. help in data protection through copyrights, patents and trademarks.
(a) Data Privacy Right
(b) Right to Innovation
(c) Intellectual Property Rights (IPR)
(d) Right to Data Protection
17. Fill in the blank:
Boolean indexing in Pandas DataFrame can be used for_____________ .
(a) Creating a new DataFrame
(b) Sorting data based on index labels (d) Filtering data based on condition
(c) Joining data using labels
(d) Histogram and Bar plot
18. Which Matplotlib plot is best suited to represent changes in data over time?
(a) Bar plot
(b) Histogram
(c) Line plot
(d) Histogram and Bar plot
19. Which type of network covers a small geographical area like a single office, building, or school
campus?
(a) PAN
(b) MAN
A
QPC-065

(c) LAN
(d) WAN
Directions (Q. Nos. 20 and 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) We can add a new column in an existing DataFrame.


Reason (R) DataFrames are size mutable.
21. Assertion (A) In SQL, INSERT INTO is a Data Definition Language (DDL) Command.
Reason (R) DDL commands are used to create, modify, or remove database structures, such as tables
SECTION B (7x2=14)
22. (A) What is a Series in Python Pandas? Also, give a suitable example to support your answer.
OR (B) What does the term 'library' signify in Python? Mention one use for each of the
following libraries:
• Pandas • Matplotlib
23. What are intellectual property rights (IPR), and why are they important in the digital world?
24. Consider the string: "Database Management System". Write suitable SQL queries for the
following:
I. To extract and display "Manage" from the string.
II. Display the position of the first occurrence of "base" in the given string.
25. (A) What is Internet and how does it differ from World Wide Web (WWW)?
Or (B) Explain the concept of browser cookies and mention one advantage of using them.
26. Define the term Primary Key in a database. Explain how it is different from a Candidate Key.
27. Mention two health concerns associated with excessive use of Digital Devices.
28. (A) Sneha is writing a Python program to create a DataFrame using a list of dictionaries.
However, her code contains some mistakes. Identify the errors, rewrite the correct code,
and underline the corrections made.

import Pandas as pd
D1 = {'Name': 'Rakshit'. 'Age': 25}
02 = {‘Name": "Paul. 'Age: 30}
D3 ={'Name': 'Ayesha". 'Age: 28}
data = [D1, D2, D3)
df = pd.Dataframe(data)
print(df)

Or
A
QPC-065

(B) Complete the given Python code to get the required output (ignore the dtype attribute) as
Output
Tamil Nadu Chennai
Uttar Pradesh Lucknow
Manipur Imphal
Code
Import _______ as pd
data = ['Chennai'.'____'. 'Imphal']
indx = ['Tamil Nadu'. 'Uttar Pradesh', 'Manipur']
s = pd.Series(_____. indx)
print(_______ )
SECTION C (4x3=12)
29. Ayesha's family is replacing their old computer with a new one. They decide to throw the
old computer in a nearby empty field/plot.
I. Explain any one potential environmental hazard associated with improper e-waste disposal
II. Suggest one responsible way to Ayesha's family for proper disposal of their old computer.
III. Describe the importance of recycling in e-waste management.
30. (A) Write a Python program to create the following DataFrame using a list of dictionaries.
Product Price
0 Lattop 60000
1 Desktop 45000
2 Monitor 15000
3 Tablet 30000
Or (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.
Russia Moscow
Hungary Budapest
Switzerland Bern

31. I. Write an SQL statement to Create a table named STUDENTS, with the following
specifications:
Column Name Data Type Key
StudentID Numeric Primery Key
FirsstName Varchar(20)
LastName Varchar(10)
DateOfBirth Date
Percentage Float(10,2)
II. Write SQL query to insert the following data in the Students Table
1,Supriya,Singh,2010-08-18,75.5
32. (A) Consider the following tables:
Table 1
EMPLOYEE which stores Employee ID (EMP_ID), Employee Name (EMP_NAME), Employee City
A
QPC-065

(EMP_CITY)
Table 2
PAYROLL which stores Employee ID (EMP_ID), Department (DEPARTMENT), Designation
(DESIGNATION), and Salary (SALARY) for various employees.
Note: Attribute names are written within brackets.
Table: EMPLOYEE
EMP_ID EMP_NAME EMP_CITY
1 ABHINAV AGRA
2 KIRAN DELHI
3 RESHMIKA CHENNIA
4 SIMRAN MUMBAI
5 VIKRAM NOIDA

Table: PAYROLL
EMP_ID DEPARTMENT DESIGNATION SALARY
1 SALES MANAGER 75000
2 SALES ASSOCIATE 50000
3 ENGINEERING MANAGER 95000
4 ENGINEERING ENGINEER 70000
5 MARKETING MANAGER 65000
Write appropriate SQL queries for the following:
I. Display department-wise average Salary.
I. List all designations in the decreasing order of Salary.
II. Display employee name along with their corresponding departments.
SECTION – D (2x4=8)
33. During a practical exam, a student Ankita has to fill in the blanks in a Python program that
generates a bar chart. This bar chart represents the number of books read by four students in
one month.
Student Name Books Read
Karan 12
Lina 9
Raj 5
Simran 3
A
QPC-065

Help Ankita to complete the code


Import________ as plt #Statement-1
Students = [‘Karan’, ‘Lina’, ‘Raj’, ‘Simran’]
Books_read=[12, 9, 5, 3]
Plt.bar( students, _______ , label=’Books Read’) #Statement-2
Plt.xlabel (‘Student Name’)
Plt._____(‘Books Read’) #Statement-3
Plt.legend( )
Plt.title(‘_______’) #Statement-4
Plt.show( )
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. Fill in the blank in Statement-3 with the name of the function to set the label on the
y-axis.
IV. Refer the graph shown above and fill the blank in statement-4 with suitable Chart
Title.
34.Rahul, who works as a database designer, has developed a database for a bookshop. This
database includes a table BOOK whose column(attribute) names are mentioned below:
BCODE shows the unique code for each book.
TITLE Indicates the book’s title
AUTHOR Specifies the author’s name.
PIRCE Lists the cost of the book.
Table: BOOK
BCODE TITLE AUTHOR PRICE
B001 MIDNIGHTS CHILDREN SALMAN RUSHDIE 500
B002 THE GOD OF SMALL THINGS ARUNDHATI ROY 450
B003 A SUITABLE BOY VIKRAM SETH 600
B004 THE WHITE TIGER ARAVIND ADIGA 399
B005 TRAIN TO PAKISTAN KHUSHWANT SINGH 350

I. Write SQL query to display book titles in lowercase


II. Write SQL query to display the highest price among the books
III. Write SQL query to display the number of characters in each book title.
IV. Write SQL query to display the Book Code and Price stored by Price in descending
order.
SECTION – E (3x5=15)
35. ABC Pvt.Ltd., a multinational technology company, is looking to establish its Indian Head
Office in Hyderabad, and a regional office branch in Lucknow. The Hyderabad head office will
be organized into four departments: HR,FINANCE,TECHNICAL, and SUPPORT. As a network
engineer, you have to propose solutions for various queries listed from I to V.
A
QPC-065

HYDERABAD OFFICE SET-UP


HR FINANCE LUCKNOW
REGIONAL
OFFICE
TECHNICAL SUPPORT

The shortest distances between the departments/office are as follows:


HR TO FINANCE 65 M
HR TO TECHNICAL 80 M
HR TO SUPPORT 70 M
FINANCE TO TECHNICAL 60 M
FINANCE TO SUPPORT 75 M
TECHNICAL TO SUPPORT 50 M
HYDERABAD OFFICE TO LUCKNOW 1900 KM

The number of computers in each department/office is as follows:

HR 175
FINANCE 35
TECHNICAL 50
SUPPORT 15
LUCKNOW OFFICE 40
I. Suggest the most suitable department in the Hyderabad 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
Hyderabad Office.
III. Which networking device would you suggest the company to purchase to interconnect all
the computer within a department in Hyderabad Office?
IV. The company is considering establishing a network connection between its Hyderabad Head
Office and Lucknow regional office. Which type of network – LAN, MAN, PAN, 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.


A
QPC-065

MovieID Title Year Rating


0 1 LAGAAN 2001 8.4
1 2 TAARE ZAMEEN PAR 2007 8.5
2 3 3 IDIOTS 2009 8.4
3 4 DANGAL 2016 8.4
4 5 KGF: CHAPTER 1 2018 8.9

Write Python statement 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 indexes 2 to 4 (both included).
V. Rename the column name ‘Title’ to ‘Name’.

Write down the mathematical operations and its types with example.
37. 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 ‘TECHNOLOGY’.
IV. Display details from ‘email’ column (attribute), in the ‘students’ table, after removing any
leading and trailing spaces.

You might also like