2nd Pre Board
2nd Pre Board
SN SECTION-A MARKS
1. URLS are of two types: 1
2 Which type of values will not be considered by SQL while executing thefollowing 1
statement?
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
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.
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
Name Salary
Alankar 75000
1 Rajveer 65000
2 Krishna 78000
3 Radha 55000
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
Admin Shipping
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