0% found this document useful (0 votes)
77 views

Informatics Practices

Uploaded by

Heshi
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
77 views

Informatics Practices

Uploaded by

Heshi
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 8

KENDRIYA VIDYALAYA SANGATHAN, CHANDIGARH REGION

PREBOARD EXAMINATION - 1 (2024-25)


CLASS: XII SUBJECT: IP (065)
TIME: 3 HRS MAX. MARKS: 70
General Information:
(i) This question paper contains five section A to E
(ii) All questions are compulsory
(iii)Section A has 21 questions carrying 1 Mark each
(iv) Section B has 07 Very Short Answer type questions carrying 02 marks each.
(v) Section C has 04 Short Answer type questions carrying 03 marks each.
(vi) Section D has 02 carrying 04 marks each.
(vii)Section E has 03 carrying 05 marks each.
SECTION A
Q.N Questions MM
1 To display first three elements of a Series object S, you may write ____. 1
a) S[:3] b) S[3] c) S[3rd] d) all of these
2 Which of the following is a DDL command? 1
a) SELECT b) ALTER c) INSERT d) UPDATE
3 A __________ is a networking device that connects computers in a network by using packet 1
switching to receive , and forward data to a destination.

a) Modem b) Repeater c) Switch d) Router


4 The DROP TABLE command deletes the entire table (data as well as its structure). [True/False] 1
5 An organisation purchases new computers every year and dumps the old ones into the local 1
dumping yard. Write the name of the most appropriate category of waste that the organisation is
creating every year, out of the following options:
a) Solid waste
b) Commercial waste
c) E-Waste
d) Business Waste
6 Write a small python code to drop a row dataframe labelled as 0. 1
7 The table below shows the marks of two students for the four-unit tests for this academic 1
session. Fill in the blanks to draw a line graph with Test Names on the X-axis and Marks on the
Y-axis.

import matplotlib.pyplot as plot


plt.plot(Tests, Rohit, Suman)
_____ #Label Y axis as Marks
_____ #Add legends "Rohit", "Suman" for the lines
plt.show()
8 What is the meaning of HAVING clause in SELECT query? 1
a) To filter out the summary groups
b) To filter out the column groups
c) To filter out the row and column values

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

11 Which of the following is not an aggregate functions in SQL? 1


a) AVERAGE () b) MAX() c) COUNT() d) SUM()
12 Internet is the example of ______________ topology. 1
a) STAR b) BUS c) MESH d) RING
13 Write a small Python code to create a DataFrame with heading (a and b) from the list given 1
below:-
[ 23, “sumit”,70] [12,”shruti”,98] [4,”pawan”,82]
14 Tom got to know the password of Tim's Social Media Handle and used it to posts as if Tim 1
posted them. What will this act be called as ?
a) Online fraud
b) Identity theft
c) Plagiarism
d) Phishing
15 What is the purpose of ndim attribute? 1
a) It returns the number of elements in the given data structure
b) It returns the series object in the form of an ndarray
c) It returns a list of the indexes / labels
d) It returns the number of dimensions of the given data structure
16 What will be returned by the given querry? 1
SELECT INSTR(“INDIA”, ““DI”);
a) 2 b) 3 c) -2 d) -3
17 and 18 are ASSERTION AND REASONING based questions.
Mark the correct choice as

a) Both A and R are true and R is the correct explanation of A.


b) Both A and R are true but R is not the correct explanation of A.
c) A is true but R is false ( or partly true ).
d) A is false (or partly true) but R is true.
e) Both A and R are false or not fully true.

17 Assertion. A dataframe is value mutable and size-mutable. 1


Reason. All changes occur in-place in a dataframe.

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)

21 Write the output of the following SQL command: 1


SELECT ROUND(49.88)
a) 49.88 b) 49.8 c) 49.0 d) 50
SECTION B
22 a)Find the Error: 2
data = np.array(['a','b','c','d','e','f'])
s = pd.Series(data,index=[100,101,102,103,104,105])
print(s[102,103,104])

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:

(i) Sarah is a victim of which type of cybercrime?


(ii) Write any two precautions one should take to protect from being victim of cybercrime.

24 Predict the output of the following queries based on the table BIKES given above: 2

(i) SELECT UCASE(TRIM(Brandname)) FROM BIKES WHERE Bid = 1003;


(ii) SELECT COUNT(Biketype) FROM BIKES;
25 a) Expand URL, Identify the protocol and domain in the following URL: 2
https://kvs.nic.in/news.php?len=en
b) What is server ? What is its role?

26 Write any two differences between DELETE and DROP TABLE command of MySQL.

27 Answer the following questions based on above extract: 2


(i) Define e-waste.
(ii) Give any one environmental challenge posed by e-waste, including its impact on air, water,
and soil quality.
Page 3 of 8
28 a) Consider the given DataFrame df: 2
Q1 Q2 Q3 Q4
0 5000 8000 12000 18000
1 10 20 30 40

Write suitable Python statements for the following:

i) Add a column called Q5 with the following data [2000,44].

ii) Add a new record with appropriate values.

OR (Choice is within part a and b)

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

30 a) Sejal, a Python programmer has been given the following tasks: 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.

OR (Choice is within part a and b)

b) Consider the following DataFrame Cricket:

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

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

34 i) write a query to concatenate the two strings: "Hello" and "World" 4


ii) write a query to remove leading spaces of the string 'RDBMS MySQL'.
OR (Choice is within ii part only)
ii)From the table climate, display all the cities details whose humidity is in the range 65 to 80.
(Select the correct option)
a) SELECT * FROM climate WHERE humidity IN (65 to 80);
b) SELECT * FROM climate WHERE humidity NOT IN (65 AND 80);
c) SELECT * FROM climate WHERE humidity BETWEEN 65 AND 80;
SECTION E
35 ABC Pvt. Ltd., a multinational technology company, is looking to establish its Indian Head 5
Office in Bengaluru, and a regional office branch in Lucknow. The Bengaluru 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.

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

You might also like