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

2nd Pre Board

Uploaded by

max12342732k
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)
38 views

2nd Pre Board

Uploaded by

max12342732k
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

KENDRIYA VIDYALAYASANGATHAN BHOPAL REGION

SECOND PREBOARD EXAMINAITON - 2023-24


CLASS - XIl
INFORMATICS PRACTICES(065) (SET-2)

TIME:03 HOURS M.M.:70


General Instructions:

1. Thisquestion paper contains five sections, Section Ato E.


2. All questions are compulsory.
3. Section Ahas 18 questions carrying 01 mark each.
4. Section Bhas O7 Very Short Answer type questions carrying.02 marks each.
5. Section C has 05 Short Answer type questions carrying 03 marks each.
6. Section Dhas 02 questions carrying 04 marks each.
7. Section Ehas 03 questions carrying 05 marks each.
8. All programming questions are to be answered using Python Language only.

SN SECTION-A MARKS
1. URLS are of two types: 1

Static & Dynamic


ii. Absolute &Relative
None of the above
Absolute and Dynamic

2 Which type of values will not be considered by SQL while executing thefollowing 1
statement?

SELECT COUNT(Column name) FROM inventory;


Numeric value
text value
ifi. Null value
iv. Date value

3 Copyright, Patent and Trademark comes under: 1

i. Intellectual Property Right


Individual Property Right
iii. Industrial Property Right
iv. International Property Right

4 Predict the output of the following quey: 1

SELECT MOD(9,0);
i
ii. NULL
iii. NaN
iv. 9
sensiti
in

SN
Which one of the following is not an aggregate function?
i.
5.
i. Min( )
ii. Sum()
ii. Avg( )
iv. With()
6 Which of the following is not feasible method of e-waste management? 1

Reuse
i. Throwing in Sea
i. Recycle
iv. Reduce
7. Size of Data Frame is and values are 1
immutable, mutable
ii mutable, mutable
iii mutable, immutatble
iv. immutable , immutable
8. Aseries by default have numeric data labels starting from, 1
i. 1
ii.
iii. 1'
iv. 'a'
9. It allows avisitedwebsite to store its own information about a user on the user's 1
computer:
Spam
ii. cookies
ii, Malware
iv. Adware
10. Which of the following command willshow the last 3 rows from a Pandas Series 1
named NP?
i. NP.Tail( )
ii. NP.tail(3)
iii. NP.TAIL(3)
iv. Allof the above
11. With reference to SQL, identify the invalid data type. 1
1. Date
i. Integer
ii. Varchar
iv. Month
12. Which operator performs pattern matching? 1

i. BETWEEN operator
ii. LIKE operator
ii. EXISTS operator
iv. None of these
SECTION-A MARKS
By restricting the server and encrypting the data, a software
company's server is 1
unethically accessed in order to obtain sensitive information. The attacker blackmails
the company to pay money forgetting access to the data, and threatens to publish
sensitive information unless price is paid .This kindof attack is known as:
Phishing
ii.
ldentity Theft
i. Plagiarism
iv. Ransom ware

14. In SQL, What will be output of SELECT INSTR


(Wednesday', 'e'); 1
i. 1
ii 5
, ii. 2
iv. 4

15. The name and logo of the software will be protected under
Patent
Copyright
- ii. Trademark
iv. Digital Property right
16. Digital Footprint last for
i. One Month 1
i. One Year
Depends on browser's setting
iv, Forever
17. Assertion(A):- MODEM stands for modulator-demodulator.
1
Reasoning (R):- It is a computer hardware device that converts data from a digital
format to analog and vice.versa.
i. Both Aand Rare true and Ris
the correct explanation for A
ii. Both A and Rare true and R is not the correct
explanation for A
ii. Ais True but Ris False
iv. A is false but R is True

18.
Assertion(A):-To use the Pandas library in a Python program ,one must import it. 1
Reasoning(R):-The only alias name that can be used with the Pandas library is pd.
i Both Aand Rare true and Ris the correct
ii
explanation for A
Both Aand Rare true and Ris not the
correctexplanation for A
ii. A
is True but Ris False
iv, A
is false but Ris True
SN SECTION-B

19. Briefly exxplain the basic concepts of a web server and web hosting.
OR
Rati is doing a course in networking. She is unable to understand the concept of URL. Help
her by explaining it with the help of suitable example.
20. The python code written below has syntacticalerrors. Rewrite the correct code and 2
underline the corrections made.

Import pandas as pd
df-("Sports":("T20","WorldCup","ChampionTrophy"),"Venue":("Mumbai","Delhi","Pune"]}
df = PD. Dataframe (df)
print (dframe)
21 Consider the given SQL string
"12#AlltheBest!"
Write suitable SQL queries for the following:
i. Returns the position of the first occurrence of the substring "the" in the given string.
ii. To extract last five characters from the string.

22. Predict the output of the given Python code:


2
Import pandas as pd
list1={-10,-20,-30]
ser=pd. Series (listl*2) print (ser)
23.
Differentiate between the active digital footprint and passive digital
24. Carefully observe the following code: footprints.
2
import pandas as pd
Year1 ={'Q1':5000, 'Q2': 8000, 'Q3':12000,
Year2= {'A' :13000, 'B':14000, 'C: 'Q4':18000}
12000}
Tot Sales
={1:Year1,2:Year2
df = pd.Data Frame (Tot Sales)
}
print (df)
Answer the following:
i. List the index of the Data
ii. List the column names of
Frame df
DataFrame df.
25. What are aggregate functions in SQL?
Name any tWo.
2

SN
SECTION-C
26. MARKS
Based on the SQL table CAR SALES, write
suitable queries for the
following:
Number Segment Fuel Qty 1 Qty 2
1
2
Compact Hatch Back| Petrol 56000 70000
3
Compact Hatch Back| Diesel 34000 40000
MUV
4
Petrol 33000 35000
MUV
Diesel 14000 15000
L. Help
MARKS

3
SUV Petrol 27000 54000
6 SUV Diesel 18000 30000
7 SEDAN Petro! 8000 10000
SEDAN Diesel 1000 5000

i. Display fuel wise average sales in the first quarter.


i. Display segment wise highest sales in the second quarter .
ii. Display the records in the descending order of sales in the second quarter.
OR
Predict the output of the following que ies based on the table CAR_SALES
given above:
i. SELECT LEFT (SEGMENT,2) FROM CAR_SALES WHERE FUEL= "PETROL";
i. SELECT (QT2 -QT1) /2 "AVGSALE" FROM CAR_SALES WHERE SEGMENT ="SUV";
iii. SELECT SUM (QT1) "TOTSALE" FROM CAR_SALES WHERE FUEL = "DIESEL";
27 Consider the given Data Frame employee' : 3

Name Salary
Alankar 75000

1 Rajveer 65000

2 Krishna 78000

3 Radha 55000

Write the suitable Python statements for the following:


Add a new column "City" to the data frame having values Agra, Bhuj, Jhansi, Babina
ii Add a new row where Name is "Harsh", salary is 79000 and City is 'Lucknow
ii. Display last Two records

28 Write MySQL statements for the following: 3


To create a datatbase EXAM

ii) Tocreate a table named examination based on the following specification:

Column Name Data Type Constraints


Exam_ id Integer Primary Key
Exam_Name Varchar(20) Not Null
Exam_Date Date
Max_Marks Integer

322!66 5675
ict
)Pred

SN
MA
29. Richa , recently started using her social media account.With in a few days she befriends
many people she knows and some that she does not know. After some time, she starts
geting negative comments on her posts. She also finds that her pictures are being shared
online without her permission.
Based on the given information, answer the questions given below.
i. Identify the type of cybercrime she is a victim of.
ii. Under which act, she can lodge a complaint to the relevant authorities?
ii. Suggest her any two precautionary measures which she should take in
Future while being online to avoid any such situations.
OR
Mention any three health hazards associated with in appropriate and
gadgets. excessive use of
30. Write a program in Python Pandas to create a series
"student" from the following 3
dictionary: d= "student name": ["praveen", "dinesh", "kailash", "zuned"],
"class":["12-A" "7-B""11-C","12-A"],
"marks": [98.5, 85.6, 80.6, 60.2]}
S pd. s e 92d)
Pìnt Cs)

SN
SECTION-D MARKS
31. Write suitable SQL query for the
i. Display 7 characters following:
extracted from 7" left character onwards from thestring 4
INDIA SHINING'.
ii. Display the position of
WORLD'.
occurrence of string "COME' in the stringWELCOME
iii. Round off the value 23.78 to
one decimal place.
iv. Display the remainder of 100 divided by 9.
V. Remove all the expected leading and
trailing spaces from a column useridof the table
USERS'.
32. Mr. Ravi, a data analyst has
designed the
about CarSales with T1', T2', T3', T4' as DataFrame df that contains data
following questions: indexes shown below. Answer the 4

Col_1 Col 2 Col_ 3 Result


T1
62.89 100.0 60.00 True
94.73 100.0 59.22 True
T3
49.090 | 100.0 46.04 False
T4
38.48 84.4 58.60 False
rtrsiends
ed
MAN
3
SN MARKS

a) Predict the output of the following python statement:


df.shape
Df [1:3]
Write Python statement to display the data of Col3 columnof indexes T2 to T4.
OR (Option for part (ii) only)
Write Python statement to compute and display the difference of data of Col_2 column
and Col 3 column of the above given Data Frame.
SN SECTION-E MARKS
33. Write suitable SQL queries for the following:
5
i. Tocalculate the exponent for 3 raised to the power of 4.
ii. To display current date and time.
iii. To round off the value -34.4567 to 2 decimal place.
iv. To remove all the probable leading and trailing spaces from the column userid of
the table named user.
V. To display the length o fthe string 'FIFAWorld Cup'
OR
Kabir has created following table named exam:
Reg.No Name Subject Marks
1
Sanya Computer Science 98
2 Sanchay IP 100
3 Vinesh CS 90
4 Sneha IP 99
Akshita IP 100
Help him in writing SQL queries to the perform the following task:
Insert a new record in the table having following values:
"CS", 85 ]. [6,"Khushi",
: Tochange the value IP" to *Informatics
ii. To remove the records of those
Practices" in subject column.
students whose marks are less than 30.
iv. Toadd a new column Grade of suitable data
type.
V. To display records of Informatics
34. Practices" subject.
Newsky Pvt. Limited is an international software
set up its India Office at Agra with its head solution organization. It is planning to
office
four main buildings - ADMIN,PRODUCTION, in Delhi.The Agra office campus has
You as a network expert have to suggest the best ADVERTISEMENT
network
and SHPPING.
related
problems raised in(i)to(v),keeping in mind the distances between the solutions for their
given parameter. buildings and other
Agra Head office
Delhi Head
office
Production Advertisement

Admin Shipping

Shortest distances between various buildings:


ADMIN to ADVERTISEMENT 50
ADMIN to PRODUCTION 85
ADMIN to SHIPPING 45
ADVERTISEMENT to PRODUCTION 50
ADVERTISEMENT to SHIPPING 45
PRODUCTION to SHIPPING 40
DELHI head office to AGRA Office 230
Number of computers installed at various buildings:are as follows:

ADMIN 80
ADVERTISEMENT 40
PRODUCTION 25
SHIPPING 20
DelhiHead Office 15
i) Suggest the most appropriate location of the
server inside the AGRA Office
(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
in the AGRA Office for a wired
efficiently connect various buildings with
iii) Which networking device willyou connectivity.
suggest to be
interconnect all the computers of various buildingsprocured
by the company to
of AGRA Office?
iv) Company is planning to get its website
to see their products, shipping details
designed which will allow centers
themselves
staticor dynamic, which type of website will you
on its server. Out of the
v) Which of the following will you suggest to suggest?
establish the online face to face
communication between the people in the ADMIN office of AGRA and
Delhi head office?
(A)CableTV
(B) Email
(C) Videoconferencing
(D) Text chat
35. The heights of 10 students of eighth grade are
given below:
Height_cms=[145,141,142,142,143,144,141,140,143,144]
Write suitable Python code to generate a
histogram based on the given data, along with
an appropriate chart title and both axis labels.
Also give suitable python statement to save
this chart.
OR
Write suitable Python code to create
'FavouriteHobby' Bar Chart as shown below:
Favourite Hobby
S00

400
ofpeople
Number

300

200

100

Dance Music Painting Playing Sports


Hobbies

Also give suitable python statement to save this chart

You might also like