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

Informatics Practice (065) - Practice Paper-1 - QP

The document is a question paper for Class 12 Informatics Practices, consisting of 37 questions divided into five sections with varying marks. It includes multiple-choice questions, programming tasks, and SQL queries, with all programming questions required to be answered in Python. The paper emphasizes the importance of ethical technology use and includes case study questions related to cybercrime.

Uploaded by

Deivanai K CS
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)
29 views9 pages

Informatics Practice (065) - Practice Paper-1 - QP

The document is a question paper for Class 12 Informatics Practices, consisting of 37 questions divided into five sections with varying marks. It includes multiple-choice questions, programming tasks, and SQL queries, with all programming questions required to be answered in Python. The paper emphasizes the importance of ethical technology use and includes case study questions related to cybercrime.

Uploaded by

Deivanai K CS
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

VELAMMAL NEW GEN SCHOOL , SURAPET

CHENNAI SAHODAYA SCHOOLS COMPLEX

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.

COMMON EXAMINATION
Class-12
Informatics Practices (065)
Roll No.: Maximum Marks: 70
Date: Time allowed: 3 hours
Q.No. Section- A(21 x 1= 21 Marks) Marks
1 State whether the following statement is True or False:- 1
A Dataframe object is value mutable

2 In which of the following cases a DML statement is not executed? 1


A.When existing rows are modified.
B.When a table is deleted.
C.When some rows are deleted.
D. All of the above

3 Each IP Packet must contain 1


A. Only Source Address
B. Only Destination Address
C. Source and Destination Address
D. Source or Destination Address
4 The SQL statement: 1
Select Round (65.726, -1) From Dual;
A. is illegal B. 66
C. 726 D. 70
5 Which of the following is NOT an ethical principle of technology use? 1
A. Monopoly B. Transparency C. Accountability
D. Privacy
6 Write the statement to get NewDelhi as output using positional index. 1
import pandas as pd
S1=pd.Series([‘NewDelhi’.’WasingtonDc’,
‘London’,’Paris’],index=[‘India’,’USA’,’UK’,’France’])
A. print(S1[0])
B. print(S1[‘India’])
C. Both of the above
D. print(S1.India)

7 Which of the following is an incorrect example of savefig() function? 1


A. plt.savefig(“bar1.pdf”) B. plt.Savefig(“bar1.eps”)
C. plt.savefig(“bar1.png”) D. plt.savefig(“bar1.ppt”)

1 of 9
CHENNAI SAHODAYA SCHOOLS COMPLEX

8 If column “Salary” contains the data set (10000,15000,25000,10000,15000). 1


What will be the output after the execution of the given query on Table1?
>> SELECT SUM(DISTINCT SALARY ) FROM TABLE1;
A. 75000 B. 25000 C. 10000 D. 50000

9 State True/False:- 1
A CSV File is open in the same way as text file
10 Whenever we surf the internet using smart phones we leave a trail of data 1
reflecting the activities performed by us online, which is our _______
A. Digital Footprint B. Digital Activities
C. Online handprint D. Internet Activities.
11. Given a relation country (name, continent, population) which of the following 1
is a valid SQL statement?
A. SELECT continent, population FROM country GROUP BY continent
B. SELECT continent, SUM(population) FROM country GROUP BY
continent
C. SELECT name, population FROM country GROUP BY continent
D. SELECT name, SUM(population) FROM country GROUP BY
continent
12. In order to allow data transfer from server to the intended computers, which 1
network device is required in the lab to connect the computers?
A. Switch B. Hub
C. Router D. Gateway
13. In Python Pandas, while performing mathematical operations on series, index 1
matching is implemented and all missing values are filled in with _______by
default.
A. Null B. Blank
C. NaN D. Zero
14. By restricting the server and encrypting the data, a software company's server 1
is unethically accessed in order to obtain sensitive information. The attacker
blackmails the company to pay money for getting access to the data and
threatens to publish sensitive information unless price is paid. This kind of
attack is known as:
A. Phishing B. Identity Theft
C. Plagiarism D. Ransomware

15. Which of the following commands shows the information with 1


city=”Mumbai” from dataframe Shop?
A. print(Shop[City==’Mumbai’])
B. print(Shop[Shop.City==’Mumbai’])
C. print(Shop[Shop.’City’==’Mumbai’])
D. print(Shop[Shop[City]==’Mumbai’])

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

SQL Function Description 1


P. MID( ) 1. Statement is often used with aggregate
functions like count(), max() etc.
Q. LEFT( ) 2. Extracts a substring from a string
R. Group by 3. Returns the position of the first
occurrence of a string in another string
S. INSTR( ) 4. Extract a specified number of
characters from the left side of a given
string.
A. P-2,Q-4,R-1,S-3 B. P-2, Q-4,R-3,S-1
C. P-4, Q-3,R-2,S-1 D. P-4, Q-2,R-1,S-3

2 of 9
CHENNAI SAHODAYA SCHOOLS COMPLEX

17. What will be the output of the following code? 1


import pandas as pd
pd.Series([1,2], index=[‘a’,’b’,’c’])
A. Syntax Error B. Index Error
C. Value Error D. Key Error
18. Which function is used to save a Matplotlib plot as an image file? 1
A. saveimage()
B. saveimg()
C. savefig()
D. exportimgfig()
19. In a communication network, each device that is a part of a network and that 1
can receive, create, store or send data to different network routes is called a
_________.

A. Node B. Network Computer C. Modem D. Server


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):- To use the Pandas library in a Python program, one must 1
import it.
Reasoning (R): - The only alias name that can be used with the Pandas library
is pd.
21. Assertion (A) The bus topology is prone to data collisions. 1
Reason(R) In a bus topology, all devices share the same communication
medium, leading to data collisions when two devices transmit data
simultaneously.
SECTION -B (7 X 2=14 Marks )
22. (A) Write any two attributes of series. Also, give a suitable example to
support your answer.
OR 2
(B) How many ways you can access a rows from a DataFrame in
Python?
23. List any four benefits of E-Waste Management. 2
24. Consider the String: “Structured Query Language” . Write suitable SQL
queries for the following:
2
1. To Extract and display “Query” from the string.
2. Display the position of “Language” in the given string.
25. (A) What is the use of add-ons in web browser?
OR 2
Explain the importance of cookies.
(B)
26. What is the difference between the order by and group by clause when used
2
along with the select statement? Explain with an example.

3 of 9
CHENNAI SAHODAYA SCHOOLS COMPLEX

27. Shivani is using her internet connection to book a flight ticket. This classic
2
example of leaving a trail of web activities carried by her. What do we call this
type of activity? What is the risk involved by such kind of activity? How to
reduce risk associated with it?
28 (A) Punitha is writing a Python program to create a DataFrame using a list
2
of dictionaries. However, her code contains some mistakes. Identify the
errors, rewrite the correct code, and underline the corrections made.
Import Pandas
DF1 = {'SName': 'Ashwin ', 'Age': 15}
DF2 = {'SName': 'Vinod ', 'Age': 96}
DF3 = ('Name': 'Ayesha", 'Age': 28)
Stud_Info = [DF1,DF2,DF3]
df = pd.Dataframe(Stud Info)
print(df)
OR
(B) Complete the given Python code to get the required output(ignore the
dtype attribute)as
Output:
Name Marks
1 Aravind 98
2 Binu 100
3 Chetna 76

Python Code:
import ____________
Data = [[‘Aravind’, 98],[‘Binu’, 100], [__________]]
D=pd._____________(Data,________=[“Name”,”Marks”],
index=[____________])
print(D)
SECTION –C (4 x 3= 12 Marks)
29 The school offers wireless facility (wifi) to the Computer Science students of 3
Class XI. For communication, the network security staff of the school has a
registered URL schoolwifi.edu. On 17 September 2024, the following email
was mass distributed to all the Computer Science students of Class XI. The
email claimed that the password of the students was about to expire.
Instructions were given to go to URL to renew their password within 24 hours.
i. Do you find any discrepancy in this email?
ii. What will happen if the student clicks on the given URL?
iii. Is the email an example of cybercrime? If yes, then specify which type of
cybercrime is it. Justify your answer.

4 of 9
CHENNAI SAHODAYA SCHOOLS COMPLEX

30 (A) Consider the given DataFrame “Student”: 3

AdNo Name
0 1848 Nidhi
1 1846 Gunjan
2 1850 Dimpi
3 1852 Sudhir

Write Suitable Python statements for the following:


(i). To create the above dataframe considering that the data is stored in
a list studlist.
(ii) Add a new student “Pratima” with AdNo as 1855.
(iii) Rename the column ‘AdNo’ to ‘Regno’.
OR
(B) Consider the series given below:-
Monday 360
Tuesday 480
Wednesday 400

Write suitable python statement for the following if panda’s library is


imported as pd.
(i) To create the series from a dictionary named ‘collection’
(ii) To print those values above 400
(iii) To create the series from the dictionary ‘collection’ only with data
Monday and Wednesday.

31 I. Write an SQL statement to create a table named BOOKSTORE, with the


following specifications:- 2+1=3

Column Name Data Type Key


Book_Id Numeric Primary Key
Book_Name Varchar(30)
Author_Name Varchar(30)
Price Float
Year_Of_Publish Date

II. Write SQL Query to insert the following data in the Bookstore Table
11234, The blue umbrella, Ruskin Bond, 150, 1974.

32 (A) Consider the following tables:- 3


Table 1:
PERSONS which stores Person ID (PER_ID), First Name
(FIRST_NAME), Last Name (LAST_NAME) , Person City
(PERSON_CITY)

Table 2:
REWARD which stores Person ID (PER_ID), Date reward (Date_
reward), Amount (AMOUNT) for various persons.

Note: Attribute names are written within brackets.

Table: Persons
PER_ID FIRST_NAME LAST_NAME PERSON_CITY
1 KAILASH VERMA MUMBAI
2 VINEET SHARMA KOLKATTA
3 VENKAT VERMA CHENNAI
4 KANISHK RAMAN AGRA
5 SUNDAR RAM USA

5 of 9
CHENNAI SAHODAYA SCHOOLS COMPLEX

Table: Reward
PER_ID DATE_REWARD AMOUNT
1 2023-05-11 2000
2 2020-02-11 5000
3 2024-04-02 3000
5 2024-11-11 4000
Write appropriate SQL queries for the following:
I. Change the person city of Mumbai to London in the table Persons.
II. List all Last name, date of the reward in the decreasing order of
date.
III. Display First name of the Person name along with their
corresponding city.
OR
Consider the CUSTOMERS TABLE having following
(B)
records:-
Table : Customers
ID NAME AGE ADDRESS AMOUNT

1 Reeti 32 Noida 2000.00

2 Khyati 24 Delhi 1500.00

3 Kashish 23 Lodhiana 2000.00

4 Chintan 25 Chandigarh 6500.00

5 Hardik 27 Kota 8500.00


6 Komal 22 Patiala 4500.00

7 Mahek 24 Meerut 10000.00

Write suitable SQL statements for the following:-


I. To fetch all the fields of the CUSTOMERS table for ID 1 , 2 and 7
II. To increase the amount of all customers by 1000.
III. To display the details of all customers whose name ends with ‘a’.
SECTION -D(2 x 4 =8) Marks Marks
33 Write Python code to draw the following bar graph representing the total sales 4
in each quarter. Add the Title, Label for X-axis and Y-axis.
Use the following data for plotting the graph
sales =[400,350,600,780]
qtr=[“QTR1”,”QTR2”,”QTR3”,”QTR4”]

6 of 9
CHENNAI SAHODAYA SCHOOLS COMPLEX

34 (A) Shanu, who works as a game developer, has developed a database for his 4
company. This database includes a table GAMES whose column
(attribute) names are mentioned below:
GCODE : Shows the unique code for each game.
GAMES_NAME: Indicated the game's name.
TYPE: Specifies the type of the game.
PRIZE_MONEY: Lists the cost of the game.

Table : GAMES:

GCODE GAMES_NAME TYPE PRIZE_MONEY

101 IT TAKES TWO FUN 1000

102 MR.COOL ACTION 2000

103 HER STORY INTERACTIVE 3000

104 RED RHINO SIMULATION 2300

105 SANDBOX INTERACTIVE 5000

I. Write SQL query to display games names in lowercase.


II. Write SQL query to display the number of characters in
GAME_NAME for all games.
III. To display sum of prize money for each type of game.
IV. Write SQL query to display the game code and price sorted by
price in ascending order.
OR
(B) Consider a table SALESMAN with the following data:-

S.No. SNAME SALARY BONUS DATE_OF_JOIN


A01 Beena Mehta 30000 45.23 29/10/2019
A02 K.L. Sahay 50000 25.34 13/03/2018
B03 Nisha 30000 35.00 18/03/2017
Thakkar
B04 Leela Yadav 80000 NULL 31/12/2018
C05 Gautam Gola 20000 NULL 23/01/1989
C06 Trapti Garg 70000 12.37 15/06/1987
D07 Neena 50000 27.89 18/03/1999
Sharma

Write SQL queries using SQL functions to perform the following


operations:-
I. Display salesman name and bonus after rounding off to zero decimal
places.
II. Display the position of occurrence of the string ‘ta’ in salesman names.
III.Display four characters from salesman name starting from second
character.
IV. Display the name of the weekday from the date of join of salesman.

7 of 9
CHENNAI SAHODAYA SCHOOLS COMPLEX

Section-E (3 x 5 = 15 Marks)
35 XEED Private Ltd. Delhi is a company that deals with educational toys. They 5
have different divisions HR (AI), Sales (A2), Production (A3) and Marketing
(A4). The Layout of the Delhi branch is

XEED PRIVATE LTD.


Delhi Branch

HR(A1) SALES(A2)

PRODUCTION(A3) Marketing(A4)

The company also has a branch in Bangalore. The management wants to


connect all the divisions as well as all the computers of each division
(A1,A2,A3,A4).
Distance between the wings are as follows:-
A3 to A1 25 m
A1 to A2 40 m
A2 to A4 25 m
A4 To A3 20 m
A3 to A2 30 m
A1 TO A4 170 m
Delhi Head Office to Bangalore office 2154 km
Number of computers in each of the wings:
A1 50
A2 40
A3 110
A4 60
Based on the above specifications, answer the following questions: -
I. Suggest the topology and draw the most suitable cable layout for connecting
all the divisions of Delhi branch

II. Suggest the kind of network required ( out of LAN, MAN, WAN) for
connecting production (A3) with the Bangalore branch.

III. Which device can be used to connect the network of Delhi Branch to the
internet? This device should be able to receive data, analyse it and then
transmit it to the network.
IV. Suggest the placement of switch/hub, repeater with justification.

V. Many employees were finding it difficult to cope up with work pressure


and hence were showing stress related symptoms. In order to improve the
mental health of its employees. HR planned to conduct an online will help to
send the voice signals over internet to conduct the session successfully.
a. FTP c. SMTP
b. VOIP d. POP

8 of 9
CHENNAI SAHODAYA SCHOOLS COMPLEX

Consider the dataframe df1 shown below:- 5


36.
Country_Name Capital Population
0 India New Delhi 136 cr
1 Canada Ottawa 10cr
2 Australia Canberra 50 Cr
3 Srilanka Colombo 21.41 M

Write Python statements for the DataFrame df1 to:


I. Print the first two rows of the DataFrame df1.
II. Display names of all country name.
III. Remove the column population.
IV. Display data for column Country_Name from indexes 1 to 3 (both
included)
V. Rename the column name 'Capital' to 'CaptitalName'.
37 (A) Write suitable SQL query for the following:
I. To display the minimum score from the test_ results column
(attribute) in the Sports table.
II. To display the last five characters of the registration_ number column
(attribute) in the Automobile table. (Note: The registration numbers
are stored in the format DL-01-AV-5678)
III. To display the data from the username column (attribute) in the Users 5
table, after eliminating any leading and trailing spaces.
IV. To display the average value in the salary column (attribute) of the
Employee_details table.
v. To determine the count of rows in the Invoice table.
(OR)
(B) Write suitable SQL query for the following:
I. To display current date.
II. Calculate the remainder when 435 is divided by 7.
III. Display 3 raised to the power of 7.
IV. Display the first 6 characters from the word 'Information
Technology' in upper case.
V. To display the year from your date of admission which is
‘2024-05-15’

-----------------------End of paper-----------------------------

9 of 9

You might also like