Adobe Scan 5 Jan 2025
Adobe Scan 5 Jan 2025
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 S 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.
Marks
Section-A (21 x 1 = 21 Marks) 1
QNo.
State whether the following statement is True or False:
/, Series are size and value mutable.
With respect to databases, a field in a relation is also known as a/an
1
I r
a. Record
,I.
b. Tuple
C. Attribute
, d. Degree 1
Which among the following hardware devices... is capable of connecting
l networks belonging to different network protocols?
a. Modem
b. Repeater
c. Hub
d. Gateway 1
Pick the odd one out of the following?
f a. update
b. select
c. drop
d. delete
1
;s Which among the following is not an impact of e-waste on the
environment?
a. Global Warming
b. Deforestation
1
-
c. Soil erosi on
-
I
~- Heavy metals in wate r and soi l 1
Which of the following command is used to display first t hree rows of a
DataFrame 'DF'?
a. OF.head()
b. OF.header()
C. OF.head(3)
d. OF.Head(3)
1
I r
State whether the following statement is True or False:
The Order By Clause in SQL helps to permanently sort and save the
contents in a table of a database.
1
! Which of the following functions is used to import a dataframe from csv
file?
a. read_csv()
b. import_csv()
C. to_csv()
d. export csv{)
1
l
The practice of sending fraudulent communications that appears to come
from a reputable source. It is usually done through email. The goal is to
steal sensitive data like credit card and login information.
a. Bullying
b. Plagiarism
C. Phishing
I d. Licensing
Which SQL statement do we use to find the total salary of all the 1
d. M esh
- h -d . - d _ _ _ _
Wh ich among the following met _ ·- - - - - .,..- --
· O is use to remove a row or column 1
f rom a given Data Frame?
a. del()
b. delete()
c. drop()
d. None of the above
1
Violation of intellectual property right may happen by
a. Plagiarism
b. Copyright Infringemen t •·
c. Trademark Infringemen t
d. All the above 1
Which of the following command will display the row ilabels of the
DataFrame?
a. print(df.index())
b. print(df.rows())
c. print(df.index)
d. print(df.rows) 1
Consider the following query
SELECT * FROM employee ORDER BY salary _ ___, name _ __,
To display the salary from largest to smallest and name in alphabetical
order which of the following options should be used?
a. Ascending, Descending
b. Ase, Desc
c. Desc, Ase
d. Descending, Ascending 1
With _ _ _ _ _ function of pandas module you can iterate over
dataframe row-wise where each rows values are returned in form of a
phones?
a. WAN
i
c. MAN ..._____ r
L - L~d~.~PA~N~ ----- :--~ --:-: :-~~ ~=;;- ;::-z:- :;-,.~: ::--\ I
Q-20 and Q-21 are Assertion (A) and Rea son (R) Type questions. Choose
the correct option as:
a. Both Assertion (A) and Reason (R) are true, and Reason (R) is th e
correct explanation of Assertion (A)
b. Both Assertion (A) and Reason (R) are true, but Reason (R) is not th e
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
Assertion (A): The attribute loc of dataframe can be used to add new rows 1
and columns .
Reason (R): In a dataframe new rows and columns can be added after
creating a dataframe.
Assertion (A): The ALTER TABLE query can be used to add a column in a 1
table.
Reason (R): ALTER is a DML query and is used to make changes in the
table design.
Q No. Section-8 (7 x 2 = 14 Marks) Marks
A. What is a Series in Python Pandas? Which module you need to 2
import in your program to create a Series?
(OR)
B. Name the module to which the following functions belong to:
(i) hist{)
(ii) DataFrame{)
What is open-source software? Give an example of an open-source 2
programming language.
Consider the string: "First Pre Board Examination 2024". Write suitable
2
SQL queries for the following:
a. To extract and display the string "Exam" from the above string.
b. Display the entire string in upper case.
A. What is the difference between website and a web page?
2
[OR)
B. Give an example for a commonly used browser? What are add-ons in
a browser?
Differentiate between primary key and alternate key with respect to a
2
table in SQL?
Your friend has used a poetry written by you and posted online claiming
2
hero n.
What is the cybercrime mentioned above?
Which Information Technology ne t viol
ation has bee n com mitt ed
..,-
11.
1--- --,·
by her?
Sportsid Region
-- ~
Sports Name
0 1001 Cricket Agra
1 1020 Football Lucknow
2 103 1 Swimming Delhi
[OR)
11. Write SQL Query to insert the following data in the Teachers
Table
,,,_j 2825, Minaxi Prasad, Science,2010-09-28, 75000
:i
J;{J
A. Consider the following tables given below:
Table: Trainer
Tid Tname City Salary
101 SUNITA MUMBAI 8000
102 ANAMIKA DELHI 9000
103 VARUN MUMBAI 7000
Table: Course
Cid Cname Fees Startdate Tid discount
10001 PGDCA 12000 2018-10-15 101 500
10002 DCA 5000 2018-05-17 101
10003 CCNA 9000 2019-05-20 102 300
10004 CCNA 13000 2020-10-01 103
10005 PGDCA 15000 2018-10-10 103 400
Write appropriate SQL queries for the following:
I. Display Course name-wise total Fees.
11. List all trainer names in the decreasing order of Salary.
a £13¥
- --
Dis play Course name along w·tI h th-:err corre span d.rng Trainer
-
/// .
Names.
[ORJ
B. Writ~ the outputs of the SQL queries (i) to (iv) based on the
en below:
relations Teacher and Placement giv
Table : Teacher
I ID Name Age Department Date of_join Salary Gender
I Arunan 34 Computer Sc 2019-01 -10 12000 M
2 Saman 31 History 2017-03 -24 20000 F
3 Randeep 32 Ma the ma tics 2020-12-12 30000 M
4 Samira JS History 2018-07-01 40000 F
5 Raman 42 Mathe ma tics 2021 -09-0S 25000 M
,
0 Shyam 50 History 2019-06-27 30000 M
7 Sh i v 44 Computer Sc 2019-02-25 21000 M
8 Shalakha 33 Mathematics 2018-07-31 20000 F
Table : Placement
P_ID Department Place
1 History Ahmedabad
2 Mathematics Jaipur
J Computer Sc Nagpur
I '10 00
~0 :,0 0
i,5 00 0
;>,0000
~,eoo
7
~
- - - , - ~ ~ ~
------- - --
r-- ~ - -- - - - - -
.,1-~<-11l-t-<11111_11_
-- ,
r,-.. -
1
: J
.,
,' _q
'.)
'
-/ 1.'I
:,
:u
C
1 \ F,,.\
#Statementl
imp ort _ _ _ _ __ _ _ as pit
X=["JAPAN","CHINA","INDIA","USA"]
Y=[45,91,6,126)
plt.xlabel("COUNTRIES")
atement2
pit. _ _ _ _ ("TOTAL MEDALS") #St
pit. _ _ _ (X,Y) #Statement3
ison")# Statement 4
plt._ _ _ _ _ _ ("M eda l Compar
pit.show() 4
aging the Databases of his
A. Raj is a Database adm inis trat or man
g table Employee. Based on the
company. He has created the followin
stions:
follo win g table ans wer the given que
Table : Employee
Doj Salary Dep t
EmpNo Nam e Gender
M 2023-10-12 5000.75 HR
111 Sapan
F 2012-06-15 7000.54 Finance
112 Sunita
M 2006-05-21 8000.36 Finance
113 Rohan
2012-05-12 8500.57 HR
114 Ratna F
2006-06-16 9000.92 Tech
Asha F
115 HR
M 2023-04-10 5000.55
116 Raja
Wr" e the foll owi ng SQL queries:
t thre e alphabets of name in
i) Wri te a SQL que ry to display the firs
upp er case.
rou nde d to 1 decimal place
Wri te a SQL que ry to display salary
artm ent .
for all em plo yee s who are in HR dep
details of employee table in
Wri te a que ry to display the ent ire
des cen din g ord er of name.
der and name of the mo nth
Wri te a que ry to display name, gen
re tha n 6000.
for all em plo yee s wh o get salary mo
(OR]
8
•
-rt. '
Neha. is running a traveI age ncy. In order- tO k
business activity sh h
the table Travel ~ as created th e following Travel table. Based on
.1
eep track of her da1 y
4~
Jt(Y
ii,
SELECT Pname from Travel where cost between 5000 and 6000;
SELECT Source,Destination fromTravel where DOJ is NULL;
SELECT left(Pname,3) from Travel where month(DOJ) =8
SELECT min(DOJ) from Travel;
Section-E (3 x 5 = 15 Marks)
Marks
QN51 5
ABC Net Solutions are setting up their corporate centre at Chennai. They
A 0 T
~ I 0 I
9
se on the above informatio~ answer the following qu estions:
A
.W
Suggest the appropri ate building th at should host the server. Give
reasons to justify your answe r.
Suggest the topology and network type(LAN, MAN, WAN) that is
/ / suitab le for the cable layout in the c hennai campus to interconn ect
the buildings .
5
Write suitable SQL query for the following:
To display the total salary of employees in an employee table.
·r.
To display the last four letters of author _name in the table books.
To display the total number of characters in tname column of a
teacher table.
To display the bookname column of Books table in upper case.
To determin e the cardinality of Library table .
(OR] tr'
~
10